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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x1c], 0x64
mov dword [ebp - 0x38], 1
fldz
fstp dword [ebp - 0x30]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x280
mov dword [ebp - 0x20], 0x1e0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 4
ja case.default.0x410a12
mov ecx, dword [ebp - 0x74]
jmp dword [ecx*4 + 0x410e80]
mov edx, dword [0x42ad04]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x34], 0x4e20
mov eax, dword [0x42a830]
push eax
mov ecx, dword [0x42ad10]
mov edx, dword [ecx]
mov eax, dword [0x42ad10]
push eax
mov ecx, dword [edx + 0x170]
call ecx
mov edx, dword [0x42a83c]
push edx
mov eax, dword [0x42ad10]
mov ecx, dword [eax]
mov edx, dword [0x42ad10]
push edx
mov eax, dword [ecx + 0x1ac]
call eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [0x42ad10]
mov eax, dword [edx]
mov ecx, dword [0x42ad10]
push ecx
mov edx, dword [eax + 0x12c]
call edx
jmp case.default.0x410a12
mov eax, dword [0x42ad04]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], 0x4e20
mov ecx, dword [0x42a834]
push ecx
mov edx, dword [0x42ad10]
mov eax, dword [edx]
mov ecx, dword [0x42ad10]
push ecx
mov edx, dword [eax + 0x170]
call edx
mov eax, dword [0x42a83c]
push eax
mov ecx, dword [0x42ad10]
mov edx, dword [ecx]
mov eax, dword [0x42ad10]
push eax
mov ecx, dword [edx + 0x1ac]
call ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [0x42ad10]
mov ecx, dword [eax]
mov edx, dword [0x42ad10]
push edx
mov eax, dword [ecx + 0x12c]
call eax
jmp case.default.0x410a12
cmp dword [0x42a838], 0
jne 0x410afe
fld dword [0x424608]
jmp 0x410e7b
mov ecx, dword [0x42ad04]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x34], 0x4e20
mov edx, dword [0x42a838]
push edx
mov eax, dword [0x42ad10]
mov ecx, dword [eax]
mov edx, dword [0x42ad10]
push edx
mov eax, dword [ecx + 0x170]
call eax
mov ecx, dword [0x42a844]
push ecx
mov edx, dword [0x42ad10]
mov eax, dword [edx]
mov ecx, dword [0x42ad10]
push ecx
mov edx, dword [eax + 0x1ac]
call edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x42ad10]
mov edx, dword [ecx]
mov eax, dword [0x42ad10]
push eax
mov ecx, dword [edx + 0x12c]
call ecx
jmp case.default.0x410a12
mov edx, dword [0x42ad00]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x34], 0x1f40
mov eax, dword [0x42a830]
push eax
mov ecx, dword [0x42ad10]
mov edx, dword [ecx]
mov eax, dword [0x42ad10]
push eax
mov ecx, dword [edx + 0x170]
call ecx
mov edx, dword [0x42a83c]
push edx
mov eax, dword [0x42ad10]
mov ecx, dword [eax]
mov edx, dword [0x42ad10]
push edx
mov eax, dword [ecx + 0x1ac]
call eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [0x42ad10]
mov eax, dword [edx]
mov ecx, dword [0x42ad10]
push ecx
mov edx, dword [eax + 0x12c]
call edx
jmp case.default.0x410a12
mov eax, dword [0x42ad00]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], 0x1f40
mov ecx, dword [0x42a830]
push ecx
mov edx, dword [0x42ad10]
mov eax, dword [edx]
mov ecx, dword [0x42ad10]
push ecx
mov edx, dword [eax + 0x170]
call edx
mov eax, dword [0x42a840]
push eax
mov ecx, dword [0x42ad10]
mov edx, dword [ecx]
mov eax, dword [0x42ad10]
push eax
mov ecx, dword [edx + 0x1ac]
call ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [0x42ad10]
mov ecx, dword [eax]
mov edx, dword [0x42ad10]
push edx
mov eax, dword [ecx + 0x12c]
call eax
mov ecx, dword [0x42ad10]
mov edx, dword [ecx]
mov eax, dword [0x42ad10]
push eax
mov ecx, dword [edx + 0xa4]
call ecx
mov edx, dword [0x42ad18]
push edx
mov eax, dword [0x42ad10]
mov ecx, dword [eax]
mov edx, dword [0x42ad10]
push edx
mov eax, dword [ecx + 0x15c]
call eax
push 0x190
call fcn.00407701
add esp, 4
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x3c], 0
jmp 0x410c8c
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0x64
jge 0x410daf
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
push 8
mov ecx, dword [0x42ad10]
mov edx, dword [ecx]
mov eax, dword [0x42ad10]
push eax
mov ecx, dword [edx + 0x1d8]
call ecx
push 1
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [eax + 0x18]
call edx
push 1
push 0
push 0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, 1
jne 0x410ce4
jmp 0x410cc9
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [ebp - 0x64], 0
jmp 0x410d00
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x64], 1
jge 0x410d2b
push 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 4
mov edx, dword [0x42ad10]
mov eax, dword [edx]
mov ecx, dword [0x42ad10]
push ecx
mov edx, dword [eax + 0x14c]
call edx
jmp 0x410cf7
push 1
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ecx + 0x18]
call eax
push 1
push 0
push 0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
cmp eax, 1
jne 0x410d56
jmp 0x410d3b
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x4c]
sbb ecx, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ecx + 8]
call eax
fild qword [ebp - 0x50]
fild qword [ebp - 0x48]
fdivp st(1)
fstp dword [ebp - 0x60]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
fld dword [ebp - 0x60]
fstp dword [edx + ecx*4]
fld dword [ebp - 0x30]
fadd dword [ebp - 0x60]
fstp dword [ebp - 0x30]
jmp 0x410c83
push 0
mov eax, dword [0x42ad10]
mov ecx, dword [eax]
mov edx, dword [0x42ad10]
push edx
mov eax, dword [ecx + 0x170]
call eax
push 0
mov ecx, dword [0x42ad10]
mov edx, dword [ecx]
mov eax, dword [0x42ad10]
push eax
mov ecx, dword [edx + 0x1ac]
call ecx
push 2
mov edx, dword [0x42ad10]
mov eax, dword [edx]
mov ecx, dword [0x42ad10]
push ecx
mov edx, dword [eax + 0x164]
call edx
mov eax, dword [0x42ad10]
mov ecx, dword [eax]
mov edx, dword [0x42ad10]
push edx
mov eax, dword [ecx + 0xa8]
call eax
push 0
push 0x4104b0
push 4
push 0x64
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll_qsort_s]
add esp, 0x14
fldz
fstp dword [ebp - 0x30]
mov dword [ebp - 0x68], 5
jmp 0x410e3d
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
cmp dword [ebp - 0x68], 0x5f
jge 0x410e54
fld dword [ebp - 0x30]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x18]
fadd dword [ecx + eax*4]
fstp dword [ebp - 0x30]
jmp 0x410e34
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
fld dword [ebp - 0x30]
fdiv qword [0x424600]
fmul qword [0x4245f8]
fstp dword [ebp - 0x78]
fld dword [ebp - 0x78]
mov esp, ebp
pop ebp
ret