Function at 0x4687ec
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 0x468e4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x468841
mov eax, dword [ebp - 4]
test byte [eax + 0x358], 4
je 0x468841
lea edx, [ebp - 8]
mov eax, dword [0x5004e8]
call fcn.00407134
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x419d04]
call fcn.0040dac4
call fcn.0040489c
mov eax, dword [0x505c9c]
call fcn.0046dbe8
mov eax, dword [ebp - 4]
or byte [eax + 0x358], 4
xor edx, edx
push ebp
push 0x468e30
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x468dea
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1da], 0
je 0x468cde
xor eax, eax
push ebp
push 0x4688a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffab
call fcn.0040423c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4688bb
mov eax, dword [ebp - 4]
cmp byte [eax + 0x278], 4
je 0x4688e7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x278], 6
jne 0x4689ca
mov eax, dword [ebp - 4]
cmp byte [eax + 0x277], 1
jne 0x4689ca
mov eax, dword [ebp - 4]
cmp byte [eax + 0x277], 1
jne 0x46892d
mov eax, dword [0x505c9c]
mov eax, dword [eax + 0x44]
call fcn.0044ddfc
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x46890f
adc ebx, 0
mov eax, dword [0x505c9c]
mov eax, dword [eax + 0x44]
call fcn.0044de40
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x46895f
adc esi, 0
jmp 0x46895f
mov eax, dword [0x505ca0]
call fcn.0046a348
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x468946
adc ebx, 0
mov eax, dword [0x505ca0]
call fcn.0046a33c
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x46895f
adc esi, 0
mov eax, dword [0x505ca0]
call fcn.0046a360
cmp ebx, eax
jge 0x468979
mov eax, dword [0x505ca0]
call fcn.0046a360
mov ebx, eax
mov eax, dword [0x505ca0]
call fcn.0046a354
cmp esi, eax
jge 0x468993
mov eax, dword [0x505ca0]
call fcn.0046a354
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 0x468bea
mov eax, dword [ebp - 4]
call fcn.004661b0
jmp 0x468bea
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x278]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x468aef
mov eax, dword [0x505c9c]
mov esi, dword [eax + 0x44]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x278], 7
jne 0x468a11
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x460370]
call fcn.004041cc
test al, al
je 0x468a11
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x468a52
cmp esi, dword [ebp - 4]
je 0x468a52
mov eax, esi
call fcn.004643c0
mov ebx, eax
mov eax, dword [esi + 0x48]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x48]
sar eax, 1
jns 0x468a33
adc eax, 0
add ebx, eax
mov eax, esi
call fcn.004643e0
mov edx, dword [esi + 0x4c]
mov ecx, dword [ebp - 4]
sub edx, dword [ecx + 0x4c]
sar edx, 1
jns 0x468a4c
adc edx, 0
add eax, edx
mov esi, eax
jmp 0x468a84
mov eax, dword [0x505ca0]
call fcn.0046a348
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x468a6b
adc ebx, 0
mov eax, dword [0x505ca0]
call fcn.0046a33c
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x468a84
adc esi, 0
mov eax, dword [0x505ca0]
call fcn.0046a360
cmp ebx, eax
jge 0x468a9e
mov eax, dword [0x505ca0]
call fcn.0046a360
mov ebx, eax
mov eax, dword [0x505ca0]
call fcn.0046a354
cmp esi, eax
jge 0x468ab8
mov eax, dword [0x505ca0]
call fcn.0046a354
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 0x468bea
mov eax, dword [ebp - 4]
call fcn.004661b0
jmp 0x468bea
cmp al, 5
jne 0x468bea
mov eax, dword [ebp - 4]
cmp byte [eax + 0x277], 1
jne 0x468b3d
mov eax, dword [0x505c9c]
mov eax, dword [eax + 0x44]
call fcn.0044ddfc
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x468b1f
adc ebx, 0
mov eax, dword [0x505c9c]
mov eax, dword [eax + 0x44]
call fcn.0044de40
mov esi, eax
mov eax, dword [ebp - 4]
sub esi, dword [eax + 0x4c]
sar esi, 1
jns 0x468b99
adc esi, 0
jmp 0x468b99
mov eax, dword [0x505ca0]
call fcn.0046a378
mov ebx, eax
sar ebx, 1
jns 0x468b50
adc ebx, 0
mov eax, dword [0x505ca0]
call fcn.0046a360
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
sar eax, 1
jns 0x468b69
adc eax, 0
sub ebx, eax
mov eax, dword [0x505ca0]
call fcn.0046a36c
mov esi, eax
sar esi, 1
jns 0x468b7e
adc esi, 0
mov eax, dword [0x505ca0]
call fcn.0046a354
add esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
sar eax, 1
jns 0x468b97
adc eax, 0
sub esi, eax
mov eax, dword [0x505ca0]
call fcn.0046a360
cmp ebx, eax
jge 0x468bb3
mov eax, dword [0x505ca0]
call fcn.0046a360
mov ebx, eax
mov eax, dword [0x505ca0]
call fcn.0046a354
cmp esi, eax
jge 0x468bcd
mov eax, dword [0x505ca0]
call fcn.0046a354
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 + 0x278], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x277], 1
jne 0x468cb9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x273], 2
jne 0x468c46
push 0
mov eax, dword [ebp - 4]
call fcn.00456584
push eax
push 0x223
mov eax, dword [0x505c9c]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + 0x29c]
push eax
call sub.user32.dll_SendMessageA
push 3
mov eax, dword [ebp - 4]
call fcn.00456584
push eax
call sub.user32.dll_ShowWindow
jmp 0x468c97
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x273]
mov eax, dword [eax*4 + 0x4fcaf0]
push eax
mov eax, dword [ebp - 4]
call fcn.00456584
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.00456584
push eax
push 0x407bb4
call sub.user32.dll_CallWindowProcA
mov eax, dword [ebp - 4]
call fcn.0044e718
push 0
push 0
push 0x234
mov eax, dword [0x505c9c]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + 0x29c]
push eax
call sub.user32.dll_SendMessageA
jmp 0x468e18
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x273]
mov eax, dword [eax*4 + 0x4fcaf0]
push eax
mov eax, dword [ebp - 4]
call fcn.00456584
push eax
call sub.user32.dll_ShowWindow
jmp 0x468e18
xor eax, eax
push ebp
push 0x468d02
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffac
call fcn.0040423c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x468d19
mov eax, dword [0x505ca0]
mov eax, dword [eax + 0x6c]
cmp eax, dword [ebp - 4]
jne 0x468d30
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00467524
mov eax, dword [ebp - 4]
cmp byte [eax + 0x277], 1
jne 0x468d4c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xb0]
jmp 0x468e18
mov eax, dword [ebp - 4]
test byte [eax + 0x358], 8
je 0x468d7a
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00456584
push eax
call sub.user32.dll_SetWindowPos
jmp 0x468e18
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00456584
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x468daf
mov eax, dword [ebp - 4]
call fcn.00456584
call fcn.00461b60
test eax, eax
jne 0x468daf
mov eax, dword [ebp - 4]
call fcn.00456584
call fcn.00461e88
mov ebx, eax
test ebx, ebx
je 0x468dd8
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00456584
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x468e18
push 0
mov eax, dword [ebp - 4]
call fcn.00456584
push eax
call sub.user32.dll_ShowWindow
jmp 0x468e18
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
je 0x468e18
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
je 0x468e18
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1da], 0
je 0x468e18
push 1
mov eax, dword [ebp - 4]
call fcn.00456584
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468e37
mov eax, dword [ebp - 4]
and byte [eax + 0x358], 0xfb
ret