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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], 0x10
push edi
mov dword [esp + 0x18], esi
mov eax, 0x10
lea edi, [esi + 0xc]
cmp byte [edi + 0x10], 0
je 0x1004764a
mov ebx, dword [edi + 0xc]
cmp ebx, 0x1f
ja 0x1004764a
cmp ebx, 0xd
jne 0x10047315
mov ebx, dword [ebp + 8]
lea eax, [edi - 8]
push ebx
push eax
mov ecx, esi
call fcn.10047af0
mov eax, dword [esp + 0x14]
jmp 0x1004764d
mov eax, dword [esi + 0x2b0]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x20], eax
test eax, eax
je 0x10047646
cmp dword [esi + ebx*4 + 0x2f4], 0
je 0x100477b4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20c]
mov dword [esp + 0x24], eax
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0x5c]
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x10047358
movzx eax, byte [ecx]
jmp 0x1004735e
xor eax, eax
mov dword [esp + 0x1c], ecx
lea ecx, [eax*8]
movd xmm1, edx
sub ecx, eax
shr edx, 0x1f
cvtdq2pd xmm1, xmm1
mov eax, dword [ecx*8 + 0x10f2ce48]
movss xmm2, dword [ecx*8 + 0x10f2ce38]
mov eax, dword [eax*8 + 0x10f2cdd8]
addsd xmm1, qword [edx*8 + 0x1122e340]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
cvtpd2ps xmm0, xmm0
divss xmm2, xmm0
cvtpd2ps xmm0, xmm1
mulss xmm0, xmm2
call fcn.10451080
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x100473d7
mov ecx, dword [esp + 0x1c]
movzx edx, byte [ecx]
jmp 0x100473d9
xor edx, edx
lea ecx, [edx*8]
sub ecx, edx
mov eax, dword [ecx*8 + 0x10f2ce48]
movss xmm2, dword [ecx*8 + 0x10f2ce3c]
mov eax, dword [eax*8 + 0x10f2cddc]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
mov eax, dword [esp + 0x24]
cvtpd2ps xmm0, xmm0
movd xmm1, eax
divss xmm2, xmm0
shr eax, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x1122e340]
cvtpd2ps xmm0, xmm1
mulss xmm0, xmm2
call fcn.10451080
mov ecx, dword [esi + 0x2b8]
mov edx, ebx
add edx, edx
mov dword [esp + 0x24], eax
cmp dword [esi + ebx*4 + 0x2f4], 0
lea eax, [esi + 0x254]
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], 0
mov eax, dword [ecx + edx*8 + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + edx*8 + 0xc]
mov dword [esp + 0x30], eax
jbe 0x10047646
mov ecx, dword [esp + 0x18]
lea eax, [ebx + ebx*4]
shl eax, 6
add eax, 0x374
add esi, eax
mov eax, dword [esp + 0x1c]
nop dword [eax]
cmp byte [esi + 0x14], 0
jne 0x1004762d
cmp byte [esi], 0
jne 0x1004762d
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm3, edx
addsd xmm0, qword [eax*8 + 0x1122e340]
mov eax, dword [esp + 0x24]
cvtdq2ps xmm3, xmm3
cvtpd2ps xmm1, xmm0
movd xmm0, eax
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
movd xmm6, ecx
addsd xmm0, qword [eax*8 + 0x1122e340]
mov eax, dword [esi + 0x20]
sub eax, edx
mov edx, dword [esi + 4]
divss xmm3, xmm1
movd xmm2, eax
mov eax, dword [esi + 0x24]
sub eax, ecx
movss dword [esp + 0x38], xmm3
cvtpd2ps xmm0, xmm0
mov ecx, dword [esi + 8]
movd xmm7, eax
mov eax, dword [esp + 0x2c]
cvtdq2ps xmm6, xmm6
cvtdq2ps xmm7, xmm7
divss xmm6, xmm0
divss xmm7, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
cvtdq2ps xmm2, xmm2
addsd xmm0, qword [eax*8 + 0x1122e340]
mov eax, dword [esp + 0x30]
divss xmm2, xmm1
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movss dword [esp + 0x48], xmm3
addsd xmm0, qword [eax*8 + 0x1122e340]
mov eax, dword [esi + 0xc]
sub eax, edx
movd xmm5, edx
cvtdq2ps xmm5, xmm5
movd xmm3, eax
cvtdq2ps xmm3, xmm3
mov eax, dword [esi + 0x10]
sub eax, ecx
movd xmm4, ecx
divss xmm3, xmm1
divss xmm5, xmm1
movss dword [esp + 0x34], xmm3
movaps xmm1, xmm3
cvtpd2ps xmm0, xmm0
movd xmm3, eax
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm3, xmm3
divss xmm4, xmm0
divss xmm3, xmm0
movss xmm0, dword [0x1122d240]
movss dword [esp + 0x50], xmm2
addss xmm2, dword [esp + 0x38]
movss dword [esp + 0x4c], xmm6
movss dword [esp + 0x54], xmm7
movss dword [esp + 0x5c], xmm5
movss dword [esp + 0x60], xmm4
comiss xmm0, xmm2
movss dword [esp + 0x64], xmm1
movss dword [esp + 0x34], xmm3
movss dword [esp + 0x68], xmm3
jb 0x10047625
addss xmm6, xmm7
comiss xmm0, xmm6
jb 0x10047625
addss xmm5, xmm1
comiss xmm0, xmm5
jb 0x10047625
addss xmm4, xmm3
comiss xmm0, xmm4
jb 0x10047625
movss xmm0, dword [edi + 0x14]
lea eax, [esp + 0x48]
push 1
push ecx
mov ecx, dword [esp + 0x4c]
movss dword [esp], xmm0
push dword [esp + 0x28]
push dword [ebp + 8]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.10045800
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
add esi, 0x28
mov dword [esp + 0x1c], eax
cmp eax, dword [ecx + ebx*4 + 0x2f4]
jb 0x10047490
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ebx, dword [ebp + 8]
add edi, 0x20
sub eax, 1
mov dword [esp + 0x14], eax
jne 0x100472e2
cmp byte [esi + 0x2c8], 0
jne 0x10047ac1
push 0x268
mov byte [esp + 0x17], 0
call fcn.10450898
mov edi, eax
add esp, 4
test edi, edi
je 0x10047ab0
push 0x268
push 0
push edi
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], 0
call fcn.10425c00
mov eax, dword [esi + 0x2c4]
add esp, 0xc
mov eax, dword [eax + 0x11cc]
and dword [esp + 0x4c], 0xfffffffe
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], 0x268
mov dword [esp + 0x50], edi
mov dword [edi + 0x10], 0x100006b
mov dword [edi], 0x4e564441
mov dword [edi + 4], 0x10002
mov dword [edi + 0xc], 0x4e564458
mov eax, dword [esp + 0x54]
mov dword [edi + 8], eax
mov dword [edi + 0x30], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x2c4]
mov dword [esp + 0x20], eax
mov ecx, dword [eax + 0x10b4]
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x10047a9e
mov ecx, dword [eax]
test ecx, ecx
je 0x10047a9e
mov edx, dword [ecx + 0xbe28]
test edx, edx
je 0x10047a9e
mov edx, dword [edx + 0x14]
test edx, edx
je 0x10047a9e
cmp dword [ecx + 0xd45c], 1
jne 0x10047a90
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
add eax, 0x1428
push eax
call esi
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x48]
push edx
mov ecx, dword [eax + 0x10b4]
mov eax, dword [eax]
mov eax, dword [eax + 0xbe28]
push dword [eax + 0x14]
call ecx
mov dword [esp + 0x44], eax
xorps xmm0, xmm0
lea eax, [esp + 0x38]
movlpd qword [esp + 0x38], xmm0
push eax
call esi
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
sub ecx, dword [edx + 0x1428]
sbb eax, dword [edx + 0x142c]
add dword [edx + 0x1420], ecx
adc dword [edx + 0x1424], eax
mov eax, dword [esp + 0x44]
jmp 0x10047a9a
cmp byte [edi + 8], 0
je 0x1004785b
movss xmm3, dword [edi - 8]
xorps xmm5, xmm5
comiss xmm3, xmm5
jb 0x10047646
movss xmm0, dword [0x1122d240]
comiss xmm0, xmm3
jbe 0x10047646
movss xmm2, dword [edi - 4]
comiss xmm2, xmm5
jb 0x10047646
comiss xmm0, xmm2
jbe 0x10047646
movss xmm4, dword [edi]
comiss xmm4, xmm5
jb 0x10047646
comiss xmm0, xmm4
jbe 0x10047646
movss xmm1, dword [edi + 4]
comiss xmm1, xmm5
jb 0x10047646
comiss xmm0, xmm1
jbe 0x10047646
subss xmm2, xmm3
movss dword [esp + 0x48], xmm3
subss xmm1, xmm4
movss dword [esp + 0x4c], xmm4
comiss xmm5, xmm2
movss dword [esp + 0x50], xmm2
movss dword [esp + 0x54], xmm1
ja 0x10047646
comiss xmm5, xmm1
jbe 0x10047a63
jmp 0x10047646
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20c]
mov dword [esp + 0x44], eax
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0x5c]
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x1004787b
movzx eax, byte [ecx]
jmp 0x10047881
xor eax, eax
mov dword [esp + 0x1c], ecx
lea ecx, [eax*8]
movd xmm1, edx
sub ecx, eax
shr edx, 0x1f
cvtdq2pd xmm1, xmm1
mov eax, dword [ecx*8 + 0x10f2ce48]
movss xmm2, dword [ecx*8 + 0x10f2ce38]
mov eax, dword [eax*8 + 0x10f2cdd8]
addsd xmm1, qword [edx*8 + 0x1122e340]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
cvtpd2ps xmm0, xmm0
divss xmm2, xmm0
cvtpd2ps xmm0, xmm1
mulss xmm0, xmm2
call fcn.10451080
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x44], eax
test ecx, ecx
je 0x100478fa
mov ecx, dword [esp + 0x1c]
movzx edx, byte [ecx]
jmp 0x100478fc
xor edx, edx
lea ecx, [edx*8]
sub ecx, edx
mov eax, dword [ecx*8 + 0x10f2ce48]
movss xmm2, dword [ecx*8 + 0x10f2ce3c]
mov eax, dword [eax*8 + 0x10f2cddc]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
mov eax, dword [esp + 0x44]
cvtpd2ps xmm0, xmm0
movd xmm1, eax
divss xmm2, xmm0
shr eax, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x1122e340]
cvtpd2ps xmm0, xmm1
mulss xmm0, xmm2
call fcn.10451080
mov ecx, dword [esi + 0x2b8]
add ebx, ebx
mov edx, eax
mov eax, dword [ecx + ebx*8 + 0xc]
mov ecx, dword [ecx + ebx*8 + 8]
mov dword [esp + 0x44], eax
mov eax, dword [edi - 8]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x1122e340]
cvtpd2ps xmm4, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
mov eax, dword [esp + 0x38]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
cvtpd2ps xmm6, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [edi]
addss xmm0, xmm3
comiss xmm6, xmm0
jb 0x10047646
mov eax, dword [esp + 0x44]
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
mov eax, dword [edi - 4]
cvtpd2ps xmm2, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1122e340]
cvtpd2ps xmm1, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, edx
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x1122e340]
cvtpd2ps xmm5, xmm0
movaps xmm0, xmm2
mulss xmm0, dword [edi + 4]
addss xmm0, xmm1
comiss xmm5, xmm0
jb 0x10047646
divss xmm3, xmm6
mov eax, dword [esp + 0x20]
divss xmm1, xmm5
divss xmm4, xmm6
divss xmm2, xmm5
movss dword [esp + 0x48], xmm3
movss dword [esp + 0x4c], xmm1
movss dword [esp + 0x50], xmm4
movss dword [esp + 0x54], xmm2
movss xmm0, dword [edi + 0x14]
mov ebx, dword [ebp + 8]
push 0
push ecx
movss dword [esp], xmm0
lea ecx, [esi + 0x254]
push eax
push ebx
lea eax, [esp + 0x58]
push eax
push 0
call fcn.10045800
mov eax, dword [esp + 0x14]
jmp 0x1004764d
lea eax, [esp + 0x48]
push eax
push edx
call dword [esp + 0x4c]
test eax, eax
jne 0x10047aa7
cmp dword [edi + 0x3c], 0
setne byte [esp + 0x13]
push edi
call fcn.10450877
add esp, 4
mov al, byte [esp + 0x13]
mov byte [esi + 0x2c8], 1
mov byte [esi + 0x2c9], al
cmp byte [esi + 0x2c9], 0
je 0x10047ae3
mov eax, dword [esi + 0x2c4]
push 0
push 0x23
push ebx
mov ecx, dword [eax + 0x11c0]
mov eax, dword [ecx]
call dword [eax + 0x148]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4