Function at 0x5cef38
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 0x5cf639
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x5cef8d
mov eax, dword [ebp - 4]
test byte [eax + 0x3cc], 4
je 0x5cef8d
lea edx, [ebp - 0x44]
mov eax, dword [0x8032e0]
call fcn.0040e620
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x439eb4]
call fcn.004276dc
call fcn.00407f04
mov eax, dword [0x80a7fc]
call fcn.005d54b0
mov eax, dword [ebp - 4]
or byte [eax + 0x3cc], 4
xor edx, edx
push ebp
push 0x5cf61c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x5cf5d6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x215], 0
je 0x5cf4ca
xor eax, eax
push ebp
push 0x5ceff0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffa7
call fcn.00406dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5cf007
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d3], 4
je 0x5cf03b
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2d3]
sub al, 4
je 0x5cf02b
add al, 0xfe
sub al, 2
jae 0x5cf11e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x5cf11e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x5cf091
mov eax, dword [0x80a7fc]
mov eax, dword [eax + 0x58]
call fcn.005134b4
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x5cf063
adc ebx, 0
mov eax, dword [0x80a7fc]
mov eax, dword [eax + 0x58]
call fcn.005134f4
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x5cf07f
adc esi, 0
lea edx, [ebp - 0x14]
mov eax, dword [0x80a7fc]
mov eax, dword [eax + 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x70]
jmp 0x5cf0d5
mov eax, dword [ebp - 4]
call fcn.005cbc1c
lea edx, [ebp - 0x14]
call fcn.005d0b7c
lea eax, [ebp - 0x14]
call fcn.00410824
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x5cf0b8
adc ebx, 0
add ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
call fcn.0041082c
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x5cf0d2
adc esi, 0
add esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp ebx, eax
jge 0x5cf0de
mov ebx, eax
mov eax, dword [ebp - 0x10]
cmp esi, eax
jge 0x5cf0e7
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 0x5cf3d6
mov eax, dword [ebp - 4]
call fcn.005cc464
jmp 0x5cf3d6
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2d3]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x5cf2db
mov eax, dword [0x80a7fc]
mov edi, dword [eax + 0x58]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d3], 7
jne 0x5cf165
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x5bfa30]
call fcn.00406d30
test al, al
je 0x5cf165
mov eax, dword [ebp - 4]
mov edi, dword [eax + 4]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2ce], 2
jne 0x5cf193
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x308]
mov eax, dword [ebp - 4]
call fcn.005ca868
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30c]
mov eax, dword [ebp - 4]
call fcn.005ca894
test edi, edi
je 0x5cf1e3
cmp edi, dword [ebp - 4]
je 0x5cf1e3
mov eax, edi
call fcn.005ca3c4
mov ebx, eax
mov eax, dword [edi + 0x58]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x58]
sar eax, 1
jns 0x5cf1b5
adc eax, 0
add ebx, eax
mov eax, edi
call fcn.005ca3e4
mov esi, eax
mov eax, dword [edi + 0x5c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x5c]
sar eax, 1
jns 0x5cf1d0
adc eax, 0
add esi, eax
mov eax, edi
call fcn.005cbc1c
lea edx, [ebp - 0x14]
call fcn.005d0b7c
jmp 0x5cf222
mov eax, dword [0x80a800]
call fcn.005d1020
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x5cf1fc
adc ebx, 0
mov eax, dword [0x80a800]
call fcn.005d1018
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x5cf215
adc esi, 0
lea edx, [ebp - 0x14]
mov eax, dword [0x80a800]
call fcn.005d228c
mov eax, dword [ebp - 0x14]
cmp ebx, eax
jge 0x5cf22b
mov ebx, eax
mov eax, dword [ebp - 0x10]
cmp esi, eax
jge 0x5cf234
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2ce], 2
jne 0x5cf2a4
mov eax, dword [ebp - 4]
call fcn.0051d134
test al, al
je 0x5cf2a4
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.005d0394
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.005d03d0
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.00513458
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 0x5cf2c1
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 0x5cf3d6
mov eax, dword [ebp - 4]
call fcn.005cc464
jmp 0x5cf3d6
cmp al, 5
jne 0x5cf3d6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x5cf329
mov eax, dword [0x80a7fc]
mov eax, dword [eax + 0x58]
call fcn.005134b4
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x5cf30b
adc ebx, 0
mov eax, dword [0x80a7fc]
mov eax, dword [eax + 0x58]
call fcn.005134f4
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x5cf385
adc esi, 0
jmp 0x5cf385
mov eax, dword [0x80a800]
call fcn.005d1040
mov ebx, eax
sar ebx, 1
jns 0x5cf33c
adc ebx, 0
mov eax, dword [0x80a800]
call fcn.005d1030
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
sar eax, 1
jns 0x5cf355
adc eax, 0
sub ebx, eax
mov eax, dword [0x80a800]
call fcn.005d1038
mov esi, eax
sar esi, 1
jns 0x5cf36a
adc esi, 0
mov eax, dword [0x80a800]
call fcn.005d1028
add esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
sar eax, 1
jns 0x5cf383
adc eax, 0
sub esi, eax
mov eax, dword [0x80a800]
call fcn.005d1030
cmp ebx, eax
jge 0x5cf39f
mov eax, dword [0x80a800]
call fcn.005d1030
mov ebx, eax
mov eax, dword [0x80a800]
call fcn.005d1028
cmp esi, eax
jge 0x5cf3b9
mov eax, dword [0x80a800]
call fcn.005d1028
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 0x5cf4a5
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2ce], 2
jne 0x5cf432
push 0
mov eax, dword [ebp - 4]
call fcn.0051cd60
push eax
push 0x223
mov eax, dword [0x80a7fc]
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.0051cd60
push eax
call sub.user32.dll_ShowWindow
jmp 0x5cf483
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2ce]
mov eax, dword [eax*4 + 0x7fd308]
push eax
mov eax, dword [ebp - 4]
call fcn.0051cd60
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.0051cd60
push eax
push 0x412dd0
call sub.user32.dll_CallWindowProcW
mov eax, dword [ebp - 4]
call fcn.00513fd8
push 0
push 0
push 0x234
mov eax, dword [0x80a7fc]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x3c4]
push eax
call sub.user32.dll_SendMessageW
jmp 0x5cf604
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2ce]
mov eax, dword [eax*4 + 0x7fd308]
push eax
mov eax, dword [ebp - 4]
call fcn.0051cd60
push eax
call sub.user32.dll_ShowWindow
jmp 0x5cf604
xor eax, eax
push ebp
push 0x5cf4ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffa8
call fcn.00406dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5cf505
mov eax, dword [0x80a800]
mov eax, dword [eax + 0x74]
cmp eax, dword [ebp - 4]
jne 0x5cf51c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005cda4c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x5cf538
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xf4]
jmp 0x5cf604
mov eax, dword [ebp - 4]
test byte [eax + 0x3cc], 8
je 0x5cf566
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0051cd60
push eax
call sub.user32.dll_SetWindowPos
jmp 0x5cf604
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0051cd60
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x5cf59b
mov eax, dword [ebp - 4]
call fcn.0051cd60
call fcn.005c74b8
test eax, eax
jne 0x5cf59b
mov eax, dword [ebp - 4]
call fcn.0051cd60
call fcn.005c77e0
mov ebx, eax
test ebx, ebx
je 0x5cf5c4
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0051cd60
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x5cf604
push 0
mov eax, dword [ebp - 4]
call fcn.0051cd60
push eax
call sub.user32.dll_ShowWindow
jmp 0x5cf604
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
je 0x5cf604
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40], 0
je 0x5cf604
mov eax, dword [ebp - 4]
cmp byte [eax + 0x215], 0
je 0x5cf604
push 1
mov eax, dword [ebp - 4]
call fcn.0051cd60
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5cf623
mov eax, dword [ebp - 4]
and byte [eax + 0x3cc], 0xfb
ret