Function at 0x47f1a8
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 0x47f80a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x47f1fd
mov eax, dword [ebp - 4]
test byte [eax + 0x374], 4
je 0x47f1fd
lea edx, [ebp - 0x18]
mov eax, dword [0x527068]
call fcn.00408d5c
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x428850]
call fcn.00419334
call fcn.00404a74
mov eax, dword [0x52d178]
call fcn.00484dc8
mov eax, dword [ebp - 4]
or byte [eax + 0x374], 4
xor edx, edx
push ebp
push 0x47f7ed
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x47f7a7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e2], 0
je 0x47f69b
xor eax, eax
push ebp
push 0x47f260
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffab
call fcn.004042a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47f277
mov eax, dword [ebp - 4]
cmp byte [eax + 0x288], 4
je 0x47f2a3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x288], 6
jne 0x47f387
mov eax, dword [ebp - 4]
cmp byte [eax + 0x287], 1
jne 0x47f387
mov eax, dword [ebp - 4]
cmp byte [eax + 0x287], 1
jne 0x47f2e9
mov eax, dword [0x52d178]
mov eax, dword [eax + 0x40]
call fcn.004624d8
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x47f2cb
adc ebx, 0
mov eax, dword [0x52d178]
mov eax, dword [eax + 0x40]
call fcn.0046251c
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x47f31c
adc esi, 0
jmp 0x47f31c
lea edx, [ebp - 0x14]
mov eax, dword [0x52d17c]
call fcn.004821fc
mov ebx, dword [ebp - 0xc]
sub ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x47f309
adc ebx, 0
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x47f31c
adc esi, 0
mov eax, dword [0x52d17c]
call fcn.00481180
cmp ebx, eax
jge 0x47f336
mov eax, dword [0x52d17c]
call fcn.00481180
mov ebx, eax
mov eax, dword [0x52d17c]
call fcn.00481174
cmp esi, eax
jge 0x47f350
mov eax, dword [0x52d17c]
call fcn.00481174
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x88]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x57], 0
je 0x47f5a7
mov eax, dword [ebp - 4]
call fcn.0047ca48
jmp 0x47f5a7
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x288]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x47f4ac
mov eax, dword [0x52d178]
mov esi, dword [eax + 0x40]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x288], 7
jne 0x47f3ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x476dd0]
call fcn.00404238
test al, al
je 0x47f3ce
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x47f40f
cmp esi, dword [ebp - 4]
je 0x47f40f
mov eax, esi
call fcn.0047abdc
mov ebx, eax
mov eax, dword [esi + 0x48]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x48]
sar eax, 1
jns 0x47f3f0
adc eax, 0
add ebx, eax
mov eax, esi
call fcn.0047abfc
mov edx, dword [esi + 0x4c]
mov ecx, dword [ebp - 4]
sub edx, dword [ecx + 0x4c]
sar edx, 1
jns 0x47f409
adc edx, 0
add eax, edx
mov esi, eax
jmp 0x47f441
mov eax, dword [0x52d17c]
call fcn.00481168
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x47f428
adc ebx, 0
mov eax, dword [0x52d17c]
call fcn.0048115c
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x47f441
adc esi, 0
mov eax, dword [0x52d17c]
call fcn.00481180
cmp ebx, eax
jge 0x47f45b
mov eax, dword [0x52d17c]
call fcn.00481180
mov ebx, eax
mov eax, dword [0x52d17c]
call fcn.00481174
cmp esi, eax
jge 0x47f475
mov eax, dword [0x52d17c]
call fcn.00481174
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x88]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x57], 0
je 0x47f5a7
mov eax, dword [ebp - 4]
call fcn.0047ca48
jmp 0x47f5a7
cmp al, 5
jne 0x47f5a7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x287], 1
jne 0x47f4fa
mov eax, dword [0x52d178]
mov eax, dword [eax + 0x40]
call fcn.004624d8
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x47f4dc
adc ebx, 0
mov eax, dword [0x52d178]
mov eax, dword [eax + 0x40]
call fcn.0046251c
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x47f556
adc esi, 0
jmp 0x47f556
mov eax, dword [0x52d17c]
call fcn.00481198
mov ebx, eax
sar ebx, 1
jns 0x47f50d
adc ebx, 0
mov eax, dword [0x52d17c]
call fcn.00481180
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
sar eax, 1
jns 0x47f526
adc eax, 0
sub ebx, eax
mov eax, dword [0x52d17c]
call fcn.0048118c
mov esi, eax
sar esi, 1
jns 0x47f53b
adc esi, 0
mov eax, dword [0x52d17c]
call fcn.00481174
add esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
sar eax, 1
jns 0x47f554
adc eax, 0
sub esi, eax
mov eax, dword [0x52d17c]
call fcn.00481180
cmp ebx, eax
jge 0x47f570
mov eax, dword [0x52d17c]
call fcn.00481180
mov ebx, eax
mov eax, dword [0x52d17c]
call fcn.00481174
cmp esi, eax
jge 0x47f58a
mov eax, dword [0x52d17c]
call fcn.00481174
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x88]
mov eax, dword [ebp - 4]
mov byte [eax + 0x288], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x287], 1
jne 0x47f676
mov eax, dword [ebp - 4]
cmp byte [eax + 0x283], 2
jne 0x47f603
push 0
mov eax, dword [ebp - 4]
call fcn.0046b510
push eax
push 0x223
mov eax, dword [0x52d178]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x36c]
push eax
call sub.user32.dll_SendMessageW
push 3
mov eax, dword [ebp - 4]
call fcn.0046b510
push eax
call sub.user32.dll_ShowWindow
jmp 0x47f654
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x283]
mov eax, dword [eax*4 + 0x525d5c]
push eax
mov eax, dword [ebp - 4]
call fcn.0046b510
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
shl edx, 0x10
or eax, edx
push eax
push 0
push 5
mov eax, dword [ebp - 4]
call fcn.0046b510
push eax
push 0x409bf4
call sub.user32.dll_CallWindowProcW
mov eax, dword [ebp - 4]
call fcn.00462e70
push 0
push 0
push 0x234
mov eax, dword [0x52d178]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x36c]
push eax
call sub.user32.dll_SendMessageW
jmp 0x47f7d5
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x283]
mov eax, dword [eax*4 + 0x525d5c]
push eax
mov eax, dword [ebp - 4]
call fcn.0046b510
push eax
call sub.user32.dll_ShowWindow
jmp 0x47f7d5
xor eax, eax
push ebp
push 0x47f6bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffac
call fcn.004042a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47f6d6
mov eax, dword [0x52d17c]
mov eax, dword [eax + 0x64]
cmp eax, dword [ebp - 4]
jne 0x47f6ed
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0047defc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x287], 1
jne 0x47f709
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xb0]
jmp 0x47f7d5
mov eax, dword [ebp - 4]
test byte [eax + 0x374], 8
je 0x47f737
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0046b510
push eax
call sub.user32.dll_SetWindowPos
jmp 0x47f7d5
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0046b510
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x47f76c
mov eax, dword [ebp - 4]
call fcn.0046b510
call fcn.0047852c
test eax, eax
jne 0x47f76c
mov eax, dword [ebp - 4]
call fcn.0046b510
call fcn.0047885c
mov ebx, eax
test ebx, ebx
je 0x47f795
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0046b510
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x47f7d5
push 0
mov eax, dword [ebp - 4]
call fcn.0046b510
push eax
call sub.user32.dll_ShowWindow
jmp 0x47f7d5
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
je 0x47f7d5
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
je 0x47f7d5
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e2], 0
je 0x47f7d5
push 1
mov eax, dword [ebp - 4]
call fcn.0046b510
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f7f4
mov eax, dword [ebp - 4]
and byte [eax + 0x374], 0xfb
ret