Function at 0x4775d4
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 0x477c36
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x477629
mov eax, dword [ebp - 4]
test byte [eax + 0x374], 4
je 0x477629
lea edx, [ebp - 0x18]
mov eax, dword [0x504030]
call fcn.00408d5c
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x420c7c]
call fcn.0041185c
call fcn.00404a74
mov eax, dword [0x50a178]
call fcn.0047d1f4
mov eax, dword [ebp - 4]
or byte [eax + 0x374], 4
xor edx, edx
push ebp
push 0x477c19
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x477bd3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e2], 0
je 0x477ac7
xor eax, eax
push ebp
push 0x47768c
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 0x4776a3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x288], 4
je 0x4776cf
mov eax, dword [ebp - 4]
cmp byte [eax + 0x288], 6
jne 0x4777b3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x287], 1
jne 0x4777b3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x287], 1
jne 0x477715
mov eax, dword [0x50a178]
mov eax, dword [eax + 0x40]
call fcn.0045a904
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x4776f7
adc ebx, 0
mov eax, dword [0x50a178]
mov eax, dword [eax + 0x40]
call fcn.0045a948
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x477748
adc esi, 0
jmp 0x477748
lea edx, [ebp - 0x14]
mov eax, dword [0x50a17c]
call fcn.0047a628
mov ebx, dword [ebp - 0xc]
sub ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x477735
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 0x477748
adc esi, 0
mov eax, dword [0x50a17c]
call fcn.004795ac
cmp ebx, eax
jge 0x477762
mov eax, dword [0x50a17c]
call fcn.004795ac
mov ebx, eax
mov eax, dword [0x50a17c]
call fcn.004795a0
cmp esi, eax
jge 0x47777c
mov eax, dword [0x50a17c]
call fcn.004795a0
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 0x4779d3
mov eax, dword [ebp - 4]
call fcn.00474e74
jmp 0x4779d3
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x288]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x4778d8
mov eax, dword [0x50a178]
mov esi, dword [eax + 0x40]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x288], 7
jne 0x4777fa
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x46f1fc]
call fcn.00404238
test al, al
je 0x4777fa
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x47783b
cmp esi, dword [ebp - 4]
je 0x47783b
mov eax, esi
call fcn.00473008
mov ebx, eax
mov eax, dword [esi + 0x48]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x48]
sar eax, 1
jns 0x47781c
adc eax, 0
add ebx, eax
mov eax, esi
call fcn.00473028
mov edx, dword [esi + 0x4c]
mov ecx, dword [ebp - 4]
sub edx, dword [ecx + 0x4c]
sar edx, 1
jns 0x477835
adc edx, 0
add eax, edx
mov esi, eax
jmp 0x47786d
mov eax, dword [0x50a17c]
call fcn.00479594
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x477854
adc ebx, 0
mov eax, dword [0x50a17c]
call fcn.00479588
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x47786d
adc esi, 0
mov eax, dword [0x50a17c]
call fcn.004795ac
cmp ebx, eax
jge 0x477887
mov eax, dword [0x50a17c]
call fcn.004795ac
mov ebx, eax
mov eax, dword [0x50a17c]
call fcn.004795a0
cmp esi, eax
jge 0x4778a1
mov eax, dword [0x50a17c]
call fcn.004795a0
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 0x4779d3
mov eax, dword [ebp - 4]
call fcn.00474e74
jmp 0x4779d3
cmp al, 5
jne 0x4779d3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x287], 1
jne 0x477926
mov eax, dword [0x50a178]
mov eax, dword [eax + 0x40]
call fcn.0045a904
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x477908
adc ebx, 0
mov eax, dword [0x50a178]
mov eax, dword [eax + 0x40]
call fcn.0045a948
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x477982
adc esi, 0
jmp 0x477982
mov eax, dword [0x50a17c]
call fcn.004795c4
mov ebx, eax
sar ebx, 1
jns 0x477939
adc ebx, 0
mov eax, dword [0x50a17c]
call fcn.004795ac
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
sar eax, 1
jns 0x477952
adc eax, 0
sub ebx, eax
mov eax, dword [0x50a17c]
call fcn.004795b8
mov esi, eax
sar esi, 1
jns 0x477967
adc esi, 0
mov eax, dword [0x50a17c]
call fcn.004795a0
add esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
sar eax, 1
jns 0x477980
adc eax, 0
sub esi, eax
mov eax, dword [0x50a17c]
call fcn.004795ac
cmp ebx, eax
jge 0x47799c
mov eax, dword [0x50a17c]
call fcn.004795ac
mov ebx, eax
mov eax, dword [0x50a17c]
call fcn.004795a0
cmp esi, eax
jge 0x4779b6
mov eax, dword [0x50a17c]
call fcn.004795a0
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 0x477aa2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x283], 2
jne 0x477a2f
push 0
mov eax, dword [ebp - 4]
call fcn.0046393c
push eax
push 0x223
mov eax, dword [0x50a178]
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.0046393c
push eax
call sub.user32.dll_ShowWindow
jmp 0x477a80
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x283]
mov eax, dword [eax*4 + 0x502d1c]
push eax
mov eax, dword [ebp - 4]
call fcn.0046393c
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.0046393c
push eax
push 0x409bc4
call sub.user32.dll_CallWindowProcW
mov eax, dword [ebp - 4]
call fcn.0045b29c
push 0
push 0
push 0x234
mov eax, dword [0x50a178]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x36c]
push eax
call sub.user32.dll_SendMessageW
jmp 0x477c01
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x283]
mov eax, dword [eax*4 + 0x502d1c]
push eax
mov eax, dword [ebp - 4]
call fcn.0046393c
push eax
call sub.user32.dll_ShowWindow
jmp 0x477c01
xor eax, eax
push ebp
push 0x477aeb
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 0x477b02
mov eax, dword [0x50a17c]
mov eax, dword [eax + 0x64]
cmp eax, dword [ebp - 4]
jne 0x477b19
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00476328
mov eax, dword [ebp - 4]
cmp byte [eax + 0x287], 1
jne 0x477b35
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xb0]
jmp 0x477c01
mov eax, dword [ebp - 4]
test byte [eax + 0x374], 8
je 0x477b63
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0046393c
push eax
call sub.user32.dll_SetWindowPos
jmp 0x477c01
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0046393c
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x477b98
mov eax, dword [ebp - 4]
call fcn.0046393c
call fcn.00470958
test eax, eax
jne 0x477b98
mov eax, dword [ebp - 4]
call fcn.0046393c
call fcn.00470c88
mov ebx, eax
test ebx, ebx
je 0x477bc1
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0046393c
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x477c01
push 0
mov eax, dword [ebp - 4]
call fcn.0046393c
push eax
call sub.user32.dll_ShowWindow
jmp 0x477c01
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
je 0x477c01
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
je 0x477c01
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1e2], 0
je 0x477c01
push 1
mov eax, dword [ebp - 4]
call fcn.0046393c
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477c20
mov eax, dword [ebp - 4]
and byte [eax + 0x374], 0xfb
ret