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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x100c90c0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [esi]
mov dword [0x100ce8b4], eax
cmp dword [esi + 4], 0
je 0x1007db56
cmp dword [esi + 8], 0
je 0x1007db56
cmp dword [esi + 0x10], 0
je 0x1007db56
cmp dword [esi + 0x14], 0
je 0x1007db56
cmp dword [esi + 0xc], 0
je 0x1007db56
mov eax, dword [0x100ce4f8]
test eax, eax
je 0x1007d5fc
cmp dword [eax + 0x64], 0
je 0x1007d5fc
mov ecx, dword [0x100ce4f0]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x1007d5fc
cmp byte [0x100ce578], 0
je 0x1007d186
mov ecx, 0xd78c9c
call fcn.1001cb40
mov ebx, eax
test ebx, ebx
je 0x1007d17d
push 4
push ebx
call edi
test eax, eax
jne 0x1007d17d
push 4
add ebx, 0xb7c
push ebx
call edi
test eax, eax
jne 0x1007d17d
mov ecx, dword [esp + 0x1c]
mov al, byte [ebx]
mov byte [ecx + 0x3a], al
jmp 0x1007d181
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x100ce4f8]
mov eax, dword [eax + 0x64]
mov al, byte [eax + 0x2c]
cmp al, byte [ecx + 0x3a]
jne 0x1007d5fc
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x1007d1eb
push 4
push ebx
call edi
test eax, eax
jne 0x1007d1eb
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007d1eb
cmp byte [ebx], al
je 0x1007d1eb
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1007d2c8
push 4
push ebx
call edi
test eax, eax
jne 0x1007d2c8
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007d2c8
cmp byte [ebx], al
je 0x1007d2c8
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x1007d3c4
push 4
push ebx
call edi
test eax, eax
jne 0x1007d3c4
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007d3c4
cmp byte [ebx], al
je 0x1007d3c4
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1007d3c4
push 4
push ebx
call edi
test eax, eax
jne 0x1007d3c4
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007d3c4
cmp byte [ebx], al
je 0x1007d3c4
mov eax, dword [esi + 0x14]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
test eax, eax
je 0x1007d286
push 4
push eax
call edi
test eax, eax
jne 0x1007d282
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100bd5f4]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
test eax, eax
je 0x1007d2b9
push 4
push eax
call edi
test eax, eax
jne 0x1007d2b9
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100bd5f4]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x1007d3c4
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1007d2f5
push 4
push ebx
call edi
test eax, eax
jne 0x1007d2f5
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x1007d322
push 4
push ebx
call edi
test eax, eax
jne 0x1007d322
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x1007d346
push 4
push ebx
call edi
test eax, eax
jne 0x1007d346
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100bd5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1007d373
push 4
push ebx
call edi
test eax, eax
jne 0x1007d373
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x1007d3a0
push 4
push ebx
call edi
test eax, eax
jne 0x1007d3a0
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1007d3c4
push 4
push ebx
call edi
test eax, eax
jne 0x1007d3c4
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x3a
push eax
call dword [0x100bd5f8]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1007d51a
push 4
push ebx
call edi
test eax, eax
jne 0x1007d51a
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007d51a
cmp byte [ebx], al
je 0x1007d51a
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x1007d41e
push 4
push ebx
call edi
test eax, eax
jne 0x1007d41e
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007d41e
cmp byte [ebx], al
jne 0x1007d51a
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1007d44b
push 4
push ebx
call edi
test eax, eax
jne 0x1007d44b
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x1007d478
push 4
push ebx
call edi
test eax, eax
jne 0x1007d478
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1007d49c
push 4
push ebx
call edi
test eax, eax
jne 0x1007d49c
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100bd5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1007d4c9
push 4
push ebx
call edi
test eax, eax
jne 0x1007d4c9
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x1007d4f6
push 4
push ebx
call edi
test eax, eax
jne 0x1007d4f6
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x1007db56
push 4
push ebx
call edi
test eax, eax
jne 0x1007db56
mov eax, dword [esp + 0x1c]
add eax, 0x3a
jmp 0x1007db49
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1007db56
push 4
push ebx
call edi
test eax, eax
jne 0x1007db56
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007db56
cmp byte [ebx], al
je 0x1007db56
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x1007db56
push 4
push ebx
call edi
test eax, eax
jne 0x1007db56
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007db56
cmp byte [ebx], al
je 0x1007db56
mov eax, dword [esi + 0x10]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
test eax, eax
je 0x1007d5b5
push 4
push eax
call edi
test eax, eax
jne 0x1007d5b1
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100bd5f4]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
test eax, eax
je 0x1007d5e8
push 4
push eax
call edi
test eax, eax
jne 0x1007d5e8
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100bd5f4]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x1007db56
jmp 0x1007d41e
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x1007d652
push 4
push ebx
call edi
test eax, eax
jne 0x1007d652
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007d652
cmp byte [ebx], al
je 0x1007d652
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1007d72f
push 4
push ebx
call edi
test eax, eax
jne 0x1007d72f
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007d72f
cmp byte [ebx], al
je 0x1007d72f
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x1007d8a9
push 4
push ebx
call edi
test eax, eax
jne 0x1007d8a9
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007d8a9
cmp byte [ebx], al
je 0x1007d8a9
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1007d8a9
push 4
push ebx
call edi
test eax, eax
jne 0x1007d8a9
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007d8a9
cmp byte [ebx], al
je 0x1007d8a9
mov eax, dword [esi + 0xc]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
test eax, eax
je 0x1007d6ed
push 4
push eax
call edi
test eax, eax
jne 0x1007d6e9
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100bd5f4]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
test eax, eax
je 0x1007d720
push 4
push eax
call edi
test eax, eax
jne 0x1007d720
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100bd5f4]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x1007d8a9
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1007d75c
push 4
push ebx
call edi
test eax, eax
jne 0x1007d75c
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x1007d789
push 4
push ebx
call edi
test eax, eax
jne 0x1007d789
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x1007d7ad
push 4
push ebx
call edi
test eax, eax
jne 0x1007d7ad
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100bd5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1007d7da
push 4
push ebx
call edi
test eax, eax
jne 0x1007d7da
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x1007d807
push 4
push ebx
call edi
test eax, eax
jne 0x1007d807
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1007d82b
push 4
push ebx
call edi
test eax, eax
jne 0x1007d82b
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x3a
push eax
call dword [0x100bd5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1007d858
push 4
push ebx
call edi
test eax, eax
jne 0x1007d858
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x1007d885
push 4
push ebx
call edi
test eax, eax
jne 0x1007d885
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x1007d8a9
push 4
push ebx
call edi
test eax, eax
jne 0x1007d8a9
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x57
push eax
call dword [0x100bd5f8]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1007d8ff
push 4
push ebx
call edi
test eax, eax
jne 0x1007d8ff
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007d8ff
cmp byte [ebx], al
je 0x1007d8ff
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x1007d9dc
push 4
push ebx
call edi
test eax, eax
jne 0x1007d9dc
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007d9dc
cmp byte [ebx], al
je 0x1007d9dc
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1007db56
push 4
push ebx
call edi
test eax, eax
jne 0x1007db56
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007db56
cmp byte [ebx], al
je 0x1007db56
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x1007db56
push 4
push ebx
call edi
test eax, eax
jne 0x1007db56
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007db56
cmp byte [ebx], al
je 0x1007db56
mov eax, dword [esi + 0x10]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
test eax, eax
je 0x1007d99a
push 4
push eax
call edi
test eax, eax
jne 0x1007d996
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100bd5f4]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
test eax, eax
je 0x1007d9cd
push 4
push eax
call edi
test eax, eax
jne 0x1007d9cd
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100bd5f4]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x1007db56
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1007da09
push 4
push ebx
call edi
test eax, eax
jne 0x1007da09
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x1007da36
push 4
push ebx
call edi
test eax, eax
jne 0x1007da36
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1007da5a
push 4
push ebx
call edi
test eax, eax
jne 0x1007da5a
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100bd5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1007da87
push 4
push ebx
call edi
test eax, eax
jne 0x1007da87
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x1007dab4
push 4
push ebx
call edi
test eax, eax
jne 0x1007dab4
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x1007dad8
push 4
push ebx
call edi
test eax, eax
jne 0x1007dad8
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x3a
push eax
call dword [0x100bd5f8]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1007db05
push 4
push ebx
call edi
test eax, eax
jne 0x1007db05
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x1007db32
push 4
push ebx
call edi
test eax, eax
jne 0x1007db32
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100bd5f4]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x1007db56
push 4
push ebx
call edi
test eax, eax
jne 0x1007db56
mov eax, dword [esp + 0x1c]
add eax, 0x57
push dword [esp + 0x14]
mov ecx, ebx
push eax
call dword [0x100bd5f8]
cmp byte [esi + 0x19], 0
jne 0x1007dca6
cmp byte [esi + 0x18], 0
je 0x1007dca6
cmp dword [esi + 8], 0
je 0x1007dca6
cmp byte [0x10104159], 0
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jne 0x1007dbb8
push 0x10104180
call ebx
cmp eax, 1
jne 0x1007dba8
push 0x10104188
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov al, 1
mov byte [0x10104158], al
mov byte [0x10104159], al
jmp 0x1007dbbd
xor al, al
mov byte [0x10104159], 1
mov byte [0x10104158], al
jmp 0x1007dbbd
mov al, byte [0x10104158]
test al, al
je 0x1007dc00
push 0x10104180
call ebx
mov edx, dword [0x10104184]
mov ecx, dword [0x10104180]
call fcn.100a7e80
mov edx, dword [0x1010418c]
mov ecx, dword [0x10104188]
movsd qword [esp + 0x10], xmm0
call fcn.100a7e80
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
cvtpd2ps xmm2, xmm1
jmp 0x1007dc1e
call dword [sym.imp.WINMM.dll_timeGetTime]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100bf9d0]
cvtpd2ps xmm2, xmm0
movss xmm0, dword [0x100bec08]
movaps xmm1, xmm2
subss xmm1, dword [esi + 0x1c]
comiss xmm0, xmm1
jae 0x1007dca6
mov ebx, dword [esi + 8]
movss dword [esi + 0x1c], xmm2
test ebx, ebx
je 0x1007dc6d
push 4
push ebx
call edi
test eax, eax
jne 0x1007dc6d
lea ecx, [ebx + 0xd0]
call fcn.1001cad0
mov ebx, dword [esi + 8]
cmp al, 2
jne 0x1007dc70
test ebx, ebx
je 0x1007dca6
push 4
push ebx
call edi
test eax, eax
jne 0x1007dca6
push 6
mov ecx, ebx
jmp 0x1007dca0
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x1007dca6
push 4
push ebx
call edi
test eax, eax
jne 0x1007dca6
lea ecx, [ebx + 0xd0]
call fcn.1001cad0
cmp al, 6
jne 0x1007dca6
mov esi, dword [esi + 8]
test esi, esi
je 0x1007dca6
push 4
push esi
call edi
test eax, eax
jne 0x1007dca6
push 2
mov ecx, esi
call dword [0x100bd60c]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10085995
mov esp, ebp
pop ebp
ret