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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x100b7080]
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 [0x100baf98], eax
cmp dword [esi + 4], 0
je 0x10079436
cmp dword [esi + 8], 0
je 0x10079436
cmp dword [esi + 0x10], 0
je 0x10079436
cmp dword [esi + 0x14], 0
je 0x10079436
cmp dword [esi + 0xc], 0
je 0x10079436
mov eax, dword [0x100bab88]
test eax, eax
je 0x10078edc
cmp dword [eax + 0x7c], 0
je 0x10078edc
mov ecx, dword [0x100bab8c]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x10078edc
cmp byte [0x100bab9a], 0
je 0x10078a66
mov ecx, 0xd78c9c
call fcn.10018500
mov ebx, eax
test ebx, ebx
je 0x10078a5d
push 4
push ebx
call edi
test eax, eax
jne 0x10078a5d
push 4
add ebx, 0xb7c
push ebx
call edi
test eax, eax
jne 0x10078a5d
mov ecx, dword [esp + 0x1c]
mov al, byte [ebx]
mov byte [ecx + 0x3a], al
jmp 0x10078a61
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x100bab88]
mov eax, dword [eax + 0x7c]
mov al, byte [eax + 0x2c]
cmp al, byte [ecx + 0x3a]
jne 0x10078edc
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10078acb
push 4
push ebx
call edi
test eax, eax
jne 0x10078acb
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10078acb
cmp byte [ebx], al
je 0x10078acb
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10078ba8
push 4
push ebx
call edi
test eax, eax
jne 0x10078ba8
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10078ba8
cmp byte [ebx], al
je 0x10078ba8
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10078ca4
push 4
push ebx
call edi
test eax, eax
jne 0x10078ca4
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10078ca4
cmp byte [ebx], al
je 0x10078ca4
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10078ca4
push 4
push ebx
call edi
test eax, eax
jne 0x10078ca4
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10078ca4
cmp byte [ebx], al
je 0x10078ca4
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 0x10078b66
push 4
push eax
call edi
test eax, eax
jne 0x10078b62
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ae558]
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 0x10078b99
push 4
push eax
call edi
test eax, eax
jne 0x10078b99
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ae558]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x10078ca4
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10078bd5
push 4
push ebx
call edi
test eax, eax
jne 0x10078bd5
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10078c02
push 4
push ebx
call edi
test eax, eax
jne 0x10078c02
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10078c26
push 4
push ebx
call edi
test eax, eax
jne 0x10078c26
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100ae55c]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10078c53
push 4
push ebx
call edi
test eax, eax
jne 0x10078c53
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10078c80
push 4
push ebx
call edi
test eax, eax
jne 0x10078c80
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10078ca4
push 4
push ebx
call edi
test eax, eax
jne 0x10078ca4
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x3a
push eax
call dword [0x100ae55c]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10078dfa
push 4
push ebx
call edi
test eax, eax
jne 0x10078dfa
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10078dfa
cmp byte [ebx], al
je 0x10078dfa
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10078cfe
push 4
push ebx
call edi
test eax, eax
jne 0x10078cfe
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10078cfe
cmp byte [ebx], al
jne 0x10078dfa
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10078d2b
push 4
push ebx
call edi
test eax, eax
jne 0x10078d2b
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10078d58
push 4
push ebx
call edi
test eax, eax
jne 0x10078d58
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10078d7c
push 4
push ebx
call edi
test eax, eax
jne 0x10078d7c
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100ae55c]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10078da9
push 4
push ebx
call edi
test eax, eax
jne 0x10078da9
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10078dd6
push 4
push ebx
call edi
test eax, eax
jne 0x10078dd6
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10079436
push 4
push ebx
call edi
test eax, eax
jne 0x10079436
mov eax, dword [esp + 0x1c]
add eax, 0x3a
jmp 0x10079429
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10079436
push 4
push ebx
call edi
test eax, eax
jne 0x10079436
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10079436
cmp byte [ebx], al
je 0x10079436
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10079436
push 4
push ebx
call edi
test eax, eax
jne 0x10079436
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10079436
cmp byte [ebx], al
je 0x10079436
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 0x10078e95
push 4
push eax
call edi
test eax, eax
jne 0x10078e91
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ae558]
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 0x10078ec8
push 4
push eax
call edi
test eax, eax
jne 0x10078ec8
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ae558]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x10079436
jmp 0x10078cfe
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x10078f32
push 4
push ebx
call edi
test eax, eax
jne 0x10078f32
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10078f32
cmp byte [ebx], al
je 0x10078f32
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1007900f
push 4
push ebx
call edi
test eax, eax
jne 0x1007900f
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x1007900f
cmp byte [ebx], al
je 0x1007900f
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x10079189
push 4
push ebx
call edi
test eax, eax
jne 0x10079189
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10079189
cmp byte [ebx], al
je 0x10079189
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10079189
push 4
push ebx
call edi
test eax, eax
jne 0x10079189
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10079189
cmp byte [ebx], al
je 0x10079189
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 0x10078fcd
push 4
push eax
call edi
test eax, eax
jne 0x10078fc9
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ae558]
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 0x10079000
push 4
push eax
call edi
test eax, eax
jne 0x10079000
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ae558]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x10079189
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1007903c
push 4
push ebx
call edi
test eax, eax
jne 0x1007903c
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10079069
push 4
push ebx
call edi
test eax, eax
jne 0x10079069
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x1007908d
push 4
push ebx
call edi
test eax, eax
jne 0x1007908d
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100ae55c]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x100790ba
push 4
push ebx
call edi
test eax, eax
jne 0x100790ba
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x100790e7
push 4
push ebx
call edi
test eax, eax
jne 0x100790e7
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1007910b
push 4
push ebx
call edi
test eax, eax
jne 0x1007910b
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x3a
push eax
call dword [0x100ae55c]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10079138
push 4
push ebx
call edi
test eax, eax
jne 0x10079138
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10079165
push 4
push ebx
call edi
test eax, eax
jne 0x10079165
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10079189
push 4
push ebx
call edi
test eax, eax
jne 0x10079189
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x57
push eax
call dword [0x100ae55c]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x100791df
push 4
push ebx
call edi
test eax, eax
jne 0x100791df
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x100791df
cmp byte [ebx], al
je 0x100791df
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x100792bc
push 4
push ebx
call edi
test eax, eax
jne 0x100792bc
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x100792bc
cmp byte [ebx], al
je 0x100792bc
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x10079436
push 4
push ebx
call edi
test eax, eax
jne 0x10079436
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10079436
cmp byte [ebx], al
je 0x10079436
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x10079436
push 4
push ebx
call edi
test eax, eax
jne 0x10079436
push 4
add ebx, 0xfc
push ebx
call edi
test eax, eax
jne 0x10079436
cmp byte [ebx], al
je 0x10079436
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 0x1007927a
push 4
push eax
call edi
test eax, eax
jne 0x10079276
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ae558]
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 0x100792ad
push 4
push eax
call edi
test eax, eax
jne 0x100792ad
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
call dword [0x100ae558]
mov eax, dword [esp + 0x10]
add eax, 0x1d
cmp ebx, eax
jne 0x10079436
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x100792e9
push 4
push ebx
call edi
test eax, eax
jne 0x100792e9
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10079316
push 4
push ebx
call edi
test eax, eax
jne 0x10079316
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x1007933a
push 4
push ebx
call edi
test eax, eax
jne 0x1007933a
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x1d
push eax
call dword [0x100ae55c]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x10079367
push 4
push ebx
call edi
test eax, eax
jne 0x10079367
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10079394
push 4
push ebx
call edi
test eax, eax
jne 0x10079394
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x100793b8
push 4
push ebx
call edi
test eax, eax
jne 0x100793b8
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x14]
add eax, 0x3a
push eax
call dword [0x100ae55c]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x100793e5
push 4
push ebx
call edi
test eax, eax
jne 0x100793e5
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x10079412
push 4
push ebx
call edi
test eax, eax
jne 0x10079412
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call dword [0x100ae558]
mov ebx, dword [esi + 0x14]
test ebx, ebx
je 0x10079436
push 4
push ebx
call edi
test eax, eax
jne 0x10079436
mov eax, dword [esp + 0x1c]
add eax, 0x57
push dword [esp + 0x14]
mov ecx, ebx
push eax
call dword [0x100ae55c]
cmp byte [esi + 0x19], 0
jne 0x1007958d
cmp byte [esi + 0x18], 0
je 0x1007958d
cmp dword [esi + 8], 0
je 0x1007958d
cmp byte [0x100bb045], 0
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jne 0x10079498
push 0x100bb060
call ebx
cmp eax, 1
jne 0x10079488
push 0x100bb068
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov al, 1
mov byte [0x100bb044], al
mov byte [0x100bb045], al
jmp 0x1007949d
xor al, al
mov byte [0x100bb045], 1
mov byte [0x100bb044], al
jmp 0x1007949d
mov al, byte [0x100bb044]
test al, al
je 0x100794e0
push 0x100bb060
call ebx
mov edx, dword [0x100bb064]
mov ecx, dword [0x100bb060]
call fcn.1009b360
mov edx, dword [0x100bb06c]
mov ecx, dword [0x100bb068]
movsd qword [esp + 0x10], xmm0
call fcn.1009b360
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
cvtpd2ps xmm2, xmm1
jmp 0x100794fe
call dword [sym.imp.WINMM.dll_timeGetTime]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100af3f0]
cvtpd2ps xmm2, xmm0
movss xmm0, dword [0x100ae93c]
movaps xmm1, xmm2
subss xmm1, dword [esi + 0x1c]
comiss xmm0, xmm1
jae 0x1007958d
mov ebx, dword [esi + 8]
movss dword [esi + 0x1c], xmm2
test ebx, ebx
je 0x10079551
push 4
push ebx
call edi
test eax, eax
jne 0x10079551
lea ecx, [ebx + 0xd0]
call fcn.10018490
mov ebx, dword [esi + 8]
cmp al, 2
jne 0x10079554
test ebx, ebx
je 0x1007958d
push 4
push ebx
call edi
test eax, eax
jne 0x1007958d
lea ecx, [ebx + 0xd0]
mov dl, 6
jmp 0x10079588
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x1007958d
push 4
push ebx
call edi
test eax, eax
jne 0x1007958d
lea ecx, [ebx + 0xd0]
call fcn.10018490
cmp al, 6
jne 0x1007958d
mov esi, dword [esi + 8]
test esi, esi
je 0x1007958d
push 4
push esi
call edi
test eax, eax
jne 0x1007958d
lea ecx, [esi + 0xd0]
mov dl, 2
call fcn.10018430
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10081245
mov esp, ebp
pop ebp
ret