Function at 0x5084cc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x280], 0
je 0x5088f7
mov cl, 1
mov dl, 1
mov eax, dword [0x508468]
call fcn.0041faf8
mov edx, dword [ebp - 4]
mov dword [edx + 0x78], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x25c]
or dword [eax + 0x6c], 0x1000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
call fcn.0044b424
xor ecx, ecx
mov edx, 0x4d
call fcn.004fbb74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x10], eax
mov dl, 5
mov eax, dword [ebp - 0x10]
call fcn.0041fcf8
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x4c], bl
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xf], 1
mov dl, 1
mov eax, dword [0x42ceb4]
call fcn.0042d064
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x80], ebx
mov eax, ebx
call fcn.0042d058
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x25c]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2bc]
test eax, eax
je 0x50872d
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x68], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2bc]
mov byte [eax + 0x24], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
call fcn.0044b424
xor ecx, ecx
xor edx, edx
call fcn.00504c8c
mov dl, 1
mov eax, dword [0x422454]
call fcn.00428418
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x50], ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x25c]
mov edx, dword [eax + 0x4c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
call fcn.0044b424
push eax
call sub.user32.dll_GetDC
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x508726
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00510aec
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 4]
call fcn.00510b84
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x44], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
call fcn.0044464c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
call fcn.00444608
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x50]
call fcn.004289e8
call fcn.0042451c
push eax
call sub.gdi32.dll_BitBlt
push 0x1fffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
call fcn.0044464c
mov edx, dword [ebp - 0x10]
add eax, dword [edx + 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
call fcn.00444608
mov ecx, eax
mov eax, dword [ebp - 0x10]
add ecx, dword [eax + 0x40]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
call fcn.00406fc8
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x50]
mov cl, 0xff
call fcn.004e3b38
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 0x10]
add eax, 0x40
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
call fcn.0044b424
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x50]
mov ecx, 0xff
call fcn.004fc910
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x508756
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
call fcn.0044b424
push eax
call sub.user32.dll_ReleaseDC
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
call fcn.0044b424
xor edx, edx
call fcn.00504a20
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], ebx
mov eax, dword [ebx + 0x2f8]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x50], eax
push 8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
call fcn.0044b424
push eax
call sub.user32.dll_ShowWindow
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
call fcn.0044b424
push eax
call sub.user32.dll_SetWindowRgn
push 0xffffffffffffffec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
call fcn.0044b424
push eax
call sub.user32.dll_GetWindowLongA
test eax, 0x80000
jne 0x5087cd
push 0xffffffffffffffec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
call fcn.0044b424
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
call fcn.0044b424
push eax
call sub.user32.dll_SetWindowLongA
push 2
push 0
push 0x1fffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28c]
call fcn.0044b424
push eax
call dword [0x54eed4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x48]
imul dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x6c]
cdq
idiv ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x60], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x4c]
imul dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x6c]
cdq
idiv ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], eax
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x60]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
sub edx, dword [eax + 0x48]
sar edx, 1
jns 0x508837
adc edx, 0
mov eax, dword [eax + 0x40]
sub eax, edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x58], eax
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x64]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
sub edx, dword [eax + 0x4c]
sar edx, 1
jns 0x508858
adc edx, 0
mov eax, dword [eax + 0x44]
sub eax, edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x54]
test eax, eax
je 0x508872
call fcn.00403d0c
mov dl, 1
mov eax, dword [0x422454]
call fcn.00428418
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x54], ebx
mov eax, ebx
mov dl, 7
call fcn.004299f8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x54]
mov byte [eax + 0x30], 1
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x68]
mov edx, dword [edx + 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x68]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x8c], edx
mov dword [eax + 0x88], 0x5088fc
mov eax, dword [ebp - 0x10]
call fcn.0041fe8c
pop ebx
mov esp, ebp
pop ebp
ret