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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push esi
mov esi, ecx
mov al, byte [esi + 0x221]
test al, al
jne 0x43b756
push edi
call fcn.004379a0
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 [ebp - 4], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, eax
mov al, byte [esi + 0x221]
test al, al
mov dword [ebp - 8], edi
mov byte [esi + 0x415], 1
mov dword [esi + 0x3e0], edi
jne 0x43b587
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
lea ebx, [ebx]
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call edi
test eax, eax
je 0x43b55e
mov al, byte [esi + 0x221]
test al, al
jne 0x43b55e
lea eax, [ebp - 0x24]
push eax
call ebx
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call edi
test eax, eax
jne 0x43b532
mov ecx, esi
call fcn.0043ae80
mov al, byte [esi + 0x221]
test al, al
jne 0x43b583
inc dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov al, byte [esi + 0x221]
test al, al
je 0x43b520
mov edi, dword [ebp - 8]
pop ebx
mov ecx, esi
call fcn.0043b310
mov ecx, esi
mov byte [esi + 0x415], 0
call fcn.00437330
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, edi
test eax, eax
mov dword [ebp - 8], eax
fild dword [ebp - 8]
jge 0x43b5b4
fadd qword [0x4b3368]
fmul qword [0x4b3360]
sub esp, 8
lea ecx, [ebp - 0x124]
fstp qword [esp]
push str.Seconds_________g_r_n
push ecx
call fcn.0047ea7d
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x10
lea edx, [ebp - 0x124]
push edx
call edi
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x124]
push str.Count___________d_r_n
push ecx
call fcn.0047ea7d
add esp, 0xc
lea edx, [ebp - 0x124]
push edx
call edi
mov eax, dword [esi + 0x3e4]
push eax
lea ecx, [ebp - 0x124]
push str.Sleep_Count_____d_r_n
push ecx
call fcn.0047ea7d
add esp, 0xc
lea edx, [ebp - 0x124]
push edx
call edi
mov eax, dword [esi + 0x3ec]
push eax
lea ecx, [ebp - 0x124]
push str.Update_Count____d_r_n
push ecx
call fcn.0047ea7d
add esp, 0xc
lea edx, [ebp - 0x124]
push edx
call edi
mov eax, dword [esi + 0x3e8]
push eax
lea ecx, [ebp - 0x124]
push str.Draw_Count______d_r_n
push ecx
call fcn.0047ea7d
add esp, 0xc
lea edx, [ebp - 0x124]
push edx
call edi
mov eax, dword [esi + 0x41c]
push eax
lea ecx, [ebp - 0x124]
push str.Draw_Time_______d_r_n
push ecx
call fcn.0047ea7d
add esp, 0xc
lea edx, [ebp - 0x124]
push edx
call edi
mov eax, dword [esi + 0x434]
push eax
lea ecx, [ebp - 0x124]
push str.Screen_Blt______d_r_n
push ecx
call fcn.0047ea7d
add esp, 0xc
lea edx, [ebp - 0x124]
push edx
call edi
mov eax, dword [esi + 0x41c]
mov ecx, dword [esi + 0x434]
add ecx, eax
test ecx, ecx
jle 0x43b6f7
mov eax, dword [esi + 0x3e8]
imul eax, eax, 0x3e8
cdq
idiv ecx
lea edx, [ebp - 0x124]
push eax
push str.Avg_FPS_________d_r_n
push edx
call fcn.0047ea7d
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call edi
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov al, byte [esi + 0x208]
test al, al
pop edi
jne 0x43b756
mov al, byte [esi + 0x3a0]
test al, al
je 0x43b720
mov ecx, dword [esi + 4]
call fcn.00460e70
test al, al
je 0x43b733
call fcn.004800fd
and eax, reloc.DSOUND.dll_DirectSoundCreate
jns 0x43b731
dec eax
or eax, 0xfffffffe
inc eax
je 0x43b74e
mov al, byte [esi + 0x3a0]
test al, al
je 0x43b756
call fcn.004800fd
cdq
mov ecx, 0xa
idiv ecx
test edx, edx
jne 0x43b756
mov ecx, dword [esi + 4]
call fcn.00460eb0
pop esi
mov esp, ebp
pop ebp
ret