Function at 0x5f19f4
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 0x5f20f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x5f1a49
mov eax, dword [ebp - 4]
test byte [eax + 0x3cc], 4
je 0x5f1a49
lea edx, [ebp - 0x44]
mov eax, dword [0x7b12f8]
call fcn.0040e928
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x43a414]
call fcn.004283ac
call fcn.00407e74
mov eax, dword [0x7b81fc]
call fcn.005f8404
mov eax, dword [ebp - 4]
or byte [eax + 0x3cc], 4
xor edx, edx
push ebp
push 0x5f20d8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x5f2092
mov eax, dword [ebp - 4]
cmp byte [eax + 0x215], 0
je 0x5f1f86
xor eax, eax
push ebp
push 0x5f1aac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffa7
call fcn.00406d40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5f1ac3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d3], 4
je 0x5f1af7
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2d3]
sub al, 4
je 0x5f1ae7
add al, 0xfe
sub al, 2
jae 0x5f1bda
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x5f1bda
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x5f1b4d
mov eax, dword [0x7b81fc]
mov eax, dword [eax + 0x58]
call fcn.00504094
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x5f1b1f
adc ebx, 0
mov eax, dword [0x7b81fc]
mov eax, dword [eax + 0x58]
call fcn.005040d4
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x5f1b3b
adc esi, 0
lea edx, [ebp - 0x14]
mov eax, dword [0x7b81fc]
mov eax, dword [eax + 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x70]
jmp 0x5f1b91
mov eax, dword [ebp - 4]
call fcn.005ee6d8
lea edx, [ebp - 0x14]
call fcn.005f3a58
lea eax, [ebp - 0x14]
call fcn.00410b34
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x5f1b74
adc ebx, 0
add ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
call fcn.00410b44
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x5f1b8e
adc esi, 0
add esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp ebx, eax
jge 0x5f1b9a
mov ebx, eax
mov eax, dword [ebp - 0x10]
cmp esi, eax
jge 0x5f1ba3
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 0x5f1e92
mov eax, dword [ebp - 4]
call fcn.005eef20
jmp 0x5f1e92
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2d3]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x5f1d97
mov eax, dword [0x7b81fc]
mov edi, dword [eax + 0x58]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d3], 7
jne 0x5f1c21
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x5e25ac]
call fcn.00406ca0
test al, al
je 0x5f1c21
mov eax, dword [ebp - 4]
mov edi, dword [eax + 4]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2ce], 2
jne 0x5f1c4f
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x308]
mov eax, dword [ebp - 4]
call fcn.005ed324
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30c]
mov eax, dword [ebp - 4]
call fcn.005ed350
test edi, edi
je 0x5f1c9f
cmp edi, dword [ebp - 4]
je 0x5f1c9f
mov eax, edi
call fcn.005ece9c
mov ebx, eax
mov eax, dword [edi + 0x58]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x58]
sar eax, 1
jns 0x5f1c71
adc eax, 0
add ebx, eax
mov eax, edi
call fcn.005ecebc
mov esi, eax
mov eax, dword [edi + 0x5c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x5c]
sar eax, 1
jns 0x5f1c8c
adc eax, 0
add esi, eax
mov eax, edi
call fcn.005ee6d8
lea edx, [ebp - 0x14]
call fcn.005f3a58
jmp 0x5f1cde
mov eax, dword [0x7b8200]
call fcn.005f3efc
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x5f1cb8
adc ebx, 0
mov eax, dword [0x7b8200]
call fcn.005f3ef4
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x5f1cd1
adc esi, 0
lea edx, [ebp - 0x14]
mov eax, dword [0x7b8200]
call fcn.005f5168
mov eax, dword [ebp - 0x14]
cmp ebx, eax
jge 0x5f1ce7
mov ebx, eax
mov eax, dword [ebp - 0x10]
cmp esi, eax
jge 0x5f1cf0
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2ce], 2
jne 0x5f1d60
mov eax, dword [ebp - 4]
call fcn.0050df74
test al, al
je 0x5f1d60
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.005f3198
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.005f31d4
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.00504038
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 0x5f1d7d
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 0x5f1e92
mov eax, dword [ebp - 4]
call fcn.005eef20
jmp 0x5f1e92
cmp al, 5
jne 0x5f1e92
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x5f1de5
mov eax, dword [0x7b81fc]
mov eax, dword [eax + 0x58]
call fcn.00504094
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x58]
sar ebx, 1
jns 0x5f1dc7
adc ebx, 0
mov eax, dword [0x7b81fc]
mov eax, dword [eax + 0x58]
call fcn.005040d4
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x5c]
sar esi, 1
jns 0x5f1e41
adc esi, 0
jmp 0x5f1e41
mov eax, dword [0x7b8200]
call fcn.005f3f1c
mov ebx, eax
sar ebx, 1
jns 0x5f1df8
adc ebx, 0
mov eax, dword [0x7b8200]
call fcn.005f3f0c
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
sar eax, 1
jns 0x5f1e11
adc eax, 0
sub ebx, eax
mov eax, dword [0x7b8200]
call fcn.005f3f14
mov esi, eax
sar esi, 1
jns 0x5f1e26
adc esi, 0
mov eax, dword [0x7b8200]
call fcn.005f3f04
add esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
sar eax, 1
jns 0x5f1e3f
adc eax, 0
sub esi, eax
mov eax, dword [0x7b8200]
call fcn.005f3f0c
cmp ebx, eax
jge 0x5f1e5b
mov eax, dword [0x7b8200]
call fcn.005f3f0c
mov ebx, eax
mov eax, dword [0x7b8200]
call fcn.005f3f04
cmp esi, eax
jge 0x5f1e75
mov eax, dword [0x7b8200]
call fcn.005f3f04
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 0x5f1f61
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2ce], 2
jne 0x5f1eee
push 0
mov eax, dword [ebp - 4]
call fcn.0050dba0
push eax
push 0x223
mov eax, dword [0x7b81fc]
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.0050dba0
push eax
call sub.user32.dll_ShowWindow
jmp 0x5f1f3f
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2ce]
mov eax, dword [eax*4 + 0x7ae3dc]
push eax
mov eax, dword [ebp - 4]
call fcn.0050dba0
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.0050dba0
push eax
push 0x4137fc
call sub.user32.dll_CallWindowProcW
mov eax, dword [ebp - 4]
call fcn.00504c18
push 0
push 0
push 0x234
mov eax, dword [0x7b81fc]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x3c4]
push eax
call sub.user32.dll_SendMessageW
jmp 0x5f20c0
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x2ce]
mov eax, dword [eax*4 + 0x7ae3dc]
push eax
mov eax, dword [ebp - 4]
call fcn.0050dba0
push eax
call sub.user32.dll_ShowWindow
jmp 0x5f20c0
xor eax, eax
push ebp
push 0x5f1faa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffa8
call fcn.00406d40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5f1fc1
mov eax, dword [0x7b8200]
mov eax, dword [eax + 0x74]
cmp eax, dword [ebp - 4]
jne 0x5f1fd8
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005f0508
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d2], 1
jne 0x5f1ff4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xf4]
jmp 0x5f20c0
mov eax, dword [ebp - 4]
test byte [eax + 0x3cc], 8
je 0x5f2022
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0050dba0
push eax
call sub.user32.dll_SetWindowPos
jmp 0x5f20c0
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0050dba0
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x5f2057
mov eax, dword [ebp - 4]
call fcn.0050dba0
call fcn.005ea174
test eax, eax
jne 0x5f2057
mov eax, dword [ebp - 4]
call fcn.0050dba0
call fcn.005ea49c
mov ebx, eax
test ebx, ebx
je 0x5f2080
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0050dba0
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x5f20c0
push 0
mov eax, dword [ebp - 4]
call fcn.0050dba0
push eax
call sub.user32.dll_ShowWindow
jmp 0x5f20c0
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
je 0x5f20c0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40], 0
je 0x5f20c0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x215], 0
je 0x5f20c0
push 1
mov eax, dword [ebp - 4]
call fcn.0050dba0
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f20df
mov eax, dword [ebp - 4]
and byte [eax + 0x3cc], 0xfb
ret