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

Disassembly:
sub esp, 0x124
push esi
mov esi, ecx
mov al, byte [esi + 0x221]
test al, al
jne 0x446f49
push edi
call fcn.00443820
mov eax, dword [esi + 0x234]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x234]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
push 1
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov dword [esp + 8], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, eax
mov al, byte [esi + 0x221]
test al, al
mov dword [esp + 0xc], edi
mov byte [esi + 0x415], 1
mov dword [esi + 0x3e0], edi
jne 0x446d97
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
call edi
test eax, eax
je 0x446d6b
jmp 0x446d40
mov al, byte [esi + 0x221]
test al, al
jne 0x446d6b
lea eax, [esp + 0x18]
push eax
call ebx
lea ecx, [esp + 0x18]
push ecx
call ebp
push 1
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
call edi
test eax, eax
jne 0x446d40
mov ecx, esi
call fcn.00446660
mov al, byte [esi + 0x221]
test al, al
jne 0x446d91
inc dword [esp + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov al, byte [esi + 0x221]
test al, al
je 0x446d24
mov edi, dword [esp + 0x14]
pop ebp
pop ebx
mov ecx, esi
call fcn.00446b20
mov ecx, esi
mov byte [esi + 0x415], 0
call fcn.00443180
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, edi
test eax, eax
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
jge 0x446dc6
fadd qword [0x4cba48]
fmul qword [0x4cba40]
sub esp, 8
lea ecx, [esp + 0x34]
fstp qword [esp]
push str.Seconds_________g_r_n
push ecx
call fcn.0049fa8d
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x10
lea edx, [esp + 0x2c]
push edx
call edi
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x30]
push str.Count___________d_r_n
push ecx
call fcn.0049fa8d
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
call edi
mov eax, dword [esi + 0x3e4]
push eax
lea ecx, [esp + 0x30]
push str.Sleep_Count_____d_r_n
push ecx
call fcn.0049fa8d
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
call edi
mov eax, dword [esi + 0x3ec]
push eax
lea ecx, [esp + 0x30]
push str.Update_Count____d_r_n
push ecx
call fcn.0049fa8d
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
call edi
mov eax, dword [esi + 0x3e8]
push eax
lea ecx, [esp + 0x30]
push str.Draw_Count______d_r_n
push ecx
call fcn.0049fa8d
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
call edi
mov eax, dword [esi + 0x41c]
push eax
lea ecx, [esp + 0x30]
push str.Draw_Time_______d_r_n
push ecx
call fcn.0049fa8d
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
call edi
mov eax, dword [esi + 0x434]
push eax
lea ecx, [esp + 0x30]
push str.Screen_Blt______d_r_n
push ecx
call fcn.0049fa8d
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
call edi
mov eax, dword [esi + 0x41c]
mov ecx, dword [esi + 0x434]
add ecx, eax
test ecx, ecx
jle 0x446eea
mov eax, dword [esi + 0x3e8]
imul eax, eax, 0x3e8
cdq
idiv ecx
lea edx, [esp + 0x2c]
push eax
push str.Avg_FPS_________d_r_n
push edx
call fcn.0049fa8d
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call edi
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov al, byte [esi + 0x208]
test al, al
pop edi
jne 0x446f49
mov al, byte [esi + 0x3a0]
test al, al
je 0x446f13
mov ecx, dword [esi + 4]
call fcn.0045c980
test al, al
je 0x446f26
call fcn.004a1793
and eax, reloc.DSOUND.dll_DirectSoundCreate
jns 0x446f24
dec eax
or eax, 0xfffffffe
inc eax
je 0x446f41
mov al, byte [esi + 0x3a0]
test al, al
je 0x446f49
call fcn.004a1793
cdq
mov ecx, 0xa
idiv ecx
test edx, edx
jne 0x446f49
mov ecx, dword [esi + 4]
call fcn.0045c9c0
pop esi
add esp, 0x124
ret