Function at 0x4a12d4
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 0x4a183e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4a1329
mov eax, dword [ebp - 4]
test byte [eax + 0x2f4], 4
je 0x4a1329
lea edx, [ebp - 8]
mov eax, dword [0x7b61d8]
call fcn.0040745c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41dc04]
call fcn.0040eef8
call fcn.00404838
mov eax, dword [0x7b7c1c]
call fcn.004a5d88
mov eax, dword [ebp - 4]
or byte [eax + 0x2f4], 4
xor edx, edx
push ebp
push 0x4a1821
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4a1809
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1a6], 0
je 0x4a1704
xor eax, eax
push ebp
push 0x4a138c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffae
call fcn.004041a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a13a3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x230], 4
je 0x4a13cf
mov eax, dword [ebp - 4]
cmp byte [eax + 0x230], 6
jne 0x4a1486
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22f], 1
jne 0x4a1486
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22f], 1
jne 0x4a1413
mov eax, dword [0x7b7c1c]
mov eax, dword [eax + 0x44]
call fcn.00482fc8
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x4a13f7
adc ebx, 0
mov eax, dword [0x7b7c1c]
mov eax, dword [eax + 0x44]
call fcn.0048300c
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x4a1443
adc eax, 0
jmp 0x4a1443
mov eax, dword [0x7b7c20]
call fcn.004a2c64
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x4a142c
adc ebx, 0
mov eax, dword [0x7b7c20]
call fcn.004a2c58
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x4a1443
adc eax, 0
test ebx, ebx
jge 0x4a1449
xor ebx, ebx
test eax, eax
jge 0x4a144f
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 0x4a1610
mov eax, dword [ebp - 4]
call fcn.0049f730
jmp 0x4a1610
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x230]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x4a156b
mov eax, dword [0x7b7c1c]
mov esi, dword [eax + 0x44]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x230], 7
jne 0x4a14cc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x49a554]
call fcn.00404134
test al, al
je 0x4a14cc
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x4a14f8
mov ebx, dword [esi + 0x48]
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x4a14e0
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 0x4a14f3
adc eax, 0
add eax, dword [esi + 0x44]
jmp 0x4a1528
mov eax, dword [0x7b7c20]
call fcn.004a2c64
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x4a1511
adc ebx, 0
mov eax, dword [0x7b7c20]
call fcn.004a2c58
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x4a1528
adc eax, 0
test ebx, ebx
jge 0x4a152e
xor ebx, ebx
test eax, eax
jge 0x4a1534
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 0x4a1610
mov eax, dword [ebp - 4]
call fcn.0049f730
jmp 0x4a1610
cmp al, 5
jne 0x4a1610
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22f], 1
jne 0x4a15b7
mov eax, dword [0x7b7c1c]
mov eax, dword [eax + 0x44]
call fcn.00482fc8
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x4a159b
adc ebx, 0
mov eax, dword [0x7b7c1c]
mov eax, dword [eax + 0x44]
call fcn.0048300c
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x4a15e7
adc eax, 0
jmp 0x4a15e7
mov eax, dword [0x7b7c20]
call fcn.004a2c94
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x4a15d0
adc ebx, 0
mov eax, dword [0x7b7c20]
call fcn.004a2c88
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x4a15e7
adc eax, 0
test ebx, ebx
jge 0x4a15ed
xor ebx, ebx
test eax, eax
jge 0x4a15f3
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 0x4a16df
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22b], 2
jne 0x4a166c
push 0
mov eax, dword [ebp - 4]
call fcn.0048a000
push eax
push 0x223
mov eax, dword [0x7b7c1c]
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.0048a000
push eax
call sub.user32.dll_ShowWindow
jmp 0x4a16bd
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x22b]
mov eax, dword [eax*4 + 0x7ad5a8]
push eax
mov eax, dword [ebp - 4]
call fcn.0048a000
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.0048a000
push eax
push 0x40835c
call sub.user32.dll_CallWindowProcA
mov eax, dword [ebp - 4]
call fcn.00483824
push 0
push 0
push 0x234
mov eax, dword [0x7b7c1c]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + 0x254]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4a1809
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x22b]
mov eax, dword [eax*4 + 0x7ad5a8]
push eax
mov eax, dword [ebp - 4]
call fcn.0048a000
push eax
call sub.user32.dll_ShowWindow
jmp 0x4a1809
xor eax, eax
push ebp
push 0x4a1728
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffaf
call fcn.004041a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a173f
mov eax, dword [0x7b7c20]
mov eax, dword [eax + 0x6c]
cmp eax, dword [ebp - 4]
jne 0x4a1756
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004a0480
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22f], 1
jne 0x4a176f
mov eax, dword [ebp - 4]
call fcn.0048749c
jmp 0x4a1809
mov eax, dword [ebp - 4]
test byte [eax + 0x2f4], 8
je 0x4a179a
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0048a000
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4a1809
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0048a000
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x4a17d0
mov eax, dword [ebp - 4]
call fcn.0048a000
push eax
call sub.user32.dll_IsIconic
test eax, eax
jne 0x4a17d0
mov eax, dword [ebp - 4]
call fcn.0048a000
call fcn.0049bc74
mov ebx, eax
test ebx, ebx
je 0x4a17f9
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0048a000
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x4a1809
push 0
mov eax, dword [ebp - 4]
call fcn.0048a000
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1828
mov eax, dword [ebp - 4]
and byte [eax + 0x2f4], 0xfb
ret