Function at 0x59d8c4
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 0x59dfc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x59d919
mov eax, dword [ebp - 4]
test byte [eax + 0x3cc], 4
je 0x59d919
lea edx, [ebp - 0x44]
mov eax, dword [0x662a14]
call fcn.0040e4b8
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x438264]
call fcn.0042648c
call fcn.00407e14
mov eax, dword [0x66978c]
call fcn.005a3e24
mov eax, dword [ebp - 4]
or byte [eax + 0x3cc], 4
xor edx, edx
push ebp
push 0x59dfa8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x59df62
mov eax, dword [ebp - 4]
cmp byte [eax + 0x215], 0
je 0x59de56
xor eax, eax
push ebp
push 0x59d97c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffa7
call fcn.00406cb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59d993
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d3], 4
je 0x59d9c7
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2d3]
sub al, 4
je 0x59d9b7
add al, 0xfe
sub al, 2
jae 0x59daaa
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x59daaa
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x59da1d
mov eax, dword [0x66978c]
mov eax, dword [eax + 0x58]
call fcn.004fc354
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x59d9ef
adc ebx, 0
mov eax, dword [0x66978c]
mov eax, dword [eax + 0x58]
call fcn.004fc394
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x59da0b
adc esi, 0
lea edx, [ebp - 0x14]
mov eax, dword [0x66978c]
mov eax, dword [eax + 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x70]
jmp 0x59da61
mov eax, dword [ebp - 4]
call fcn.0059a5a8
lea edx, [ebp - 0x14]
call fcn.0059f508
lea eax, [ebp - 0x14]
call fcn.004106bc
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x59da44
adc ebx, 0
add ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
call fcn.004106c4
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x59da5e
adc esi, 0
add esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp ebx, eax
jge 0x59da6a
mov ebx, eax
mov eax, dword [ebp - 0x10]
cmp esi, eax
jge 0x59da73
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 0x59dd62
mov eax, dword [ebp - 4]
call fcn.0059adf0
jmp 0x59dd62
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2d3]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x59dc67
mov eax, dword [0x66978c]
mov edi, dword [eax + 0x58]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d3], 7
jne 0x59daf1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x58e6e0]
call fcn.00406c10
test al, al
je 0x59daf1
mov eax, dword [ebp - 4]
mov edi, dword [eax + 4]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2ce], 2
jne 0x59db1f
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x308]
mov eax, dword [ebp - 4]
call fcn.005991f4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30c]
mov eax, dword [ebp - 4]
call fcn.00599220
test edi, edi
je 0x59db6f
cmp edi, dword [ebp - 4]
je 0x59db6f
mov eax, edi
call fcn.00598d50
mov ebx, eax
mov eax, dword [edi + 0x58]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x58]
sar eax, 1
jns 0x59db41
adc eax, 0
add ebx, eax
mov eax, edi
call fcn.00598d70
mov esi, eax
mov eax, dword [edi + 0x5c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x5c]
sar eax, 1
jns 0x59db5c
adc eax, 0
add esi, eax
mov eax, edi
call fcn.0059a5a8
lea edx, [ebp - 0x14]
call fcn.0059f508
jmp 0x59dbae
mov eax, dword [0x669790]
call fcn.0059f9ac
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x59db88
adc ebx, 0
mov eax, dword [0x669790]
call fcn.0059f9a4
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x59dba1
adc esi, 0
lea edx, [ebp - 0x14]
mov eax, dword [0x669790]
call fcn.005a0c18
mov eax, dword [ebp - 0x14]
cmp ebx, eax
jge 0x59dbb7
mov ebx, eax
mov eax, dword [ebp - 0x10]
cmp esi, eax
jge 0x59dbc0
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2ce], 2
jne 0x59dc30
mov eax, dword [ebp - 4]
call fcn.00505fd4
test al, al
je 0x59dc30
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0059ed20
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0059ed5c
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.004fc2f8
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 0x59dc4d
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 0x59dd62
mov eax, dword [ebp - 4]
call fcn.0059adf0
jmp 0x59dd62
cmp al, 5
jne 0x59dd62
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x59dcb5
mov eax, dword [0x66978c]
mov eax, dword [eax + 0x58]
call fcn.004fc354
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x59dc97
adc ebx, 0
mov eax, dword [0x66978c]
mov eax, dword [eax + 0x58]
call fcn.004fc394
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x59dd11
adc esi, 0
jmp 0x59dd11
mov eax, dword [0x669790]
call fcn.0059f9cc
mov ebx, eax
sar ebx, 1
jns 0x59dcc8
adc ebx, 0
mov eax, dword [0x669790]
call fcn.0059f9bc
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
sar eax, 1
jns 0x59dce1
adc eax, 0
sub ebx, eax
mov eax, dword [0x669790]
call fcn.0059f9c4
mov esi, eax
sar esi, 1
jns 0x59dcf6
adc esi, 0
mov eax, dword [0x669790]
call fcn.0059f9b4
add esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
sar eax, 1
jns 0x59dd0f
adc eax, 0
sub esi, eax
mov eax, dword [0x669790]
call fcn.0059f9bc
cmp ebx, eax
jge 0x59dd2b
mov eax, dword [0x669790]
call fcn.0059f9bc
mov ebx, eax
mov eax, dword [0x669790]
call fcn.0059f9b4
cmp esi, eax
jge 0x59dd45
mov eax, dword [0x669790]
call fcn.0059f9b4
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 0x59de31
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2ce], 2
jne 0x59ddbe
push 0
mov eax, dword [ebp - 4]
call fcn.00505c00
push eax
push 0x223
mov eax, dword [0x66978c]
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.00505c00
push eax
call sub.user32.dll_ShowWindow
jmp 0x59de0f
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2ce]
mov eax, dword [eax*4 + 0x661750]
push eax
mov eax, dword [ebp - 4]
call fcn.00505c00
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.00505c00
push eax
push 0x412540
call sub.user32.dll_CallWindowProcW
mov eax, dword [ebp - 4]
call fcn.004fce78
push 0
push 0
push 0x234
mov eax, dword [0x66978c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x3c4]
push eax
call sub.user32.dll_SendMessageW
jmp 0x59df90
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2ce]
mov eax, dword [eax*4 + 0x661750]
push eax
mov eax, dword [ebp - 4]
call fcn.00505c00
push eax
call sub.user32.dll_ShowWindow
jmp 0x59df90
xor eax, eax
push ebp
push 0x59de7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffa8
call fcn.00406cb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59de91
mov eax, dword [0x669790]
mov eax, dword [eax + 0x74]
cmp eax, dword [ebp - 4]
jne 0x59dea8
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0059c3d8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x59dec4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xf4]
jmp 0x59df90
mov eax, dword [ebp - 4]
test byte [eax + 0x3cc], 8
je 0x59def2
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00505c00
push eax
call sub.user32.dll_SetWindowPos
jmp 0x59df90
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00505c00
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x59df27
mov eax, dword [ebp - 4]
call fcn.00505c00
call fcn.00596168
test eax, eax
jne 0x59df27
mov eax, dword [ebp - 4]
call fcn.00505c00
call fcn.00596490
mov ebx, eax
test ebx, ebx
je 0x59df50
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00505c00
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x59df90
push 0
mov eax, dword [ebp - 4]
call fcn.00505c00
push eax
call sub.user32.dll_ShowWindow
jmp 0x59df90
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
je 0x59df90
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40], 0
je 0x59df90
mov eax, dword [ebp - 4]
cmp byte [eax + 0x215], 0
je 0x59df90
push 1
mov eax, dword [ebp - 4]
call fcn.00505c00
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59dfaf
mov eax, dword [ebp - 4]
and byte [eax + 0x3cc], 0xfb
ret