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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x52f2b0]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov al, byte [esi + 0x2e1]
test al, al
jne 0x4838fa
push edi
call fcn.004806a0
mov ecx, esi
call fcn.00480590
mov eax, dword [esi + 0x2ec]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x2ec]
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 + 0x2e1]
test al, al
mov dword [ebp - 0xc], edi
mov byte [esi + 0x4ab], 1
mov dword [esi + 0x45c], edi
jne 0x48371e
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x4836ee
mov al, byte [esi + 0x2e1]
test al, al
jne 0x4836ee
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 0x4836c2
mov ecx, esi
call fcn.00480190
mov ecx, esi
call fcn.00482b80
mov al, byte [esi + 0x2e1]
test al, al
jne 0x48371a
inc dword [ebp - 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov al, byte [esi + 0x2e1]
test al, al
je 0x4836b0
mov edi, dword [ebp - 0xc]
pop ebx
mov ecx, esi
call fcn.00483410
mov ecx, esi
mov byte [esi + 0x4ab], 0
call fcn.0047fd80
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, edi
test eax, eax
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
jge 0x48374b
fadd qword [0x503530]
fmul qword [0x503bd8]
sub esp, 8
lea ecx, [ebp - 0x128]
fstp qword [esp]
push str.Seconds_________g_r_n
push ecx
call fcn.004d911d
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.004d911d
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
call edi
mov eax, dword [esi + 0x460]
push eax
lea ecx, [ebp - 0x128]
push str.Sleep_Count_____d_r_n
push ecx
call fcn.004d911d
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
call edi
mov eax, dword [esi + 0x468]
push eax
lea ecx, [ebp - 0x128]
push str.Update_Count____d_r_n
push ecx
call fcn.004d911d
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
call edi
mov eax, dword [esi + 0x464]
push eax
lea ecx, [ebp - 0x128]
push str.Draw_Count______d_r_n
push ecx
call fcn.004d911d
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
call edi
mov eax, dword [esi + 0x4b0]
push eax
lea ecx, [ebp - 0x128]
push str.Draw_Time_______d_r_n
push ecx
call fcn.004d911d
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
call edi
mov eax, dword [esi + 0x4cc]
push eax
lea ecx, [ebp - 0x128]
push str.Screen_Blt______d_r_n
push ecx
call fcn.004d911d
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
call edi
mov eax, dword [esi + 0x4b0]
mov ecx, dword [esi + 0x4cc]
add ecx, eax
test ecx, ecx
jle 0x48388e
mov eax, dword [esi + 0x464]
imul eax, eax, 0x3e8
cdq
idiv ecx
lea edx, [ebp - 0x128]
push eax
push str.Avg_FPS_________d_r_n
push edx
call fcn.004d911d
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call edi
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov al, byte [esi + 0x2c9]
test al, al
pop edi
jne 0x4838f3
mov al, byte [esi + 0x42c]
test al, al
je 0x4838ba
mov ecx, dword [esi + 0xc0]
call fcn.004448d0
test al, al
je 0x4838cd
call fcn.00443610
and eax, 0x80000001
jns 0x4838cb
dec eax
or eax, 0xfffffffe
inc eax
je 0x4838e8
mov al, byte [esi + 0x42c]
test al, al
je 0x4838f3
call fcn.00443610
cdq
mov ecx, 0xa
idiv ecx
test edx, edx
jne 0x4838f3
mov ecx, dword [esi + 0xc0]
call fcn.00444910
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x40]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004d9f7e
mov esp, ebp
pop ebp
ret