Function at 0x5d00ac
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 0x5d070e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x5d0101
mov eax, dword [ebp - 4]
test byte [eax + 0x39c], 4
je 0x5d0101
lea edx, [ebp - 0x18]
mov eax, dword [0x991328]
call fcn.0040e960
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x491e88]
call fcn.0042db18
call fcn.00409990
mov eax, dword [0x997360]
call fcn.005d67cc
mov eax, dword [ebp - 4]
or byte [eax + 0x39c], 4
xor edx, edx
push ebp
push 0x5d06f1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x5d06ab
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1fd], 0
je 0x5d059f
xor eax, eax
push ebp
push 0x5d0164
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffa9
call fcn.0040899c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5d017b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b7], 4
je 0x5d01a7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b7], 6
jne 0x5d028b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x5d028b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x5d01ed
mov eax, dword [0x997360]
mov eax, dword [eax + 0x48]
call fcn.005fdb44
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x5d01cf
adc ebx, 0
mov eax, dword [0x997360]
mov eax, dword [eax + 0x48]
call fcn.005fdb84
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x54]
sar esi, 1
jns 0x5d0220
adc esi, 0
jmp 0x5d0220
lea edx, [ebp - 0x14]
mov eax, dword [0x997364]
call fcn.005d3818
mov ebx, dword [ebp - 0xc]
sub ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x5d020d
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 0x5d0220
adc esi, 0
mov eax, dword [0x997364]
call fcn.005d25b8
cmp ebx, eax
jge 0x5d023a
mov eax, dword [0x997364]
call fcn.005d25b8
mov ebx, eax
mov eax, dword [0x997364]
call fcn.005d25b0
cmp esi, eax
jge 0x5d0254
mov eax, dword [0x997364]
call fcn.005d25b0
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 0x5d04ab
mov eax, dword [ebp - 4]
call fcn.005cd8a0
jmp 0x5d04ab
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2b7]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x5d03b0
mov eax, dword [0x997360]
mov esi, dword [eax + 0x48]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b7], 7
jne 0x5d02d2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x5c1770]
call fcn.00408918
test al, al
je 0x5d02d2
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x5d0313
cmp esi, dword [ebp - 4]
je 0x5d0313
mov eax, esi
call fcn.005cb900
mov ebx, eax
mov eax, dword [esi + 0x50]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x50]
sar eax, 1
jns 0x5d02f4
adc eax, 0
add ebx, eax
mov eax, esi
call fcn.005cb920
mov edx, dword [esi + 0x54]
mov ecx, dword [ebp - 4]
sub edx, dword [ecx + 0x54]
sar edx, 1
jns 0x5d030d
adc edx, 0
add eax, edx
mov esi, eax
jmp 0x5d0345
mov eax, dword [0x997364]
call fcn.005d25a8
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x5d032c
adc ebx, 0
mov eax, dword [0x997364]
call fcn.005d25a0
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x54]
sar esi, 1
jns 0x5d0345
adc esi, 0
mov eax, dword [0x997364]
call fcn.005d25b8
cmp ebx, eax
jge 0x5d035f
mov eax, dword [0x997364]
call fcn.005d25b8
mov ebx, eax
mov eax, dword [0x997364]
call fcn.005d25b0
cmp esi, eax
jge 0x5d0379
mov eax, dword [0x997364]
call fcn.005d25b0
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 0x5d04ab
mov eax, dword [ebp - 4]
call fcn.005cd8a0
jmp 0x5d04ab
cmp al, 5
jne 0x5d04ab
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x5d03fe
mov eax, dword [0x997360]
mov eax, dword [eax + 0x48]
call fcn.005fdb44
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x50]
sar ebx, 1
jns 0x5d03e0
adc ebx, 0
mov eax, dword [0x997360]
mov eax, dword [eax + 0x48]
call fcn.005fdb84
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x54]
sar esi, 1
jns 0x5d045a
adc esi, 0
jmp 0x5d045a
mov eax, dword [0x997364]
call fcn.005d25c8
mov ebx, eax
sar ebx, 1
jns 0x5d0411
adc ebx, 0
mov eax, dword [0x997364]
call fcn.005d25b8
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
sar eax, 1
jns 0x5d042a
adc eax, 0
sub ebx, eax
mov eax, dword [0x997364]
call fcn.005d25c0
mov esi, eax
sar esi, 1
jns 0x5d043f
adc esi, 0
mov eax, dword [0x997364]
call fcn.005d25b0
add esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
sar eax, 1
jns 0x5d0458
adc eax, 0
sub esi, eax
mov eax, dword [0x997364]
call fcn.005d25b8
cmp ebx, eax
jge 0x5d0474
mov eax, dword [0x997364]
call fcn.005d25b8
mov ebx, eax
mov eax, dword [0x997364]
call fcn.005d25b0
cmp esi, eax
jge 0x5d048e
mov eax, dword [0x997364]
call fcn.005d25b0
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 0x5d057a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b2], 2
jne 0x5d0507
push 0
mov eax, dword [ebp - 4]
call fcn.006074c4
push eax
push 0x223
mov eax, dword [0x997360]
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.006074c4
push eax
call sub.user32.dll_ShowWindow
jmp 0x5d0558
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2b2]
mov eax, dword [eax*4 + 0x9884d8]
push eax
mov eax, dword [ebp - 4]
call fcn.006074c4
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.006074c4
push eax
push 0x414b04
call sub.user32.dll_CallWindowProcW
mov eax, dword [ebp - 4]
call fcn.005fe524
push 0
push 0
push 0x234
mov eax, dword [0x997360]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x394]
push eax
call sub.user32.dll_SendMessageW
jmp 0x5d06d9
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2b2]
mov eax, dword [eax*4 + 0x9884d8]
push eax
mov eax, dword [ebp - 4]
call fcn.006074c4
push eax
call sub.user32.dll_ShowWindow
jmp 0x5d06d9
xor eax, eax
push ebp
push 0x5d05c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffaa
call fcn.0040899c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5d05da
mov eax, dword [0x997364]
mov eax, dword [eax + 0x6c]
cmp eax, dword [ebp - 4]
jne 0x5d05f1
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005cee08
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2b6], 1
jne 0x5d060d
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xd0]
jmp 0x5d06d9
mov eax, dword [ebp - 4]
test byte [eax + 0x39c], 8
je 0x5d063b
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.006074c4
push eax
call sub.user32.dll_SetWindowPos
jmp 0x5d06d9
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.006074c4
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x5d0670
mov eax, dword [ebp - 4]
call fcn.006074c4
call fcn.005c8c7c
test eax, eax
jne 0x5d0670
mov eax, dword [ebp - 4]
call fcn.006074c4
call fcn.005c8fd0
mov ebx, eax
test ebx, ebx
je 0x5d0699
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.006074c4
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x5d06d9
push 0
mov eax, dword [ebp - 4]
call fcn.006074c4
push eax
call sub.user32.dll_ShowWindow
jmp 0x5d06d9
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
je 0x5d06d9
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x5d06d9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1fd], 0
je 0x5d06d9
push 1
mov eax, dword [ebp - 4]
call fcn.006074c4
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d06f8
mov eax, dword [ebp - 4]
and byte [eax + 0x39c], 0xfb
ret