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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x4c75d0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
lea eax, [esp + 0x68]
mov esi, edx
xor ebx, ebx
push eax
mov edi, ecx
mov dword [esp + 0x2c], esi
mov byte [esp + 0x17], bl
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 0x18]
fild qword [esp + 0x68]
xor eax, eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
fdivp st(1)
mov dword [esp + 0x14], ebx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x78], 0x1c
fst qword [esp + 0x30]
fst qword [esp + 0x40]
fldz
fstp qword [esp + 0x48]
fst qword [esp + 0x38]
fstp qword [esp + 0x58]
fldz
fstp dword [esp + 0x60]
cmp esi, ebx
jne 0x4377b2
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0x30]
mov dword [esp + 0x24], eax
cmp eax, ebx
jne 0x43783b
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea edx, [esp + 0x18]
push edx
call edi
fild qword [esp + 0x18]
fild qword [esp + 0x68]
mov dword [esp + 0x50], ebx
fdivp st(1)
fst qword [esp + 0x40]
fstp qword [esp + 0x38]
fldz
fstp qword [esp + 0x48]
lea esp, [esp]
lea eax, [esp + 0x28]
push eax
call edi
fild qword [esp + 0x28]
fild qword [esp + 0x68]
mov ecx, dword [esi + 0x34]
fdivp st(1)
fsub qword [esp + 0x40]
fmul qword [0x4bf198]
fild dword [esi + 0x34]
test ecx, ecx
jns 0x43781b
fadd dword [0x4bf190]
fcompp
fnstsw ax
test ah, 0x41
je 0x4377f0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
lea eax, [edi + 0x10]
mov dword [esp + 0x18], eax
push eax
mov eax, dword [edx + 0x1c]
call eax
cmp eax, ebx
jl 0x43798a
cmp dword [edi + 0x1c], 0xffffff00
je 0x437987
mov ecx, dword [edi + 8]
cmp ecx, ebx
je 0x437961
mov eax, dword [esp + 0x24]
mov dword [esp + 0x84], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x8c], 0x12c
mov dword [esp + 0x88], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x78]
push eax
call edx
mov ecx, dword [esi + 0x2c]
mov esi, edi
call fcn.00436a80
test eax, eax
jns 0x4378bb
mov dword [edi + 0x1c], 3
jmp 0x437961
lea esi, [esp + 0x30]
call fcn.004011b0
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
call edx
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x1b]
mov esi, edi
call fcn.00436870
cmp dword [esp + 0x14], ebx
je 0x437949
cmp dword [edi + 0x24], ebx
jne 0x43794e
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 0x70]
fild qword [esp + 0x68]
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x34]
fdivp st(1)
fsub qword [esp + 0x40]
fmul qword [0x4bf198]
fild dword [edx + 0x34]
test eax, eax
jns 0x437928
fadd dword [0x4bf190]
fcompp
fnstsw ax
test ah, 0x41
jnp 0x43795a
lea ecx, [esp + 0x14]
push ecx
push 1
lea eax, [esp + 0x1b]
mov esi, edi
call fcn.00436870
cmp dword [esp + 0x14], ebx
jne 0x4378f0
mov dword [edi + 0x1c], ebx
jmp 0x437961
mov dword [edi + 0x24], ebx
mov dword [edi + 0x1c], 2
jmp 0x437961
mov dword [edi + 0x1c], 4
mov edi, dword [edi + 0xc]
mov edx, dword [edi]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + 0x20]
push eax
mov ecx, edi
call edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x1c], ebx
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret