Function at 0x590de4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5914e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x590e39
mov eax, dword [ebp - 4]
test byte [eax + 0x3cc], 4
je 0x590e39
lea edx, [ebp - 0x44]
mov eax, dword [0x6539f4]
call fcn.0040e810
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x437c48]
call fcn.004265c4
call fcn.00407e08
mov eax, dword [0x65a16c]
call fcn.00597344
mov eax, dword [ebp - 4]
or byte [eax + 0x3cc], 4
xor edx, edx
push ebp
push 0x5914c8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x591482
mov eax, dword [ebp - 4]
cmp byte [eax + 0x215], 0
je 0x591376
xor eax, eax
push ebp
push 0x590e9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffa7
call fcn.00406ce8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x590eb3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d3], 4
je 0x590ee7
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2d3]
sub al, 4
je 0x590ed7
add al, 0xfe
sub al, 2
jae 0x590fca
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x590fca
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x590f3d
mov eax, dword [0x65a16c]
mov eax, dword [eax + 0x58]
call fcn.004ef944
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x590f0f
adc ebx, 0
mov eax, dword [0x65a16c]
mov eax, dword [eax + 0x58]
call fcn.004ef984
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x590f2b
adc esi, 0
lea edx, [ebp - 0x14]
mov eax, dword [0x65a16c]
mov eax, dword [eax + 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x70]
jmp 0x590f81
mov eax, dword [ebp - 4]
call fcn.0058dac8
lea edx, [ebp - 0x14]
call fcn.00592a28
lea eax, [ebp - 0x14]
call fcn.004109d8
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x590f64
adc ebx, 0
add ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
call fcn.004109e0
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x590f7e
adc esi, 0
add esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp ebx, eax
jge 0x590f8a
mov ebx, eax
mov eax, dword [ebp - 0x10]
cmp esi, eax
jge 0x590f93
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc8]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x69], 0
je 0x591282
mov eax, dword [ebp - 4]
call fcn.0058e310
jmp 0x591282
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2d3]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x591187
mov eax, dword [0x65a16c]
mov edi, dword [eax + 0x58]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d3], 7
jne 0x591011
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x581c9c]
call fcn.00406c48
test al, al
je 0x591011
mov eax, dword [ebp - 4]
mov edi, dword [eax + 4]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2ce], 2
jne 0x59103f
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x308]
mov eax, dword [ebp - 4]
call fcn.0058c714
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30c]
mov eax, dword [ebp - 4]
call fcn.0058c740
test edi, edi
je 0x59108f
cmp edi, dword [ebp - 4]
je 0x59108f
mov eax, edi
call fcn.0058c28c
mov ebx, eax
mov eax, dword [edi + 0x58]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x58]
sar eax, 1
jns 0x591061
adc eax, 0
add ebx, eax
mov eax, edi
call fcn.0058c2ac
mov esi, eax
mov eax, dword [edi + 0x5c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x5c]
sar eax, 1
jns 0x59107c
adc eax, 0
add esi, eax
mov eax, edi
call fcn.0058dac8
lea edx, [ebp - 0x14]
call fcn.00592a28
jmp 0x5910ce
mov eax, dword [0x65a170]
call fcn.00592ecc
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x5910a8
adc ebx, 0
mov eax, dword [0x65a170]
call fcn.00592ec4
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x5910c1
adc esi, 0
lea edx, [ebp - 0x14]
mov eax, dword [0x65a170]
call fcn.00594138
mov eax, dword [ebp - 0x14]
cmp ebx, eax
jge 0x5910d7
mov ebx, eax
mov eax, dword [ebp - 0x10]
cmp esi, eax
jge 0x5910e0
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2ce], 2
jne 0x591150
mov eax, dword [ebp - 4]
call fcn.004f95c4
test al, al
je 0x591150
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00592240
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0059227c
mov dword [ebp - 0x40], 0x2c
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
push eax
call sub.user32.dll_GetWindowPlacement
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.004ef8e8
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x288]
push eax
call sub.user32.dll_SetWindowPlacement
jmp 0x59116d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc8]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x69], 0
je 0x591282
mov eax, dword [ebp - 4]
call fcn.0058e310
jmp 0x591282
cmp al, 5
jne 0x591282
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x5911d5
mov eax, dword [0x65a16c]
mov eax, dword [eax + 0x58]
call fcn.004ef944
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x5911b7
adc ebx, 0
mov eax, dword [0x65a16c]
mov eax, dword [eax + 0x58]
call fcn.004ef984
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x591231
adc esi, 0
jmp 0x591231
mov eax, dword [0x65a170]
call fcn.00592eec
mov ebx, eax
sar ebx, 1
jns 0x5911e8
adc ebx, 0
mov eax, dword [0x65a170]
call fcn.00592edc
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
sar eax, 1
jns 0x591201
adc eax, 0
sub ebx, eax
mov eax, dword [0x65a170]
call fcn.00592ee4
mov esi, eax
sar esi, 1
jns 0x591216
adc esi, 0
mov eax, dword [0x65a170]
call fcn.00592ed4
add esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
sar eax, 1
jns 0x59122f
adc eax, 0
sub esi, eax
mov eax, dword [0x65a170]
call fcn.00592edc
cmp ebx, eax
jge 0x59124b
mov eax, dword [0x65a170]
call fcn.00592edc
mov ebx, eax
mov eax, dword [0x65a170]
call fcn.00592ed4
cmp esi, eax
jge 0x591265
mov eax, dword [0x65a170]
call fcn.00592ed4
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc8]
mov eax, dword [ebp - 4]
mov byte [eax + 0x2d3], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x591351
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2ce], 2
jne 0x5912de
push 0
mov eax, dword [ebp - 4]
call fcn.004f91f0
push eax
push 0x223
mov eax, dword [0x65a16c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x3c4]
push eax
call sub.user32.dll_SendMessageW
push 3
mov eax, dword [ebp - 4]
call fcn.004f91f0
push eax
call sub.user32.dll_ShowWindow
jmp 0x59132f
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2ce]
mov eax, dword [eax*4 + 0x652748]
push eax
mov eax, dword [ebp - 4]
call fcn.004f91f0
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x5c]
shl edx, 0x10
or eax, edx
push eax
push 0
push 5
mov eax, dword [ebp - 4]
call fcn.004f91f0
push eax
push 0x41285c
call sub.user32.dll_CallWindowProcW
mov eax, dword [ebp - 4]
call fcn.004f0468
push 0
push 0
push 0x234
mov eax, dword [0x65a16c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x3c4]
push eax
call sub.user32.dll_SendMessageW
jmp 0x5914b0
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2ce]
mov eax, dword [eax*4 + 0x652748]
push eax
mov eax, dword [ebp - 4]
call fcn.004f91f0
push eax
call sub.user32.dll_ShowWindow
jmp 0x5914b0
xor eax, eax
push ebp
push 0x59139a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffa8
call fcn.00406ce8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5913b1
mov eax, dword [0x65a170]
mov eax, dword [eax + 0x74]
cmp eax, dword [ebp - 4]
jne 0x5913c8
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0058f8f8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x5913e4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xf4]
jmp 0x5914b0
mov eax, dword [ebp - 4]
test byte [eax + 0x3cc], 8
je 0x591412
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004f91f0
push eax
call sub.user32.dll_SetWindowPos
jmp 0x5914b0
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.004f91f0
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x591447
mov eax, dword [ebp - 4]
call fcn.004f91f0
call fcn.00589724
test eax, eax
jne 0x591447
mov eax, dword [ebp - 4]
call fcn.004f91f0
call fcn.00589a4c
mov ebx, eax
test ebx, ebx
je 0x591470
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004f91f0
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x5914b0
push 0
mov eax, dword [ebp - 4]
call fcn.004f91f0
push eax
call sub.user32.dll_ShowWindow
jmp 0x5914b0
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
je 0x5914b0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40], 0
je 0x5914b0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x215], 0
je 0x5914b0
push 1
mov eax, dword [ebp - 4]
call fcn.004f91f0
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5914cf
mov eax, dword [ebp - 4]
and byte [eax + 0x3cc], 0xfb
ret