Function at 0x51a2d4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, 0x585f40
cmp dword [ebx], 0
je 0x51a305
mov eax, dword [ebx]
cmp dword [eax + 0x130], 0
je 0x51a305
mov eax, dword [ebx]
add eax, 0x130
call fcn.0040f0a8
cmp dword [ebp - 4], 0
jle 0x51a54c
cmp dword [ebx], 0
jne 0x51a333
mov ecx, dword [0x586b7c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x517550]
call fcn.0051d7b8
mov dword [ebx], eax
xor edx, edx
mov eax, dword [ebx]
call fcn.00554078
cmp dword [ebp + 8], 0
je 0x51a34b
mov eax, dword [ebp + 8]
call fcn.0044b9d0
mov edx, dword [ebx]
mov dword [edx + 0xbc], eax
jmp 0x51a355
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0xbc], edx
mov eax, dword [ebx]
mov byte [eax + 0x11d], 0
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x110], edx
mov eax, dword [ebx]
mov eax, dword [eax + 0x120]
test eax, eax
je 0x51a384
cmp edi, eax
je 0x51a384
mov eax, dword [ebx]
add eax, 0x120
call fcn.0040f0a8
mov eax, dword [ebx]
mov dword [eax + 0x120], edi
mov eax, dword [ebx]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x114], edx
mov eax, dword [esi]
mov edx, dword [ebx]
mov dword [edx + 0x130], eax
mov eax, dword [ebx]
mov dl, byte [ebp + 0xc]
mov byte [eax + 0x11c], dl
mov edx, 0xc
mov eax, dword [ebx]
call fcn.00554098
mov eax, dword [ebp - 4]
mov ecx, 0xc
cdq
idiv ecx
mov edx, dword [ebx]
mov dword [edx + 0x118], eax
lea edx, [ebp - 0xc]
mov eax, dword [ebx]
mov eax, dword [eax + 0x120]
call fcn.00533f5c
mov eax, dword [ebx]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xc4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 0xc8], edx
mov dl, byte [ebp + 0x10]
mov eax, dword [ebx]
add eax, 0xcc
call fcn.005347cc
push 0xffffffffffffffec
mov eax, dword [esi]
call fcn.0044b9d0
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [esi]
call fcn.0044b9d0
push eax
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebx]
add eax, 0xcc
push eax
push 0
mov eax, dword [esi]
call fcn.0044b9d0
mov edx, dword [ebx]
lea ecx, [edx + 0xc4]
mov edx, edi
call fcn.0051f414
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0xc0], edx
push 0x71f
push 0
push 0
push 0
push 0
push 0
mov eax, dword [esi]
call fcn.0044b9d0
push eax
call sub.user32.dll_SetWindowPos
push 4
mov eax, dword [esi]
call fcn.0044b9d0
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [esi]
call fcn.0044b9d0
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x51a494
or edi, 0xffffffff
jmp 0x51a4b5
cmp dword [ebp + 8], 0
je 0x51a4a6
mov eax, dword [ebp + 8]
test byte [eax + 0x2f4], 8
je 0x51a4ab
or edi, 0xffffffff
jmp 0x51a4b5
mov eax, dword [ebp + 8]
call fcn.0044b9d0
mov edi, eax
push 0x318
mov eax, dword [ebx]
mov eax, dword [eax + 0xc8]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc4]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
push eax
push edi
mov eax, dword [esi]
call fcn.0044b9d0
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [ebx]
add eax, 0x124
call fcn.0040f0a8
mov eax, dword [ebx]
add eax, 0xc4
call fcn.0052acd0
mov edx, dword [ebx]
mov dword [edx + 0x124], eax
mov eax, dword [ebx]
call fcn.0051d55c
jmp 0x51a52b
call sub.kernel32.dll_GetTickCount
mov edi, eax
mov edx, dword [ebx]
mov eax, dword [ebx]
call fcn.0051d84c
mov edx, 0xc
mov eax, edi
call fcn.00534780
mov eax, dword [ebx]
mov eax, dword [eax + 0x110]
mov edx, dword [ebx]
cmp eax, dword [edx + 0x118]
jle 0x51a50f
mov eax, dword [ebx]
cmp dword [eax + 0x130], 0
jne 0x51a54c
xor eax, eax
mov dword [esi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc