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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48801c
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4a7008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x4d1ba0]
test al, 1
jne 0x435821
or eax, 1
mov dword [0x4d1ba0], eax
push 0x88
push 0
push 0x4d1a70
mov dword [ebp - 4], 0
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
add esp, 4
mov dword [ebp - 4], 0xffffffff
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.BN_Machine_26.dds
call fcn.00403250
mov dword [ebp - 4], 2
call fcn.004014a0
movss xmm0, dword [eax + 0x2c]
mulss xmm0, dword [0x497e38]
movss dword [ebp - 0x2c], xmm0
call fcn.004013e0
movss xmm1, dword [ebp - 0x2c]
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00468050
mov eax, dword [0x4d1ba0]
test al, 1
jne 0x4358b3
or eax, 1
mov dword [0x4d1ba0], eax
push 0x88
push 0
push 0x4d1a70
mov dword [ebp - 4], 4
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [0x4d1ba0]
movss xmm0, dword [0x4d1a9c]
mulss xmm0, dword [0x497f20]
movss dword [ebp - 0x30], xmm0
test al, 1
jne 0x43590d
or eax, 1
mov dword [0x4d1ba0], eax
push 0x88
push 0
push 0x4d1a70
mov dword [ebp - 4], 5
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [0x4d1ba0]
movss xmm0, dword [0x4d1a9c]
mulss xmm0, dword [0x497eb4]
mov esi, dword [edi]
movss dword [ebp - 0x2c], xmm0
cmp esi, dword [edi + 4]
je 0x435a05
lea ecx, [ecx]
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004034d0
sub esp, 0x18
mov dword [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x34], esp
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004034d0
mov byte [ebp - 4], 7
mov eax, dword [0x4afd20]
test al, 1
jne 0x4359bf
or eax, 1
mov dword [0x4afd20], eax
push 0x213c0
push 0
push 0x4b0230
mov byte [ebp - 4], 8
call fcn.00479b40
add esp, 0xc
call fcn.00468b40
push 0x48cc50
call fcn.0046fb6c
add esp, 4
mov byte [ebp - 4], 7
movss xmm1, dword [ebp - 0x30]
mov ecx, 0x4b0230
mov byte [ebp - 4], 6
call fcn.00468520
addss xmm0, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0x10
movss dword [ebp - 0x2c], xmm0
jb 0x4359f4
push dword [ebp - 0x28]
call fcn.0046fdb4
add esp, 4
add esi, 0x18
cmp esi, dword [edi + 4]
jne 0x435930
mov eax, dword [0x4d1ba0]
test al, 1
jne 0x435b6e
or eax, 1
mov dword [0x4d1ba0], eax
push 0x88
push 0
push 0x4d1a70
mov dword [ebp - 4], 9
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [0x4d1ba0]
test al, 1
jne 0x435b6e
or eax, 1
mov dword [0x4d1ba0], eax
push 0x88
push 0
push 0x4d1a70
mov dword [ebp - 4], 0xa
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [0x4d1ba0]
test al, 1
jne 0x435b6e
or eax, 1
mov dword [0x4d1ba0], eax
push 0x88
push 0
push 0x4d1a70
mov dword [ebp - 4], 0xb
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [0x4d1ba0]
test al, 1
jne 0x435b6e
or eax, 1
mov dword [0x4d1ba0], eax
push 0x88
push 0
push 0x4d1a70
mov dword [ebp - 4], 0xc
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [0x4d1ba0]
test al, 1
jne 0x435b6e
or eax, 1
mov dword [0x4d1ba0], eax
push 0x88
push 0
push 0x4d1a70
mov dword [ebp - 4], 0xd
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [0x4d1ba0]
movss xmm0, dword [0x4d1a9c]
mulss xmm0, dword [0x497efc]
movss dword [ebp - 0x30], xmm0
test al, 1
jne 0x435cdc
or eax, 1
mov dword [0x4d1ba0], eax
push 0x88
push 0
push 0x4d1a70
mov dword [ebp - 4], 0xe
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [0x4d1ba0]
test al, 1
jne 0x435cdc
or eax, 1
mov dword [0x4d1ba0], eax
push 0x88
push 0
push 0x4d1a70
mov dword [ebp - 4], 0xf
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [0x4d1ba0]
test al, 1
jne 0x435cdc
or eax, 1
mov dword [0x4d1ba0], eax
push 0x88
push 0
push 0x4d1a70
mov dword [ebp - 4], 0x10
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [0x4d1ba0]
test al, 1
jne 0x435cdc
or eax, 1
mov dword [0x4d1ba0], eax
push 0x88
push 0
push 0x4d1a70
mov dword [ebp - 4], 0x11
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [0x4d1ba0]
test al, 1
jne 0x435cdc
or eax, 1
mov dword [0x4d1ba0], eax
push 0x88
push 0
push 0x4d1a70
mov dword [ebp - 4], 0x12
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
add esp, 4
mov eax, dword [0x4d1aa4]
lea esi, [edi + 0xc]
add eax, dword [0x4d1aac]
movss xmm3, dword [ebp - 0x2c]
mulss xmm3, dword [0x497d50]
cdq
sub eax, edx
sar eax, 1
movaps xmm0, xmm3
movd xmm2, eax
mov eax, dword [0x4d1aa0]
add eax, dword [0x4d1aa8]
cdq
sub eax, edx
sar eax, 1
cvtdq2ps xmm2, xmm2
movd xmm1, eax
addss xmm0, xmm2
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movaps xmm0, xmm1
subss xmm2, xmm3
addss xmm0, dword [ebp - 0x30]
push eax
cvttss2si eax, xmm0
movss xmm0, dword [0x4d1a9c]
mulss xmm0, dword [0x497efc]
push eax
cvttss2si eax, xmm2
subss xmm1, xmm0
push eax
cvttss2si eax, xmm1
push eax
push esi
call dword [sym.imp.USER32.dll_SetRect]
movdqu xmm0, xmmword [esi]
mov dword [edi + 0x20], 0xff000000
movdqu xmmword [edi + 0x24], xmm0
mov byte [edi + 0x7c], 0
xorps xmm0, xmm0
movsd qword [edi + 0x88], xmm0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [edi + 0x94], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4980b0]
lea eax, [edi + 0xa0]
push eax
movsd qword [edi + 0x80], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x435dce
lea eax, [edi + 0xa8]
mov byte [edi + 0x98], 1
push eax
call esi
mov byte [edi + 0x34], 1
xorps xmm0, xmm0
mov byte [edi + 0xb4], 0
movsd qword [edi + 0xc0], xmm0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [edi + 0xcc], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4980b0]
lea eax, [edi + 0xd8]
push eax
movsd qword [edi + 0xb8], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x435e31
lea eax, [edi + 0xe0]
mov byte [edi + 0xd0], 1
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f27e
mov esp, ebp
pop ebp
ret