Function at 0x589d74
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x58a3d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x589dc9
mov eax, dword [ebp - 4]
test byte [eax + 0x39c], 4
je 0x589dc9
lea edx, [ebp - 0x18]
mov eax, dword [0x65b6ec]
call fcn.0040c118
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x473d30]
call fcn.00427be0
call fcn.00407354
mov eax, dword [0x663574]
call fcn.00590288
mov eax, dword [ebp - 4]
or byte [eax + 0x39c], 4
xor edx, edx
push ebp
push 0x58a3b9
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x58a373
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1fd], 0
je 0x58a267
xor eax, eax
push ebp
push 0x589e2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffa9
call fcn.00406360
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x589e43
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b7], 4
je 0x589e6f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b7], 6
jne 0x589f53
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x589f53
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x589eb5
mov eax, dword [0x663574]
mov eax, dword [eax + 0x48]
call fcn.004f0558
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x589e97
adc ebx, 0
mov eax, dword [0x663574]
mov eax, dword [eax + 0x48]
call fcn.004f0598
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x54]
sar esi, 1
jns 0x589ee8
adc esi, 0
jmp 0x589ee8
lea edx, [ebp - 0x14]
mov eax, dword [0x663578]
call fcn.0058d3f4
mov ebx, dword [ebp - 0xc]
sub ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x589ed5
adc ebx, 0
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x54]
sar esi, 1
jns 0x589ee8
adc esi, 0
mov eax, dword [0x663578]
call fcn.0058c194
cmp ebx, eax
jge 0x589f02
mov eax, dword [0x663578]
call fcn.0058c194
mov ebx, eax
mov eax, dword [0x663578]
call fcn.0058c18c
cmp esi, eax
jge 0x589f1c
mov eax, dword [0x663578]
call fcn.0058c18c
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xa8]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x61], 0
je 0x58a173
mov eax, dword [ebp - 4]
call fcn.00587568
jmp 0x58a173
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2b7]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x58a078
mov eax, dword [0x663574]
mov esi, dword [eax + 0x48]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b7], 7
jne 0x589f9a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x57b6fc]
call fcn.004062dc
test al, al
je 0x589f9a
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x589fdb
cmp esi, dword [ebp - 4]
je 0x589fdb
mov eax, esi
call fcn.005855c8
mov ebx, eax
mov eax, dword [esi + 0x50]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x50]
sar eax, 1
jns 0x589fbc
adc eax, 0
add ebx, eax
mov eax, esi
call fcn.005855e8
mov edx, dword [esi + 0x54]
mov ecx, dword [ebp - 4]
sub edx, dword [ecx + 0x54]
sar edx, 1
jns 0x589fd5
adc edx, 0
add eax, edx
mov esi, eax
jmp 0x58a00d
mov eax, dword [0x663578]
call fcn.0058c184
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x589ff4
adc ebx, 0
mov eax, dword [0x663578]
call fcn.0058c17c
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x54]
sar esi, 1
jns 0x58a00d
adc esi, 0
mov eax, dword [0x663578]
call fcn.0058c194
cmp ebx, eax
jge 0x58a027
mov eax, dword [0x663578]
call fcn.0058c194
mov ebx, eax
mov eax, dword [0x663578]
call fcn.0058c18c
cmp esi, eax
jge 0x58a041
mov eax, dword [0x663578]
call fcn.0058c18c
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xa8]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x61], 0
je 0x58a173
mov eax, dword [ebp - 4]
call fcn.00587568
jmp 0x58a173
cmp al, 5
jne 0x58a173
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x58a0c6
mov eax, dword [0x663574]
mov eax, dword [eax + 0x48]
call fcn.004f0558
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x58a0a8
adc ebx, 0
mov eax, dword [0x663574]
mov eax, dword [eax + 0x48]
call fcn.004f0598
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x54]
sar esi, 1
jns 0x58a122
adc esi, 0
jmp 0x58a122
mov eax, dword [0x663578]
call fcn.0058c1a4
mov ebx, eax
sar ebx, 1
jns 0x58a0d9
adc ebx, 0
mov eax, dword [0x663578]
call fcn.0058c194
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
sar eax, 1
jns 0x58a0f2
adc eax, 0
sub ebx, eax
mov eax, dword [0x663578]
call fcn.0058c19c
mov esi, eax
sar esi, 1
jns 0x58a107
adc esi, 0
mov eax, dword [0x663578]
call fcn.0058c18c
add esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
sar eax, 1
jns 0x58a120
adc eax, 0
sub esi, eax
mov eax, dword [0x663578]
call fcn.0058c194
cmp ebx, eax
jge 0x58a13c
mov eax, dword [0x663578]
call fcn.0058c194
mov ebx, eax
mov eax, dword [0x663578]
call fcn.0058c18c
cmp esi, eax
jge 0x58a156
mov eax, dword [0x663578]
call fcn.0058c18c
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xa8]
mov eax, dword [ebp - 4]
mov byte [eax + 0x2b7], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x58a242
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b2], 2
jne 0x58a1cf
push 0
mov eax, dword [ebp - 4]
call fcn.004f9c18
push eax
push 0x223
mov eax, dword [0x663574]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x394]
push eax
call sub.user32.dll_SendMessageW
push 3
mov eax, dword [ebp - 4]
call fcn.004f9c18
push eax
call sub.user32.dll_ShowWindow
jmp 0x58a220
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2b2]
mov eax, dword [eax*4 + 0x65a2cc]
push eax
mov eax, dword [ebp - 4]
call fcn.004f9c18
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x54]
shl edx, 0x10
or eax, edx
push eax
push 0
push 5
mov eax, dword [ebp - 4]
call fcn.004f9c18
push eax
push 0x40fc8c
call sub.user32.dll_CallWindowProcW
mov eax, dword [ebp - 4]
call fcn.004f0f38
push 0
push 0
push 0x234
mov eax, dword [0x663574]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x394]
push eax
call sub.user32.dll_SendMessageW
jmp 0x58a3a1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2b2]
mov eax, dword [eax*4 + 0x65a2cc]
push eax
mov eax, dword [ebp - 4]
call fcn.004f9c18
push eax
call sub.user32.dll_ShowWindow
jmp 0x58a3a1
xor eax, eax
push ebp
push 0x58a28b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffaa
call fcn.00406360
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58a2a2
mov eax, dword [0x663578]
mov eax, dword [eax + 0x6c]
cmp eax, dword [ebp - 4]
jne 0x58a2b9
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00588ad0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x58a2d5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xd0]
jmp 0x58a3a1
mov eax, dword [ebp - 4]
test byte [eax + 0x39c], 8
je 0x58a303
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004f9c18
push eax
call sub.user32.dll_SetWindowPos
jmp 0x58a3a1
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.004f9c18
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x58a338
mov eax, dword [ebp - 4]
call fcn.004f9c18
call fcn.00582c08
test eax, eax
jne 0x58a338
mov eax, dword [ebp - 4]
call fcn.004f9c18
call fcn.00582f5c
mov ebx, eax
test ebx, ebx
je 0x58a361
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004f9c18
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x58a3a1
push 0
mov eax, dword [ebp - 4]
call fcn.004f9c18
push eax
call sub.user32.dll_ShowWindow
jmp 0x58a3a1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
je 0x58a3a1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x58a3a1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1fd], 0
je 0x58a3a1
push 1
mov eax, dword [ebp - 4]
call fcn.004f9c18
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58a3c0
mov eax, dword [ebp - 4]
and byte [eax + 0x39c], 0xfb
ret