E00A46A80(void* __eflags, signed int _a4) {
signed int _v8;
signed int _v12;
signed int _v16;
signed int _v20;
signed int _v24;
long _v28;
signed int _v32;
signed int _v36;
long _v40;
signed int _v44;
long _v48;
long _v52;
char* _v56;
long _v60;
char* _v64;
intOrPtr _v68;
long _v72;
intOrPtr _v76;
char _v204;
char _v460;
void* _t366;
signed int _t375;
signed int _t376;
signed int _t379;
signed int _t386;
void* _t390;
signed int _t399;
signed int _t433;
intOrPtr _t437;
signed int _t440;
long _t451;
intOrPtr _t467;
signed int _t496;
signed int _t497;
long _t499;
signed int _t501;
signed int _t517;
signed int _t518;
signed int _t525;
intOrPtr _t536;
long _t549;
signed int _t551;
intOrPtr _t573;
signed int _t595;
signed int _t609;
void* _t616;
signed int _t617;
signed int _t618;
long _t619;
signed int _t620;
signed int _t638;
signed int _t639;
intOrPtr _t647;
signed int _t672;
long _t682;
signed int _t684;
void* _t695;
void* _t696;
void* _t697;
void* _t698;
void* _t699;
_v36 = 0xffffffff;
_v44 = 0;
*(_a4 + 0x10018) = 1;
_v40 = 0;
E00A41F80(_a4);
*((char*)(_a4 + 0x10044)) = 4;
_v68 = *((intOrPtr*)(_a4 + 0x10d58));
if( *(_a4 + 0x10d5c) > 0) {
Sleep( *(_a4 + 0x10d5c) * 0x3c * 0x3e8);
}
_push( *((intOrPtr*)(_a4 + 0x1014c)));
_push(0x68b0);
_t366 = E00A436C0(_a4 + 0x1001d); // executed
E00A43A00(_a4 + 0x1001d, _t366, " %s M%X SGCNT %d \n", _a4 + 0x1001d); // executed
_t697 = _t696 + 0x14;
while(1) {
_v72 = _v40;
_v76 = _v68;
_v40 = _v40 + 1;
if(_v72 >= _v76) {
break;
}
_v44 = _v44 + 1;
if(( *(_a4 + 0x10018) & 0x000000ff) != 1) {
L9:
_t517 = _a4;
__eflags = ( *(_t517 + 0x10018) & 0x000000ff) - 1;
if(( *(_t517 + 0x10018) & 0x000000ff) != 1) {
_t518 = _a4;
__eflags = *((intOrPtr*)(_t518 + 0x10038)) - 0xffffffff;
if( *((intOrPtr*)(_t518 + 0x10038)) != 0xffffffff) {
E00A46480(_v8, _a4);
E00A42540( &_v204, 0x80);
_v28 = 0;
__eflags = _v36 - 0xffffffff;
if(_v36 <= 0xffffffff) {
_v48 = 0;
} else {
_v48 = _v36 + 1;
}
_v24 = _v48;
while(1) {
_t375 = _a4;
__eflags = _v24 - *((intOrPtr*)(_t375 + 0x10d58));
if(_v24 > *((intOrPtr*)(_t375 + 0x10d58))) {
break;
}
_v36 = _v24;
_t390 = _a4 + _v24;
_t529 = *((char*)(_t390 + 0x10956));
__eflags = *((char*)(_t390 + 0x10956));
if( *((char*)(_t390 + 0x10956)) != 0) {
_t616 = _a4 + _v24;
__eflags = *((char*)(_t616 + 0x10556));
if( *((char*)(_t616 + 0x10556)) != 0) {
_v32 = 0;
while(1) {
_t617 = _a4;
__eflags = _v32 - *((intOrPtr*)(_t617 + 0x1014c));
if(_v32 >= *((intOrPtr*)(_t617 + 0x1014c))) {
break;
}
_t536 = *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v32 * 4));
__eflags = *((intOrPtr*)(_t536 + 0xc)) - _v24;
if( *((intOrPtr*)(_t536 + 0xc)) == _v24) {
E00A42540( &_v460, 0x100);
_v12 = E00A46860(_v8, &_v460, 6, 0, *((intOrPtr*)( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v32 * 4)))), 0, _a4, *( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v32 * 4)) + 4) & 0x000000ff, *( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v32 * 4)) + 9) & 0x000000ff);
__eflags = _v12;
if(_v12 > 0) {
__eflags = _v28 + _v12 - 0x80;
if(_v28 + _v12 >= 0x80) {
E00A457D0( &_v204, _v8, &_v204, _v28, _a4);
_v28 = 0;
E00A42540( &_v204, 0x80);
}
E00A42190(_t695 + _v28 - 0xc8, &_v460, _v12);
_t697 = _t697 + 0xc;
_v28 = _v28 + _v12;
_t549 = *(_a4 + 8) + 1;
__eflags = _t549;
*(_a4 + 8) = _t549;
}
Sleep(0x3e8);
}
_t529 = _v32 + 1;
__eflags = _t529;
_v32 = _t529;
}
__eflags = _v28;
if(_v28 > 0) {
E00A457D0(_v28, _v8, &_v204, _v28, _a4);
_v28 = 0;
_t529 = &_v204;
E00A42540( &_v204, 0x80);
}
L76:
__eflags = _a4;
if(_a4 == 0) {
L80:
__eflags = _a4;
if(_a4 != 0) {
_t618 = _a4;
__eflags = *(_t618 + 0x10d60);
if( *(_t618 + 0x10d60) > 0) {
E00A439C0(E00A436C0(_t529));
_push(0x68b3);
E00A43830(__eflags, E00A436C0(_t393), " %s M%X \n", _a4 + 0x1001d);
_t697 = _t697 + 0x10;
_t619 = *(_a4 + 0x10d60) * 0x3e8;
__eflags = _t619;
Sleep(_t619);
}
}
L83:
break;
}
_t620 = _a4;
__eflags = *((intOrPtr*)(_t620 + 0x10d68)) - 0xffffffff;
if( *((intOrPtr*)(_t620 + 0x10d68)) == 0xffffffff) {
goto L80;
}
_t399 = _a4;
_t529 = _v36;
__eflags = _v36 - *((intOrPtr*)(_t399 + 0x10d68));
if(_v36 != *((intOrPtr*)(_t399 + 0x10d68))) {
goto L80;
}
E00A439C0(E00A436C0(_t529));
_push(0x68b2);
E00A43830(__eflags, E00A436C0(_t400), " %s M%X \n", _a4 + 0x1001d);
_t697 = _t697 + 0x10;
Sleep( *(_a4 + 0x10d64) * 0x3e8);
goto L83;
}
_v16 = 0;
while(1) {
_t638 = _a4;
__eflags = _v16 - *((intOrPtr*)(_t638 + 0x1014c));
if(_v16 >= *((intOrPtr*)(_t638 + 0x1014c))) {
break;
}
_t573 = *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v16 * 4));
__eflags = *((intOrPtr*)(_t573 + 0xc)) - _v24;
if( *((intOrPtr*)(_t573 + 0xc)) == _v24) {
_t467 = *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v16 * 4));
__eflags = *(_t467 + 8) & 0x000000ff;
if(( *(_t467 + 8) & 0x000000ff) != 0) {
_v12 = E00A465E0(_v8, 6, 0, *((intOrPtr*)( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v16 * 4)))), 1, _a4, *( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v16 * 4)) + 4) & 0x000000ff, *( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v16 * 4)) + 9) & 0x000000ff);
}
_t529 = _a4;
__eflags = ( *(_t529 + 0x10018) & 0x000000ff) - 1;
if(( *(_t529 + 0x10018) & 0x000000ff) != 1) {
_t529 = _v8;
_v12 = E00A465E0(_v8, 6, 0, *((intOrPtr*)( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v16 * 4)))), 0, _a4, *( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v16 * 4)) + 4) & 0x000000ff, *( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v16 * 4)) + 9) & 0x000000ff);
_t672 = _a4;
__eflags = ( *(_t672 + 0x10018) & 0x000000ff) - 1;
if(( *(_t672 + 0x10018) & 0x000000ff) != 1) {
_t582 = _v12 & 0x00000040;
__eflags = _v12 & 0x00000040;
if((_v12 & 0x00000040) == 0) {
E00A439C0(E00A436C0(_t582));
_push( *((intOrPtr*)( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v16 * 4)))));
_push(0x68b1);
__eflags = _a4 + 0x1001d;
E00A43830(__eflags, E00A436C0(_a4 + 0x1001d), " %s M%X %d\n", _a4 + 0x1001d);
_t697 = _t697 + 0x14;
}
L29:
_t529 = _v16 + 1;
__eflags = _t529;
_v16 = _t529;
continue;
}
} else {
}
break;
}
goto L29;
}
_t639 = _a4;
__eflags = *(_t639 + 0x10046) & 0x000000ff;
if(( *(_t639 + 0x10046) & 0x000000ff) == 0) {
L63:
goto L76;
}
Sleep(0x3e8);
_v36 = 0xffffffff;
_t551 = _a4;
__eflags = *(_t551 + 0x10045) & 0x000000ff;
if(( *(_t551 + 0x10045) & 0x000000ff) != 0) {
_v52 = 0;
} else {
_v52 = 1;
}
*((char*)(_a4 + 0x10045)) = _v52;
E00A439C0(E00A436C0(_v52));
_push(0x68b3);
E00A43830(__eflags, E00A436C0(_t429), " %s M%X \n", _a4 + 0x1001d);
_t699 = _t697 + 0x10;
_t433 = _a4;
_t554 = *(_t433 + 0x10045) & 0x000000ff;
__eflags = *(_t433 + 0x10045) & 0x000000ff;
if(( *(_t433 + 0x10045) & 0x000000ff) == 0) {
_v56 = "OFF\n\n";
} else {
_v56 = "ON\n\n";
}
E00A43830(__eflags, E00A436C0(_t554), "\nCurrent operation : %s", _v56);
_t697 = _t699 + 0xc;
_v20 = 0;
while(1) {
_t529 = _a4;
__eflags = _v20 - *((intOrPtr*)(_t529 + 0x1014c));
if(_v20 >= *((intOrPtr*)(_t529 + 0x1014c))) {
goto L63;
}
_t437 = *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v20 * 4));
__eflags = *((intOrPtr*)(_t437 + 0xc)) - _v24;
if( *((intOrPtr*)(_t437 + 0xc)) == _v24) {
_t647 = *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v20 * 4));
__eflags = *(_t647 + 8) & 0x000000ff;
if(( *(_t647 + 8) & 0x000000ff) != 0) {
_v12 = E00A465E0(_v8, 6, 0, *((intOrPtr*)( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v20 * 4)))), 1, _a4, *( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v20 * 4)) + 4) & 0x000000ff, *( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v20 * 4)) + 9) & 0x000000ff);
}
_t440 = _a4;
_t529 = *(_t440 + 0x10018) & 0x000000ff;
__eflags = ( *(_t440 + 0x10018) & 0x000000ff) - 1;
if(( *(_t440 + 0x10018) & 0x000000ff) != 1) {
_v12 = E00A465E0(_v8, 6, 0, *((intOrPtr*)( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v20 * 4)))), 0, _a4, *( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v20 * 4)) + 4) & 0x000000ff, *( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v20 * 4)) + 9) & 0x000000ff);
_t529 = _a4;
__eflags = ( *(_t529 + 0x10018) & 0x000000ff) - 1;
if(( *(_t529 + 0x10018) & 0x000000ff) != 1) {
__eflags = _v12 & 0x00000040;
if((_v12 & 0x00000040) == 0) {
E00A439C0(E00A436C0(_t529));
_push( *((intOrPtr*)( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v20 * 4)))));
_push(0x68b1);
__eflags = _a4 + 0x1001d;
E00A43830(__eflags, E00A436C0( *((intOrPtr*)( *((intOrPtr*)(_a4 + 0x10148)) + _v20 * 4))), " %s M%X %d\n", _a4 + 0x1001d);
_t697 = _t697 + 0x14;
}
L50:
_t451 = _v20 + 1;
__eflags = _t451;
_v20 = _t451;
continue;
}
} else {
}
goto L63;
}
goto L50;
}
goto L63;
}
_t682 = _v24 + 1;
__eflags = _t682;
_v24 = _t682;
}
_t376 = _a4;
__eflags = *(_t376 + 0x10046) & 0x000000ff;
if(( *(_t376 + 0x10046) & 0x000000ff) != 0) {
_t609 = _a4;
__eflags = _v36 - *((intOrPtr*)(_t609 + 0x10d58));
if(_v36 >= *((intOrPtr*)(_t609 + 0x10d58))) {
_v36 = 0xffffffff;
_t525 = _a4;
__eflags = *(_t525 + 0x10045) & 0x000000ff;
if(( *(_t525 + 0x10045) & 0x000000ff) != 0) {
_v60 = 0;
} else {
_v60 = 1;
}
*((char*)(_a4 + 0x10045)) = _v60;
E00A439C0(E00A436C0(_v60));
_push(0x68b3);
E00A43830(__eflags, E00A436C0(_t382), " %s M%X \n", _a4 + 0x1001d);
_t698 = _t697 + 0x10;
_t386 = _a4;
_t528 = *(_t386 + 0x10045) & 0x000000ff;
__eflags = *(_t386 + 0x10045) & 0x000000ff;
if(( *(_t386 + 0x10045) & 0x000000ff) == 0) {
_v64 = "OFF\n\n";
} else {
_v64 = "ON\n\n";
}
E00A43830(__eflags, E00A436C0(_t528), "\nCurrent operation : %s", _v64);
_t697 = _t698 + 0xc;
}
}
Sleep(0x3e8);
L94:
_v12 = E00A46220(_v8, _a4);
*(_a4 + 0x10018) = 1;
_t379 = _a4;
__eflags = ( *(_t379 + 0x10018) & 0x000000ff) - 1;
if(( *(_t379 + 0x10018) & 0x000000ff) != 1) {
}
continue;
}
*((intOrPtr*)(_a4 + 0x10038)) = E00A46310(_v8, _a4);
_t684 = _a4;
__eflags = *((intOrPtr*)(_t684 + 0x10038)) - 0xffffffff;
if( *((intOrPtr*)(_t684 + 0x10038)) != 0xffffffff) {
_push( *((intOrPtr*)(_a4 + 0x10038)));
_push(0x68b4);
E00A43830(__eflags, E00A436C0( *((intOrPtr*)(_a4 + 0x10038))), " %s ST%X %d\n", _a4 + 0x1001d);
_t697 = _t697 + 0x14;
}
goto L94;
}
_t496 = _a4;
__eflags = *(_t496 + 0xc);
if( *(_t496 + 0xc) != 0) {
_t595 = _a4;
_t497 = _v44;
asm("cdq");
__eflags = _t497 % *(_t595 + 0xc);
if(_t497 % *(_t595 + 0xc) == 0) {
_t499 = *(_a4 + 0x10040) * 0x3e8;
__eflags = _t499;
Sleep(_t499);
}
}
continue;
}
_t501 = E00A45650(_a4 + 0x1001d, *((intOrPtr*)(_a4 + 0x10034))); // executed
_v8 = _t501;
if(_v8 != 0xffffffff) {
*(_a4 + 0x10018) = 0;
*((char*)(_a4 + 0x1001b)) = 1;
*(_a4 + 4) = 0;
*(_a4 + 8) = 0;
_v12 = E00A46140(_v8, _a4);
_v12 = E00A45F10(_v8, _a4);
goto L9;
} else {
*(_a4 + 0x10018) = 1;
*((char*)(_a4 + 0x1001b)) = 0;
break;
}
}
__imp__#116(); // executed
return 0;
}
0x00a46a89
0x00a46a90
0x00a46a9a
0x00a46aa1
0x00a46aab
0x00a46ab3
0x00a46ac3
0x00a46ad0
0x00a46ae3
0x00a46ae3
0x00a46af2
0x00a46af3
0x00a46b07
0x00a46b0d
0x00a46b12
0x00a46b15
0x00a46b18
0x00a46b1e
0x00a46b27
0x00a46b30
0x00000000
0x00000000
0x00a46b3c
0x00a46b4c
0x00a46bd7
0x00a46bd7
0x00a46be1
0x00a46be4
0x00a46c16
0x00a46c19
0x00a46c20
0x00a46c8e
0x00a46c9f
0x00a46ca4
0x00a46cab
0x00a46caf
0x00a46cbc
0x00a46cb1
0x00a46cb7
0x00a46cb7
0x00a46cc6
0x00a46cd4
0x00a46cd4
0x00a46cda
0x00a46ce0
0x00000000
0x00000000
0x00a46ce9
0x00a46cef
0x00a46cf2
0x00a46cf9
0x00a46cfb
0x00a46d02
0x00a46d0c
0x00a46d0e
0x00a47095
0x00a470a7
0x00a470a7
0x00a470ad
0x00a470b3
0x00000000
0x00000000
0x00a470c5
0x00a470cb
0x00a470ce
0x00a470de
0x00a47137
0x00a4713a
0x00a4713e
0x00a47146
0x00a4714c
0x00a47161
0x00a47166
0x00a47179
0x00a47179
0x00a47194
0x00a47199
0x00a471a2
0x00a471ab
0x00a471ab
0x00a471b1
0x00a471b1
0x00a471b9
0x00a471b9
0x00a470a1
0x00a470a1
0x00a470a4
0x00a470a4
0x00a471c4
0x00a471c8
0x00a471dd
0x00a471e2
0x00a471ee
0x00a471f5
0x00a471f5
0x00a471fa
0x00a471fa
0x00a471fe
0x00a4725e
0x00a4725e
0x00a47262
0x00a47264
0x00a47267
0x00a4726e
0x00a47277
0x00a4727c
0x00a47295
0x00a4729a
0x00a472a0
0x00a472a0
0x00a472ab
0x00a472ab
0x00a4726e
0x00a472b1
0x00000000
0x00a472b1
0x00a47200
0x00a47203
0x00a4720a
0x00000000
0x00000000
0x00a4720c
0x00a4720f
0x00a47212
0x00a47218
0x00000000
0x00000000
0x00a47221
0x00a47226
0x00a47240
0x00a47245
0x00a47256
0x00000000
0x00a47256
0x00a46d14
0x00a46d26
0x00a46d26
0x00a46d2c
0x00a46d32
0x00000000
0x00000000
0x00a46d44
0x00a46d4a
0x00a46d4d
0x00a46d5d
0x00a46d64
0x00a46d66
0x00a46db5
0x00a46db5
0x00a46db8
0x00a46dc2
0x00a46dc5
0x00a46e10
0x00a46e19
0x00a46e1c
0x00a46e26
0x00a46e29
0x00a46e30
0x00a46e30
0x00a46e33
0x00a46e3c
0x00a46e52
0x00a46e53
0x00a46e5b
0x00a46e6d
0x00a46e72
0x00a46e72
0x00a46d1d
0x00a46d20
0x00a46d20
0x00a46d23
0x00000000
0x00a46d23
0x00000000
0x00a46dc7
0x00000000
0x00a46dc5
0x00000000
0x00a46d4f
0x00a46e7a
0x00a46e84
0x00a46e86
0x00a47090
0x00000000
0x00a47090
0x00a46e91
0x00a46e97
0x00a46e9e
0x00a46ea8
0x00a46eaa
0x00a46eb5
0x00a46eac
0x00a46eac
0x00a46eac
0x00a46ec2
0x00a46ecf
0x00a46ed4
0x00a46eee
0x00a46ef3
0x00a46ef6
0x00a46ef9
0x00a46f00
0x00a46f02
0x00a46f0d
0x00a46f04
0x00a46f04
0x00a46f04
0x00a46f23
0x00a46f28
0x00a46f2b
0x00a46f3d
0x00a46f3d
0x00a46f43
0x00a46f49
0x00000000
0x00000000
0x00a46f5b
0x00a46f61
0x00a46f64
0x00a46f74
0x00a46f7b
0x00a46f7d
0x00a46fcc
0x00a46fcc
0x00a46fcf
0x00a46fd2
0x00a46fd9
0x00a46fdc
0x00a47030
0x00a47033
0x00a4703d
0x00a47040
0x00a47047
0x00a4704a
0x00a47053
0x00a47069
0x00a4706a
0x00a47072
0x00a47083
0x00a47088
0x00a47088
0x00a46f34
0x00a46f37
0x00a46f37
0x00a46f3a
0x00000000
0x00a46f3a
0x00000000
0x00a46fde
0x00000000
0x00a46fdc
0x00000000
0x00a46f66
0x00000000
0x00a46f3d
0x00a46cce
0x00a46cce
0x00a46cd1
0x00a46cd1
0x00a472b8
0x00a472c2
0x00a472c4
0x00a472ca
0x00a472d0
0x00a472d6
0x00a472dc
0x00a472e3
0x00a472ed
0x00a472ef
0x00a472fa
0x00a472f1
0x00a472f1
0x00a472f1
0x00a47307
0x00a47314
0x00a47319
0x00a47333
0x00a47338
0x00a4733b
0x00a4733e
0x00a47345
0x00a47347
0x00a47352
0x00a47349
0x00a47349
0x00a47349
0x00a47368
0x00a4736d
0x00a4736d
0x00a472d6
0x00a47375
0x00a4737b
0x00a47388
0x00a4738e
0x00a47395
0x00a4739f
0x00a473a2
0x00a473a2
0x00000000
0x00a473a2
0x00a46c32
0x00a46c38
0x00a46c3b
0x00a46c42
0x00a46c57
0x00a46c58
0x00a46c72
0x00a46c77
0x00a46c77
0x00000000
0x00a46c42
0x00a46be6
0x00a46be9
0x00a46bed
0x00a46bef
0x00a46bf2
0x00a46bf5
0x00a46bf9
0x00a46bfb
0x00a46c00
0x00a46c00
0x00a46c0b
0x00a46c0b
0x00a46bfb
0x00000000
0x00a46c11
0x00a46b66
0x00a46b6b
0x00a46b72
0x00a46b92
0x00a46b9c
0x00a46ba6
0x00a46bb0
0x00a46bc4
0x00a46bd4
0x00000000
0x00a46b74
0x00a46b77
0x00a46b81
0x00000000
0x00a46b81
0x00a46b72
0x00a473ae
0x00a473b9