Function at 0x507b84
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
test eax, eax
jl 0x507b9e
cmp eax, dword [ebp - 0xc]
jle 0x507ba3
call fcn.00403c14
mov edx, dword [ebp - 8]
lea eax, [edx + eax*8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x507bbc
call fcn.00403c14
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.004ea0ec
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x507e4a
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004f97e8
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00533a40
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.0053392c
mov eax, 1
test eax, eax
jl 0x507c0d
cmp eax, dword [ebp - 0xc]
jle 0x507c12
call fcn.00403c14
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*8]
cmp eax, 0xa
ja case.0x507c21.0
jmp dword [eax*4 + 0x507c28]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.0053392c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004f97e8
mov eax, dword [0x5746bc]
cmp dword [eax], 0
je 0x507caa
mov eax, dword [0x5746bc]
mov eax, dword [eax]
call fcn.0045ff94
cmp eax, dword [ebp - 0x10]
jne 0x507caa
mov eax, dword [0x5746bc]
mov eax, dword [eax]
call fcn.00472920
mov eax, dword [0x5746bc]
mov eax, dword [eax]
call fcn.00403d4c
mov eax, dword [0x5746bc]
xor edx, edx
mov dword [eax], edx
jmp 0x507cf3
mov eax, 1
test eax, eax
jl 0x507cb8
cmp eax, dword [ebp - 0xc]
jle 0x507cbd
call fcn.00403c14
mov edx, dword [ebp - 8]
cmp dword [edx + eax*8 + 4], 0
jne 0x507ce4
cmp dword [edx + eax*8], 2
jne 0x507ce4
push 0
push 0xf060
push 0x112
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_PostMessageA
jmp 0x507cf3
push 0
push 0
push 0x12
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_PostMessageA
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00533a40
mov eax, dword [ebp - 4]
mov byte [eax + 0x37f], 1
jmp 0x507e3d
push 5
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_ShowWindow
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_ShowWindow
jmp 0x507e3d
mov eax, dword [0x57438c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.00560ac0
jmp 0x507e3d
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_ShowWindow
jmp 0x507e3d
push 5
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_ShowWindow
jmp 0x507e3d
push 6
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_ShowWindow
jmp 0x507e3d
push 3
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_ShowWindow
jmp 0x507e3d
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_SetWindowPos
jmp 0x507e3d
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_SetWindowPos
jmp 0x507e3d
mov eax, 3
test eax, eax
jl 0x507dc0
cmp eax, dword [ebp - 0xc]
jle 0x507dc5
call fcn.00403c14
mov edx, dword [ebp - 8]
lea eax, [edx + eax*8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x507dde
call fcn.00403c14
push eax
mov eax, 2
test eax, eax
jl 0x507ded
cmp eax, dword [ebp - 0xc]
jle 0x507df2
call fcn.00403c14
mov edx, dword [ebp - 8]
lea eax, [edx + eax*8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x507e0b
call fcn.00403c14
push eax
mov eax, 1
test eax, eax
jl 0x507e1a
cmp eax, dword [ebp - 0xc]
jle 0x507e1f
call fcn.00403c14
mov edx, dword [ebp - 8]
lea eax, [edx + eax*8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
test edx, edx
je 0x507e33
call fcn.00403c14
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_PostMessageA
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.0053392c
mov esp, ebp
pop ebp
ret 4