Function at 0x505cfc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x1c], eax
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b0cd4]
call fcn.0045fffc
mov dword [ebp - 0x6c], eax
mov byte [0x59e3ec], 1
mov eax, dword [ebp - 0x4c]
call fcn.0053ee7c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
call fcn.0042c83c
call fcn.00427d20
push 0
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x34]
call fcn.0054943c
cmp dword [ebp - 0x34], 0
je 0x506172
push 0x1fffffff
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x34]
call fcn.00555c24
lea edx, [ebp - 0xa0]
mov cl, 0xff
mov eax, dword [ebp - 0x34]
call fcn.004b5bf0
mov eax, dword [ebp - 0x34]
call fcn.0042c83c
call fcn.00428100
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x34]
call fcn.00555c8c
movzx eax, bx
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x80]
xor edx, edx
xor eax, eax
call fcn.00555cd8
mov eax, dword [ebp - 0x4c]
xor edx, edx
mov dl, byte [eax + 0x2e1]
mov eax, dword [ebp - 0x4c]
mov al, byte [eax + 0x2e0]
mov ecx, 0xff
call fcn.005559e0
mov byte [ebp - 9], al
cmp dword [ebp - 0x10], 0
jle 0x505de8
lea eax, [ebp - 0x64]
xor edx, edx
call fcn.0055639c
jmp 0x505df3
lea eax, [ebp - 0x64]
mov dl, byte [ebp - 9]
call fcn.0055639c
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x4c]
call fcn.0044dda8
push eax
call sub.user32.dll_GetWindowRect
or esi, 0xffffffff
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.0044dda8
push eax
call sub.user32.dll_GetWindowLongA
test eax, 0x80000
jne 0x505e48
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.0044dda8
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x6c]
call fcn.0044dda8
push eax
call sub.user32.dll_SetWindowLongA
push 0
call sub.user32.dll_GetDC
mov ebx, eax
push 2
lea eax, [ebp - 0x64]
push eax
push 0x1fffffff
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x34]
call fcn.0042c83c
call fcn.0042822c
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x6c]
call fcn.0044dda8
push eax
call dword [0x5a15cc]
push ebx
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x6c]
mov ebx, dword [eax]
call dword [ebx + 0x84]
mov dword [ebp - 0x70], 0x718
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x40]
push eax
push esi
mov eax, dword [ebp - 0x6c]
call fcn.0044dda8
push eax
call sub.user32.dll_SetWindowPos
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
call fcn.00505770
test eax, eax
jl 0x505f05
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x38]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x34]
call fcn.00506cd0
push 4
mov eax, dword [ebp - 0x6c]
call fcn.0044dda8
push eax
call sub.user32.dll_ShowWindow
lea eax, [ebp - 0x78]
call fcn.0053ee54
mov dword [ebp - 0x68], eax
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x68]
call fcn.00555c24
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x68]
call fcn.0042c83c
call fcn.0042822c
xor ecx, ecx
pop edx
call fcn.005399f4
push 3
mov eax, dword [ebp - 0x68]
call fcn.0042c83c
call fcn.0042822c
push eax
call sub.gdi32.dll_SetStretchBltMode
cmp dword [ebp - 0x10], 0
jle 0x506053
push ebp
call fcn.005058d0
pop ecx
xor esi, esi
cmp esi, dword [ebp - 0x10]
jg 0x50604d
push ebp
call fcn.00505af4
pop ecx
call sub.kernel32.dll_GetTickCount
mov edi, eax
push 0
call sub.user32.dll_GetDC
mov ebx, eax
push 2
lea eax, [ebp - 0x64]
push eax
push 0x1fffffff
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x68]
call fcn.0042c83c
call fcn.0042822c
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x6c]
call fcn.0044dda8
push eax
call dword [0x5a15cc]
fld qword [ebp - 0x30]
fsub qword [ebp - 0x28]
call fcn.00403028
push eax
lea eax, [ebp - 0xa0]
push eax
fld qword [ebp - 0x28]
call fcn.00403028
mov edx, dword [ebp - 0x4c]
add eax, dword [edx + 0x44]
push eax
fld qword [ebp - 0x48]
call fcn.00403028
mov edx, dword [ebp - 0x4c]
add eax, dword [edx + 0x40]
push eax
fld qword [ebp - 0x58]
fsub qword [ebp - 0x48]
call fcn.00403028
mov ecx, eax
pop eax
pop edx
call fcn.004b0e48
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x4c]
call fcn.0044dda8
mov cl, byte [ebp - 0x62]
pop edx
call fcn.00505cc4
push ebx
push 0
call sub.user32.dll_ReleaseDC
push ebp
call fcn.00505bc4
pop ecx
inc esi
cmp dword [ebp - 0x10], 0
jle 0x506044
mov edx, 0xc
mov eax, edi
call fcn.0055635c
cmp esi, dword [ebp - 0x10]
jle 0x505f7b
mov al, byte [ebp - 9]
mov byte [ebp - 0x62], al
mov eax, dword [ebp - 0x70]
or eax, 4
push eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x90]
push eax
push 0
mov eax, dword [ebp - 0x6c]
call fcn.0044dda8
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov ebx, eax
push 2
lea eax, [ebp - 0x64]
push eax
push 0x1fffffff
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x34]
call fcn.0042c83c
call fcn.0042822c
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x6c]
call fcn.0044dda8
push eax
call dword [0x5a15cc]
push ebx
push 0
call sub.user32.dll_ReleaseDC
lea eax, [ebp - 0x68]
call fcn.0040f048
mov eax, dword [ebp - 0x4c]
call fcn.0044dda8
mov cl, byte [ebp + 8]
mov dl, 1
call fcn.0054b0a4
mov dl, 1
mov eax, dword [ebp - 0x4c]
call fcn.00460ca4
push 0x61b
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x6c]
call fcn.0044dda8
push eax
mov eax, dword [ebp - 0x4c]
call fcn.0044dda8
push eax
call sub.user32.dll_SetWindowPos
mov byte [0x59e3ec], 0
push 0x185
push 0
push 0
mov eax, dword [ebp - 0x4c]
call fcn.0044dda8
push eax
call sub.user32.dll_RedrawWindow
test eax, eax
je 0x506113
lea eax, [ebp - 0x34]
call fcn.0040f048
call fcn.0056fa40
test al, al
je 0x506146
push 0x18
call sub.kernel32.dll_Sleep_1
push 0x61b
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x4c]
call fcn.0044dda8
push eax
mov eax, dword [ebp - 0x6c]
call fcn.0044dda8
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x6c]
call fcn.0040f048
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4