Function at 0x468860
Capabilities:
Hide graphical window
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x532ae0]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov al, byte [esi + 0x2f1]
test al, al
jne 0x468b4e
push edi
call fcn.00464f20
mov ecx, esi
call fcn.00464e10
mov eax, dword [esi + 0x2fc]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x2fc]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov dword [ebp - 8], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, eax
mov al, byte [esi + 0x2f1]
test al, al
mov dword [ebp - 0xc], edi
mov byte [esi + 0x4db], 1
mov dword [esi + 0x48c], edi
mov dword [esi + 0x490], edi
mov dword [esi + 0x3f8], edi
jne 0x46896e
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
lea esp, [esp]
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x46893e
mov al, byte [esi + 0x2f1]
test al, al
jne 0x46893e
lea eax, [ebp - 0x28]
push eax
call ebx
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x28]
push edx
call edi
test eax, eax
jne 0x468912
mov ecx, esi
call fcn.00464a10
mov ecx, esi
call fcn.00467cf0
mov al, byte [esi + 0x2f1]
test al, al
jne 0x46896a
inc dword [ebp - 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov al, byte [esi + 0x2f1]
test al, al
je 0x468900
mov edi, dword [ebp - 0xc]
pop ebx
mov ecx, esi
call fcn.004685e0
mov ecx, esi
mov byte [esi + 0x4db], 0
call fcn.00464400
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, edi
test eax, eax
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
jge 0x46899b
fadd qword [0x504700]
fmul qword [0x5046f8]
sub esp, 8
lea ecx, [ebp - 0x128]
fstp qword [esp]
push str.Seconds_________g_r_n
push ecx
call fcn.004e1c9e
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x10
lea edx, [ebp - 0x128]
push edx
call edi
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x128]
push str.Count___________d_r_n
push ecx
call fcn.004e1c9e
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
call edi
mov eax, dword [esi + 0x494]
push eax
lea ecx, [ebp - 0x128]
push str.Sleep_Count_____d_r_n
push ecx
call fcn.004e1c9e
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
call edi
mov eax, dword [esi + 0x49c]
push eax
lea ecx, [ebp - 0x128]
push str.Update_Count____d_r_n
push ecx
call fcn.004e1c9e
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
call edi
mov eax, dword [esi + 0x498]
push eax
lea ecx, [ebp - 0x128]
push str.Draw_Count______d_r_n
push ecx
call fcn.004e1c9e
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
call edi
mov eax, dword [esi + 0x4e0]
push eax
lea ecx, [ebp - 0x128]
push str.Draw_Time_______d_r_n
push ecx
call fcn.004e1c9e
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
call edi
mov eax, dword [esi + 0x4fc]
push eax
lea ecx, [ebp - 0x128]
push str.Screen_Blt______d_r_n
push ecx
call fcn.004e1c9e
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
call edi
mov eax, dword [esi + 0x4e0]
mov ecx, dword [esi + 0x4fc]
add ecx, eax
test ecx, ecx
jle 0x468ade
mov eax, dword [esi + 0x498]
imul eax, eax, 0x3e8
cdq
idiv ecx
lea edx, [ebp - 0x128]
push eax
push str.Avg_FPS_________d_r_n
push edx
call fcn.004e1c9e
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call edi
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov al, byte [esi + 0x2d9]
test al, al
pop edi
jne 0x468b47
mov al, byte [esi + 0x458]
test al, al
je 0x468b0e
mov ecx, dword [esi + 0xd0]
push 1
push 1
call fcn.00482780
test al, al
je 0x468b21
call fcn.00481ba0
and eax, 0x80000001
jns 0x468b1f
dec eax
or eax, 0xfffffffe
inc eax
je 0x468b3c
mov al, byte [esi + 0x458]
test al, al
je 0x468b47
call fcn.00481ba0
cdq
mov ecx, 0xa
idiv ecx
test edx, edx
jne 0x468b47
mov ecx, dword [esi + 0xd0]
call fcn.004827e0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x44]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004e19df
mov esp, ebp
pop ebp
ret