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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x30], 0
je 0x1014d406
cmp byte [esi + 0x17], 0
je 0x1014d3c1
mov edx, dword [esi + 4]
mov ecx, dword [esi]
call fcn.104511a0
mov eax, dword [esi + 0x20]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x1122e340]
divsd xmm1, qword [0x1122d4a8]
mulsd xmm1, xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x34], xmm0
movsd xmm0, qword [0x1122d530]
comisd xmm1, xmm0
jb 0x1014d18d
subsd xmm1, xmm0
comisd xmm0, xmm1
jbe 0x1014d18d
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x30]
add edi, 0
adc ebx, 0x80000000
jmp 0x1014d193
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
movaps xmm0, xmm1
call fcn.104510f0
mov ecx, eax
add ecx, edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
adc edx, ebx
mov ebx, dword [esi]
mov eax, ebx
mov dword [ebp - 0x10], edx
or eax, dword [esi + 4]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
je 0x1014d214
call fcn.104511a0
mov edx, dword [esi + 4]
mov ecx, ebx
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x18], xmm0
call fcn.104511a0
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [ebp - 0x18]
divss xmm1, dword [0x1122d580]
divss xmm0, xmm1
call fcn.10451080
mov dword [edi + 0xc], eax
mov eax, dword [esi + 8]
lea ebx, [esi + 8]
or eax, dword [ebx + 4]
jne 0x1014d23c
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [edi + 0x10], eax
mov eax, edi
mov dword [edi + 0x14], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x10], 0
jne 0x1014d27c
cmp dword [esi + 0x34], 0
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x18], eax
jne 0x1014d25c
push 0x1046c540
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1014d278
push 0x1046c570
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1014d278
push dword [ebp - 0x18]
call eax
mov byte [esi + 0x10], 1
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
mov dword [ebp - 0x28], eax
add eax, dword [ebp - 0x14]
mov edi, eax
mov dword [ebp - 0x2c], ecx
adc ecx, dword [ebp - 0x10]
sub edi, edx
mov dword [ebp - 0x1c], edi
mov edi, edx
mov dword [ebp - 0x18], ecx
mov dword [ebx + 4], ecx
sbb ecx, dword [ebp - 0xc]
sub edi, eax
mov dword [ebp - 0x24], eax
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
sbb eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], edx
cmp ecx, eax
ja 0x1014d304
jb 0x1014d2de
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jae 0x1014d304
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sub eax, edx
sbb ecx, dword [ebp - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.1014d630
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x1014d30c
mov eax, dword [ebp - 0x30]
mov dword [ebx], edx
mov dword [ebx + 4], eax
mov ecx, dword [esi]
mov eax, ecx
mov edx, dword [esi + 4]
or eax, edx
je 0x1014d3aa
call fcn.104511a0
cvtsd2ss xmm0, xmm0
mov esi, dword [ebp - 0x34]
mov ecx, esi
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x30]
sbb edx, dword [ebp - 0xc]
divss xmm0, dword [0x1122d580]
movss dword [ebp + 8], xmm0
call fcn.104511a0
cvtsd2ss xmm0, xmm0
divss xmm0, dword [ebp + 8]
call fcn.10451080
mov ecx, dword [ebx]
sub ecx, dword [ebp - 8]
mov edx, dword [ebx + 4]
sbb edx, dword [ebp - 0xc]
mov dword [edi], eax
call fcn.104511a0
cvtsd2ss xmm0, xmm0
divss xmm0, dword [ebp + 8]
call fcn.10451080
mov edx, dword [ebp - 0x30]
mov ecx, esi
sub ecx, dword [ebp - 0x28]
mov dword [edi + 4], eax
sbb edx, dword [ebp - 0x2c]
call fcn.104511a0
cvtsd2ss xmm0, xmm0
divss xmm0, dword [ebp + 8]
call fcn.10451080
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x14], eax
mov eax, edi
mov dword [edi + 0x10], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov dword [edi + 0x14], eax
mov eax, edi
mov dword [edi + 0x10], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp byte [esi + 0x10], 0
je 0x1014d406
cmp dword [esi + 0x34], 0
mov edi, dword [esi + 0x38]
jne 0x1014d3e8
push 0x1046c540
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1014d402
push 0x1046c580
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1014d402
push edi
call eax
mov byte [esi + 0x10], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov esp, ebp
pop ebp
ret 4