Function at 0x47813c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4786a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x478191
mov eax, dword [ebp - 4]
test byte [eax + 0x2f4], 4
je 0x478191
lea edx, [ebp - 8]
mov eax, dword [0x70f9b8]
call fcn.004071e8
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41b820]
call fcn.0040ecd4
call fcn.00404784
mov eax, dword [0x710bf8]
call fcn.0047cc3c
mov eax, dword [ebp - 4]
or byte [eax + 0x2f4], 4
xor edx, edx
push ebp
push 0x478689
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x478671
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1a6], 0
je 0x47856c
xor eax, eax
push ebp
push 0x4781f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffae
call fcn.004041ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47820b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x230], 4
je 0x478237
mov eax, dword [ebp - 4]
cmp byte [eax + 0x230], 6
jne 0x4782ee
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22f], 1
jne 0x4782ee
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22f], 1
jne 0x47827b
mov eax, dword [0x710bf8]
mov eax, dword [eax + 0x44]
call fcn.0045b6dc
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x47825f
adc ebx, 0
mov eax, dword [0x710bf8]
mov eax, dword [eax + 0x44]
call fcn.0045b720
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x4782ab
adc eax, 0
jmp 0x4782ab
mov eax, dword [0x710bfc]
call fcn.00479a8c
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x478294
adc ebx, 0
mov eax, dword [0x710bfc]
call fcn.00479a80
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x4782ab
adc eax, 0
test ebx, ebx
jge 0x4782b1
xor ebx, ebx
test eax, eax
jge 0x4782b7
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
push edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
push edx
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x84]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x57], 0
je 0x478478
mov eax, dword [ebp - 4]
call fcn.00476590
jmp 0x478478
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x230]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x4783d3
mov eax, dword [0x710bf8]
mov esi, dword [eax + 0x44]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x230], 7
jne 0x478334
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x471688]
call fcn.0040413c
test al, al
je 0x478334
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x478360
mov ebx, dword [esi + 0x48]
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x478348
adc ebx, 0
add ebx, dword [esi + 0x40]
mov eax, dword [esi + 0x4c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x47835b
adc eax, 0
add eax, dword [esi + 0x44]
jmp 0x478390
mov eax, dword [0x710bfc]
call fcn.00479a8c
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x478379
adc ebx, 0
mov eax, dword [0x710bfc]
call fcn.00479a80
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x478390
adc eax, 0
test ebx, ebx
jge 0x478396
xor ebx, ebx
test eax, eax
jge 0x47839c
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
push edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
push edx
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x84]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x57], 0
je 0x478478
mov eax, dword [ebp - 4]
call fcn.00476590
jmp 0x478478
cmp al, 5
jne 0x478478
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22f], 1
jne 0x47841f
mov eax, dword [0x710bf8]
mov eax, dword [eax + 0x44]
call fcn.0045b6dc
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x478403
adc ebx, 0
mov eax, dword [0x710bf8]
mov eax, dword [eax + 0x44]
call fcn.0045b720
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x47844f
adc eax, 0
jmp 0x47844f
mov eax, dword [0x710bfc]
call fcn.00479abc
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x478438
adc ebx, 0
mov eax, dword [0x710bfc]
call fcn.00479ab0
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x47844f
adc eax, 0
test ebx, ebx
jge 0x478455
xor ebx, ebx
test eax, eax
jge 0x47845b
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
push edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
push edx
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x84]
mov eax, dword [ebp - 4]
mov byte [eax + 0x230], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22f], 1
jne 0x478547
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22b], 2
jne 0x4784d4
push 0
mov eax, dword [ebp - 4]
call fcn.00462654
push eax
push 0x223
mov eax, dword [0x710bf8]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + 0x254]
push eax
call sub.user32.dll_SendMessageA
push 3
mov eax, dword [ebp - 4]
call fcn.00462654
push eax
call sub.user32.dll_ShowWindow
jmp 0x478525
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x22b]
mov eax, dword [eax*4 + 0x704240]
push eax
mov eax, dword [ebp - 4]
call fcn.00462654
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.00462654
push eax
push 0x407fa0
call sub.user32.dll_CallWindowProcA
mov eax, dword [ebp - 4]
call fcn.0045bf38
push 0
push 0
push 0x234
mov eax, dword [0x710bf8]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + 0x254]
push eax
call sub.user32.dll_SendMessageA
jmp 0x478671
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x22b]
mov eax, dword [eax*4 + 0x704240]
push eax
mov eax, dword [ebp - 4]
call fcn.00462654
push eax
call sub.user32.dll_ShowWindow
jmp 0x478671
xor eax, eax
push ebp
push 0x478590
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffaf
call fcn.004041ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4785a7
mov eax, dword [0x710bfc]
mov eax, dword [eax + 0x6c]
cmp eax, dword [ebp - 4]
jne 0x4785be
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004772e8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22f], 1
jne 0x4785d7
mov eax, dword [ebp - 4]
call fcn.0045fb74
jmp 0x478671
mov eax, dword [ebp - 4]
test byte [eax + 0x2f4], 8
je 0x478602
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00462654
push eax
call sub.user32.dll_SetWindowPos
jmp 0x478671
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00462654
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x478638
mov eax, dword [ebp - 4]
call fcn.00462654
push eax
call sub.user32.dll_IsIconic
test eax, eax
jne 0x478638
mov eax, dword [ebp - 4]
call fcn.00462654
call fcn.00472eec
mov ebx, eax
test ebx, ebx
je 0x478661
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00462654
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x478671
push 0
mov eax, dword [ebp - 4]
call fcn.00462654
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478690
mov eax, dword [ebp - 4]
and byte [eax + 0x2f4], 0xfb
ret