Function at 0x589e74
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 0x58a4d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x589ec9
mov eax, dword [ebp - 4]
test byte [eax + 0x39c], 4
je 0x589ec9
lea edx, [ebp - 0x18]
mov eax, dword [0x66274c]
call fcn.0040c118
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x473df0]
call fcn.00427ca0
call fcn.00407354
mov eax, dword [0x66a574]
call fcn.00590388
mov eax, dword [ebp - 4]
or byte [eax + 0x39c], 4
xor edx, edx
push ebp
push 0x58a4b9
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x58a473
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1fd], 0
je 0x58a367
xor eax, eax
push ebp
push 0x589f2c
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 0x589f43
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b7], 4
je 0x589f6f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b7], 6
jne 0x58a053
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x58a053
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x589fb5
mov eax, dword [0x66a574]
mov eax, dword [eax + 0x48]
call fcn.004f0658
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x589f97
adc ebx, 0
mov eax, dword [0x66a574]
mov eax, dword [eax + 0x48]
call fcn.004f0698
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x54]
sar esi, 1
jns 0x589fe8
adc esi, 0
jmp 0x589fe8
lea edx, [ebp - 0x14]
mov eax, dword [0x66a578]
call fcn.0058d4f4
mov ebx, dword [ebp - 0xc]
sub ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x589fd5
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 0x589fe8
adc esi, 0
mov eax, dword [0x66a578]
call fcn.0058c294
cmp ebx, eax
jge 0x58a002
mov eax, dword [0x66a578]
call fcn.0058c294
mov ebx, eax
mov eax, dword [0x66a578]
call fcn.0058c28c
cmp esi, eax
jge 0x58a01c
mov eax, dword [0x66a578]
call fcn.0058c28c
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 0x58a273
mov eax, dword [ebp - 4]
call fcn.00587668
jmp 0x58a273
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2b7]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x58a178
mov eax, dword [0x66a574]
mov esi, dword [eax + 0x48]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b7], 7
jne 0x58a09a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x57b7fc]
call fcn.004062dc
test al, al
je 0x58a09a
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x58a0db
cmp esi, dword [ebp - 4]
je 0x58a0db
mov eax, esi
call fcn.005856c8
mov ebx, eax
mov eax, dword [esi + 0x50]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x50]
sar eax, 1
jns 0x58a0bc
adc eax, 0
add ebx, eax
mov eax, esi
call fcn.005856e8
mov edx, dword [esi + 0x54]
mov ecx, dword [ebp - 4]
sub edx, dword [ecx + 0x54]
sar edx, 1
jns 0x58a0d5
adc edx, 0
add eax, edx
mov esi, eax
jmp 0x58a10d
mov eax, dword [0x66a578]
call fcn.0058c284
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x58a0f4
adc ebx, 0
mov eax, dword [0x66a578]
call fcn.0058c27c
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x54]
sar esi, 1
jns 0x58a10d
adc esi, 0
mov eax, dword [0x66a578]
call fcn.0058c294
cmp ebx, eax
jge 0x58a127
mov eax, dword [0x66a578]
call fcn.0058c294
mov ebx, eax
mov eax, dword [0x66a578]
call fcn.0058c28c
cmp esi, eax
jge 0x58a141
mov eax, dword [0x66a578]
call fcn.0058c28c
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 0x58a273
mov eax, dword [ebp - 4]
call fcn.00587668
jmp 0x58a273
cmp al, 5
jne 0x58a273
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x58a1c6
mov eax, dword [0x66a574]
mov eax, dword [eax + 0x48]
call fcn.004f0658
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x58a1a8
adc ebx, 0
mov eax, dword [0x66a574]
mov eax, dword [eax + 0x48]
call fcn.004f0698
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x54]
sar esi, 1
jns 0x58a222
adc esi, 0
jmp 0x58a222
mov eax, dword [0x66a578]
call fcn.0058c2a4
mov ebx, eax
sar ebx, 1
jns 0x58a1d9
adc ebx, 0
mov eax, dword [0x66a578]
call fcn.0058c294
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
sar eax, 1
jns 0x58a1f2
adc eax, 0
sub ebx, eax
mov eax, dword [0x66a578]
call fcn.0058c29c
mov esi, eax
sar esi, 1
jns 0x58a207
adc esi, 0
mov eax, dword [0x66a578]
call fcn.0058c28c
add esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
sar eax, 1
jns 0x58a220
adc eax, 0
sub esi, eax
mov eax, dword [0x66a578]
call fcn.0058c294
cmp ebx, eax
jge 0x58a23c
mov eax, dword [0x66a578]
call fcn.0058c294
mov ebx, eax
mov eax, dword [0x66a578]
call fcn.0058c28c
cmp esi, eax
jge 0x58a256
mov eax, dword [0x66a578]
call fcn.0058c28c
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 0x58a342
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b2], 2
jne 0x58a2cf
push 0
mov eax, dword [ebp - 4]
call fcn.004f9d18
push eax
push 0x223
mov eax, dword [0x66a574]
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.004f9d18
push eax
call sub.user32.dll_ShowWindow
jmp 0x58a320
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2b2]
mov eax, dword [eax*4 + 0x6612cc]
push eax
mov eax, dword [ebp - 4]
call fcn.004f9d18
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.004f9d18
push eax
push 0x40fcac
call sub.user32.dll_CallWindowProcW
mov eax, dword [ebp - 4]
call fcn.004f1038
push 0
push 0
push 0x234
mov eax, dword [0x66a574]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x394]
push eax
call sub.user32.dll_SendMessageW
jmp 0x58a4a1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2b2]
mov eax, dword [eax*4 + 0x6612cc]
push eax
mov eax, dword [ebp - 4]
call fcn.004f9d18
push eax
call sub.user32.dll_ShowWindow
jmp 0x58a4a1
xor eax, eax
push ebp
push 0x58a38b
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 0x58a3a2
mov eax, dword [0x66a578]
mov eax, dword [eax + 0x6c]
cmp eax, dword [ebp - 4]
jne 0x58a3b9
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00588bd0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x58a3d5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xd0]
jmp 0x58a4a1
mov eax, dword [ebp - 4]
test byte [eax + 0x39c], 8
je 0x58a403
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004f9d18
push eax
call sub.user32.dll_SetWindowPos
jmp 0x58a4a1
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.004f9d18
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x58a438
mov eax, dword [ebp - 4]
call fcn.004f9d18
call fcn.00582d08
test eax, eax
jne 0x58a438
mov eax, dword [ebp - 4]
call fcn.004f9d18
call fcn.0058305c
mov ebx, eax
test ebx, ebx
je 0x58a461
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004f9d18
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x58a4a1
push 0
mov eax, dword [ebp - 4]
call fcn.004f9d18
push eax
call sub.user32.dll_ShowWindow
jmp 0x58a4a1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
je 0x58a4a1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x58a4a1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1fd], 0
je 0x58a4a1
push 1
mov eax, dword [ebp - 4]
call fcn.004f9d18
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58a4c0
mov eax, dword [ebp - 4]
and byte [eax + 0x39c], 0xfb
ret