Function at 0x589e54
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 0x58a4b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x589ea9
mov eax, dword [ebp - 4]
test byte [eax + 0x39c], 4
je 0x589ea9
lea edx, [ebp - 0x18]
mov eax, dword [0x65d6f4]
call fcn.0040c118
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x473dd0]
call fcn.00427c80
call fcn.00407354
mov eax, dword [0x665574]
call fcn.00590368
mov eax, dword [ebp - 4]
or byte [eax + 0x39c], 4
xor edx, edx
push ebp
push 0x58a499
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x58a453
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1fd], 0
je 0x58a347
xor eax, eax
push ebp
push 0x589f0c
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 0x589f23
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b7], 4
je 0x589f4f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b7], 6
jne 0x58a033
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x58a033
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x589f95
mov eax, dword [0x665574]
mov eax, dword [eax + 0x48]
call fcn.004f0638
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x589f77
adc ebx, 0
mov eax, dword [0x665574]
mov eax, dword [eax + 0x48]
call fcn.004f0678
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x54]
sar esi, 1
jns 0x589fc8
adc esi, 0
jmp 0x589fc8
lea edx, [ebp - 0x14]
mov eax, dword [0x665578]
call fcn.0058d4d4
mov ebx, dword [ebp - 0xc]
sub ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x589fb5
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 0x589fc8
adc esi, 0
mov eax, dword [0x665578]
call fcn.0058c274
cmp ebx, eax
jge 0x589fe2
mov eax, dword [0x665578]
call fcn.0058c274
mov ebx, eax
mov eax, dword [0x665578]
call fcn.0058c26c
cmp esi, eax
jge 0x589ffc
mov eax, dword [0x665578]
call fcn.0058c26c
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 0x58a253
mov eax, dword [ebp - 4]
call fcn.00587648
jmp 0x58a253
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2b7]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x58a158
mov eax, dword [0x665574]
mov esi, dword [eax + 0x48]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b7], 7
jne 0x58a07a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x57b7dc]
call fcn.004062dc
test al, al
je 0x58a07a
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x58a0bb
cmp esi, dword [ebp - 4]
je 0x58a0bb
mov eax, esi
call fcn.005856a8
mov ebx, eax
mov eax, dword [esi + 0x50]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x50]
sar eax, 1
jns 0x58a09c
adc eax, 0
add ebx, eax
mov eax, esi
call fcn.005856c8
mov edx, dword [esi + 0x54]
mov ecx, dword [ebp - 4]
sub edx, dword [ecx + 0x54]
sar edx, 1
jns 0x58a0b5
adc edx, 0
add eax, edx
mov esi, eax
jmp 0x58a0ed
mov eax, dword [0x665578]
call fcn.0058c264
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x58a0d4
adc ebx, 0
mov eax, dword [0x665578]
call fcn.0058c25c
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x54]
sar esi, 1
jns 0x58a0ed
adc esi, 0
mov eax, dword [0x665578]
call fcn.0058c274
cmp ebx, eax
jge 0x58a107
mov eax, dword [0x665578]
call fcn.0058c274
mov ebx, eax
mov eax, dword [0x665578]
call fcn.0058c26c
cmp esi, eax
jge 0x58a121
mov eax, dword [0x665578]
call fcn.0058c26c
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 0x58a253
mov eax, dword [ebp - 4]
call fcn.00587648
jmp 0x58a253
cmp al, 5
jne 0x58a253
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x58a1a6
mov eax, dword [0x665574]
mov eax, dword [eax + 0x48]
call fcn.004f0638
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x58a188
adc ebx, 0
mov eax, dword [0x665574]
mov eax, dword [eax + 0x48]
call fcn.004f0678
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x54]
sar esi, 1
jns 0x58a202
adc esi, 0
jmp 0x58a202
mov eax, dword [0x665578]
call fcn.0058c284
mov ebx, eax
sar ebx, 1
jns 0x58a1b9
adc ebx, 0
mov eax, dword [0x665578]
call fcn.0058c274
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
sar eax, 1
jns 0x58a1d2
adc eax, 0
sub ebx, eax
mov eax, dword [0x665578]
call fcn.0058c27c
mov esi, eax
sar esi, 1
jns 0x58a1e7
adc esi, 0
mov eax, dword [0x665578]
call fcn.0058c26c
add esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
sar eax, 1
jns 0x58a200
adc eax, 0
sub esi, eax
mov eax, dword [0x665578]
call fcn.0058c274
cmp ebx, eax
jge 0x58a21c
mov eax, dword [0x665578]
call fcn.0058c274
mov ebx, eax
mov eax, dword [0x665578]
call fcn.0058c26c
cmp esi, eax
jge 0x58a236
mov eax, dword [0x665578]
call fcn.0058c26c
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 0x58a322
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b2], 2
jne 0x58a2af
push 0
mov eax, dword [ebp - 4]
call fcn.004f9cf8
push eax
push 0x223
mov eax, dword [0x665574]
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.004f9cf8
push eax
call sub.user32.dll_ShowWindow
jmp 0x58a300
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2b2]
mov eax, dword [eax*4 + 0x65c2cc]
push eax
mov eax, dword [ebp - 4]
call fcn.004f9cf8
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.004f9cf8
push eax
push 0x40fc8c
call sub.user32.dll_CallWindowProcW
mov eax, dword [ebp - 4]
call fcn.004f1018
push 0
push 0
push 0x234
mov eax, dword [0x665574]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x394]
push eax
call sub.user32.dll_SendMessageW
jmp 0x58a481
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2b2]
mov eax, dword [eax*4 + 0x65c2cc]
push eax
mov eax, dword [ebp - 4]
call fcn.004f9cf8
push eax
call sub.user32.dll_ShowWindow
jmp 0x58a481
xor eax, eax
push ebp
push 0x58a36b
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 0x58a382
mov eax, dword [0x665578]
mov eax, dword [eax + 0x6c]
cmp eax, dword [ebp - 4]
jne 0x58a399
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00588bb0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x58a3b5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xd0]
jmp 0x58a481
mov eax, dword [ebp - 4]
test byte [eax + 0x39c], 8
je 0x58a3e3
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004f9cf8
push eax
call sub.user32.dll_SetWindowPos
jmp 0x58a481
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.004f9cf8
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x58a418
mov eax, dword [ebp - 4]
call fcn.004f9cf8
call fcn.00582ce8
test eax, eax
jne 0x58a418
mov eax, dword [ebp - 4]
call fcn.004f9cf8
call fcn.0058303c
mov ebx, eax
test ebx, ebx
je 0x58a441
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004f9cf8
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x58a481
push 0
mov eax, dword [ebp - 4]
call fcn.004f9cf8
push eax
call sub.user32.dll_ShowWindow
jmp 0x58a481
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
je 0x58a481
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x58a481
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1fd], 0
je 0x58a481
push 1
mov eax, dword [ebp - 4]
call fcn.004f9cf8
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58a4a0
mov eax, dword [ebp - 4]
and byte [eax + 0x39c], 0xfb
ret