Function at 0x510c14
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
mov ebx, 0x59d234
cmp dword [ebx], 0
je 0x510c49
mov eax, dword [ebx]
cmp dword [eax + 0xc4], 0
je 0x510c49
mov eax, dword [ebx]
add eax, 0xc4
call fcn.0040f078
mov eax, esi
mov ecx, 0xc
cdq
idiv ecx
test eax, eax
jne 0x510c6c
lea eax, [ebp - 4]
call fcn.0040f078
lea eax, [ebp - 8]
call fcn.0040f078
jmp 0x510f02
cmp dword [ebx], 0
jne 0x510c87
mov ecx, dword [0x59da60]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x50eb94]
call fcn.00516188
mov dword [ebx], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 0xbc], edx
mov eax, dword [ebx]
mov byte [eax + 0x12d], 0
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x120], edx
mov eax, dword [ebx]
mov eax, dword [eax + 0x130]
test eax, eax
je 0x510cc2
cmp eax, dword [ebp - 8]
je 0x510cc2
mov eax, dword [ebx]
add eax, 0x130
call fcn.0040f078
mov eax, dword [ebx]
mov edx, dword [ebp - 8]
mov dword [eax + 0x130], edx
mov eax, dword [ebx]
mov dword [eax + 0x124], edi
mov eax, dword [ebx]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc4], edx
mov eax, dword [ebx]
mov dl, byte [ebp + 0xc]
mov byte [eax + 0x12c], dl
mov edx, 0xc
mov eax, dword [ebx]
call fcn.004f0f80
mov eax, esi
mov ecx, 0xc
cdq
idiv ecx
mov edx, dword [ebx]
mov dword [edx + 0x128], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebx]
mov eax, dword [eax + 0x130]
call fcn.0051731c
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0xc8], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xcc], edx
lea ecx, [ebp - 0x10]
xor edx, edx
xor eax, eax
call fcn.00517368
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0xd0], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xd4], edx
mov edx, edi
mov eax, dword [ebx]
add eax, 0xd8
call fcn.00517a80
push 0
call sub.user32.dll_GetDC
mov edx, dword [ebx]
mov dword [edx + 0xc0], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 4]
call fcn.0044d9ac
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 4]
call fcn.0044d9ac
push eax
call sub.user32.dll_SetWindowLongA
push 2
mov eax, dword [ebx]
add eax, 0xd8
push eax
push 0x1fffffff
mov eax, dword [ebx]
add eax, 0xd0
push eax
mov eax, dword [ebp - 8]
call fcn.00429244
call fcn.00424a50
push eax
mov eax, dword [ebx]
add eax, 0xc8
push eax
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0xc0]
push eax
mov eax, dword [ebp - 4]
call fcn.0044d9ac
push eax
call dword [0x59eed8]
push 0x71f
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0044d9ac
push eax
call sub.user32.dll_SetWindowPos
push 4
mov eax, dword [ebp - 4]
call fcn.0044d9ac
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [ebp - 4]
call fcn.0044d9ac
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x510e22
or esi, 0xffffffff
jmp 0x510e2c
mov eax, dword [ebp - 4]
call fcn.0044d9ac
mov esi, eax
push 0x318
mov eax, dword [ebx]
mov eax, dword [eax + 0xcc]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
push esi
mov eax, dword [ebp - 4]
call fcn.0044d9ac
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [ebx]
add eax, 0x134
call fcn.0040f078
mov eax, dword [ebx]
add eax, 0xc8
call fcn.004ee618
mov edx, dword [ebx]
mov dword [edx + 0x134], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc0]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx]
call fcn.00515f68
mov eax, dword [0x59da60]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
jne 0x510ef0
mov eax, dword [ebx]
push eax
push fcn.0051621c
mov eax, dword [ebx]
call fcn.004f0fa8
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x120], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
call fcn.0051621c
mov dl, 1
mov eax, dword [ebx]
call fcn.004f0f70
jmp 0x510f02
call sub.kernel32.dll_GetTickCount
mov esi, eax
mov edx, dword [ebx]
mov eax, dword [ebx]
call fcn.0051621c
mov edx, 0xc
mov eax, esi
call fcn.00517a34
mov eax, dword [ebx]
mov eax, dword [eax + 0x120]
mov edx, dword [ebx]
cmp eax, dword [edx + 0x128]
jle 0x510ed4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc