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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esp + 0x40]
cmp eax, dword [esi + 0x2c]
push edi
ja 0x10075195
jb 0x1007515d
mov ecx, dword [esp + 0x40]
cmp ecx, dword [esi + 0x28]
jae 0x10075195
mov eax, dword [esi + 0x14]
lea edi, [esi + 0x14]
mov byte [esi + 0x10], 0
mov byte [esi + 0x11], 0
mov edx, dword [eax]
or edx, dword [eax + 4]
je 0x1007517f
mov eax, edi
call fcn.100793e0
add dword [esi + 0x18], eax
adc dword [esi + 0x1c], edx
mov eax, dword [edi]
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call fcn.10075090
call fcn.10074ff0
cmp dword [esi + 0x38], 2
jbe 0x1007523e
mov ecx, dword [esi + 0x34]
mov edi, dword [ecx]
lea ebx, [esi + 0x30]
xor ebp, ebp
mov dword [esp + 0x10], ebp
lea ecx, [ecx]
cmp ebx, ebx
mov edx, dword [ebx + 4]
mov dword [esp + 0x1c], edx
je 0x100751c1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esp + 0x1c]
je 0x1007523e
cmp edi, dword [ebx + 4]
jne 0x100751d2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x10]
add dword [esp + 0x10], eax
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 8]
adc ebp, ecx
or edx, dword [edi + 0xc]
jne 0x1007523e
mov ecx, dword [esi + 4]
xor eax, eax
cmp ebp, eax
ja 0x10075206
jb 0x100751f7
cmp dword [esp + 0x10], ecx
ja 0x10075206
cmp edi, dword [ebx + 4]
jne 0x10075202
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [edi]
jmp 0x100751b0
mov eax, dword [esi + 0x14]
lea edi, [esi + 0x14]
mov byte [esi + 0x10], 0
mov byte [esi + 0x11], 0
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x10075228
mov eax, edi
call fcn.100793e0
add dword [esi + 0x18], eax
adc dword [esi + 0x1c], edx
mov edx, dword [edi]
add edx, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call fcn.10075090
call fcn.10074ff0
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
cmp eax, edi
jb 0x1007525e
ja 0x10075256
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x40], edx
jbe 0x10075262
mov edx, dword [esp + 0x40]
mov edi, eax
jmp 0x10075262
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0x2c]
mov ebx, dword [esp + 0x44]
cmp ebx, eax
mov ecx, dword [esi + 0x28]
ja 0x10075282
jb 0x10075278
cmp dword [esp + 0x40], ecx
jae 0x10075282
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov ebx, eax
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x24], edi
mov edi, edx
sub edi, ecx
mov ecx, ebx
sbb ecx, eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x20], edi
lea edi, [esi + 0x14]
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], ebx
mov edx, dword [eax]
or edx, dword [eax + 4]
mov dword [esp + 0x24], ecx
je 0x100752b8
mov eax, edi
call fcn.100793e0
jmp 0x100752bc
xor eax, eax
xor edx, edx
add dword [esi + 0x18], eax
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
adc dword [esi + 0x1c], edx
add eax, 0x10
push eax
mov dword [esp + 0x30], edx
call ebx
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [edi]
add edx, 8
push edx
call ebx
mov edi, dword [edi]
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x34]
mov edi, dword [eax]
mov ecx, dword [edi + 4]
lea ebp, [esi + 0x30]
push ecx
push edi
lea ecx, [esp + 0x28]
call fcn.100756b0
mov ecx, ebp
mov ebx, eax
call fcn.10075770
mov dword [edi + 4], ebx
mov edx, dword [ebx + 4]
mov dword [edx], ebx
mov eax, dword [esi + 0x38]
cmp eax, dword [esi + 0xc]
jbe 0x1007533f
mov eax, dword [ebp + 4]
mov edi, dword [eax + 4]
cmp edi, eax
jne 0x10075332
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
push ebp
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.100755c0
cmp dword [esi + 0x38], 2
jbe 0x10075426
mov edx, dword [ebp + 4]
mov edi, dword [edx]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x40], al
mov ebx, ebp
mov edi, edi
test ebx, ebx
mov eax, dword [ebp + 4]
mov dword [esp + 0x24], eax
je 0x1007536f
cmp ebx, ebp
je 0x10075375
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esp + 0x24]
je 0x10075426
cmp byte [esp + 0x40], 0
jne 0x100753c5
test ebx, ebx
jne 0x10075390
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [ebx + 4]
jne 0x1007539b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0x10]
add dword [esp + 0x10], ecx
mov eax, dword [edi + 0x14]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 8]
adc edx, eax
xor eax, eax
cmp edx, eax
mov dword [esp + 0x14], edx
jb 0x10075414
ja 0x100753c0
cmp dword [esp + 0x10], ecx
jbe 0x10075414
mov byte [esp + 0x40], 1
test ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
jne 0x100753d7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [ebx + 4]
jne 0x100753e2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [ebp + 4]
mov eax, dword [edi]
mov dword [esp + 0x38], eax
je 0x10075407
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov edx, dword [edi]
mov eax, dword [edi + 4]
push edi
mov dword [edx + 4], eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
add dword [ebp + 8], 0xffffffff
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
jmp 0x10075360
cmp edi, dword [ebx + 4]
jne 0x1007541f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [edi]
jmp 0x10075360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10