Function at 0x401000
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x415040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x94], 0
xor eax, eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xcc], 3
mov dword [ebp - 0xc8], 0x401830
mov dword [ebp - 0xa8], str.GameWindowClass
mov dword [ebp - 0x90], str.WindowName
mov dword [ebp - 0x8c], 0x10cf0000
mov dword [ebp - 0x88], 0x80000000
mov dword [ebp - 0x84], 0x80000000
mov dword [ebp - 0x80], 0x500
mov dword [ebp - 0x7c], 0x2d0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0xcc]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
mov edx, dword [ebp - 0x70]
push edx
push 0
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
mov eax, dword [ebp - 0x94]
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x98], eax
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
movss xmm0, dword [0x40e194]
movss dword [ebp - 0x5c], xmm0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
call fcn.00401960
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x9c], xmm0
cmp dword [section..data], 0
je 0x401421
mov dword [ebp - 0x34], 0
jmp 0x4011aa
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 4
jge 0x4011bd
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*8 - 0x20], 0
jmp 0x4011a1
push 1
push 0
push 0
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0xec]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40138b
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
sub ecx, 0x100
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 5
ja case.0x4011fe.2
mov edx, dword [ebp - 0x38]
jmp dword [edx*4 + 0x401434]
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0xe0]
and ecx, 0x40000000
je 0x401225
mov dword [ebp - 0x44], 1
jmp 0x40122c
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0xe0]
and eax, 0x80000000
jne 0x40124b
mov dword [ebp - 0x48], 1
jmp 0x401252
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x3c], 0x25
jne 0x40129d
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp + eax - 0x24]
je 0x401278
mov dword [ebp - 0x4c], 1
jmp 0x40127f
mov dword [ebp - 0x4c], 0
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp + eax - 0x20], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp + eax - 0x24], ecx
cmp dword [ebp - 0x3c], 0x27
jne 0x4012e2
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + edx - 0x24]
je 0x4012bd
mov dword [ebp - 0x50], 1
jmp 0x4012c4
mov dword [ebp - 0x50], 0
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 0x50]
mov dword [ebp + ecx - 0x20], edx
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp + eax - 0x24], ecx
cmp dword [ebp - 0x3c], 0x26
jne 0x401324
mov edx, 8
shl edx, 1
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + edx - 0x24]
je 0x401301
mov dword [ebp - 0x54], 1
jmp 0x401308
mov dword [ebp - 0x54], 0
mov ecx, 8
shl ecx, 1
mov edx, dword [ebp - 0x54]
mov dword [ebp + ecx - 0x20], edx
mov eax, 8
shl eax, 1
mov ecx, dword [ebp - 0x30]
mov dword [ebp + eax - 0x24], ecx
cmp dword [ebp - 0x3c], 0x28
jne 0x401369
mov edx, 8
imul eax, edx, 3
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp + eax - 0x24]
je 0x401344
mov dword [ebp - 0x58], 1
jmp 0x40134b
mov dword [ebp - 0x58], 0
mov edx, 8
imul eax, edx, 3
mov ecx, dword [ebp - 0x58]
mov dword [ebp + eax - 0x20], ecx
mov edx, 8
imul eax, edx, 3
mov ecx, dword [ebp - 0x30]
mov dword [ebp + eax - 0x24], ecx
jmp 0x401386
lea edx, [ebp - 0xec]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
nop
jmp 0x4011bd
push ecx
movss xmm0, dword [ebp - 0x5c]
movss dword [esp], xmm0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00401710
add esp, 8
push 0xcc0020
push 0
push 0x415944
mov edx, dword [0x415940]
push edx
mov eax, dword [0x41593c]
push eax
mov ecx, dword [0x415938]
push ecx
push 0
push 0
mov edx, dword [0x41593c]
push edx
mov eax, dword [0x415938]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x98]
push ecx
call dword [sym.imp.GDI32.dll_StretchDIBits]
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x60]
sbb edx, dword [ebp - 0x68]
call fcn.00401960
cvtsd2ss xmm0, xmm0
divss xmm0, dword [ebp - 0x9c]
movss dword [ebp - 0x5c], xmm0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ecx
jmp 0x40118b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040194b
mov esp, ebp
pop ebp
ret 0x10