Function at 0x50d118
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 0x50d132
cmp eax, dword [ebp - 0xc]
jle 0x50d137
call fcn.00403a58
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 0x50d150
call fcn.00403a58
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.004ee5cc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x50d414
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004fdbe8
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.005464d8
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.005463e4
mov eax, 1
test eax, eax
jl 0x50d1a3
cmp eax, dword [ebp - 0xc]
jle 0x50d1a8
call fcn.00403a58
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*8]
cmp eax, 0xb
ja case.0x50d1b7.0
jmp dword [eax*4 + 0x50d1be]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.005463e4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004fdbe8
mov eax, dword [0x58961c]
cmp dword [eax], 0
je 0x50d244
mov eax, dword [0x58961c]
mov eax, dword [eax]
call fcn.0045e0f0
cmp eax, dword [ebp - 0x10]
jne 0x50d244
mov eax, dword [0x58961c]
mov eax, dword [eax]
call fcn.00470854
mov eax, dword [0x58961c]
mov eax, dword [eax]
call fcn.00403b90
mov eax, dword [0x58961c]
xor edx, edx
mov dword [eax], edx
jmp 0x50d28d
mov eax, 1
test eax, eax
jl 0x50d252
cmp eax, dword [ebp - 0xc]
jle 0x50d257
call fcn.00403a58
mov edx, dword [ebp - 8]
cmp dword [edx + eax*8 + 4], 0
jne 0x50d27e
cmp dword [edx + eax*8], 2
jne 0x50d27e
push 0
push 0xf060
push 0x112
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_PostMessageA
jmp 0x50d28d
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.005464d8
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x21b0]
jne 0x50d407
mov eax, dword [ebp - 4]
mov byte [eax + 0x37d], 1
jmp 0x50d407
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 0x50d407
mov eax, dword [0x5892f4]
mov eax, dword [eax]
mov cl, 1
mov edx, dword [ebp - 0x10]
call fcn.005805a8
jmp 0x50d407
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_ShowWindow
jmp 0x50d407
push 5
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_ShowWindow
jmp 0x50d407
push 6
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_ShowWindow
jmp 0x50d407
push 3
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_ShowWindow
jmp 0x50d407
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 0x50d407
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 0x50d407
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_SetWindowPos
jmp 0x50d407
mov eax, 3
test eax, eax
jl 0x50d38a
cmp eax, dword [ebp - 0xc]
jle 0x50d38f
call fcn.00403a58
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 0x50d3a8
call fcn.00403a58
push eax
mov eax, 2
test eax, eax
jl 0x50d3b7
cmp eax, dword [ebp - 0xc]
jle 0x50d3bc
call fcn.00403a58
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 0x50d3d5
call fcn.00403a58
push eax
mov eax, 1
test eax, eax
jl 0x50d3e4
cmp eax, dword [ebp - 0xc]
jle 0x50d3e9
call fcn.00403a58
mov edx, dword [ebp - 8]
lea eax, [edx + eax*8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
test edx, edx
je 0x50d3fd
call fcn.00403a58
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_PostMessageA
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.005463e4
mov esp, ebp
pop ebp
ret 4