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

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x498]
sub rsp, 0x590
mov rax, qword [0x140101140]
xor rax, rsp
mov qword [rbp + 0x420], rax
cmp byte [0x140105ad5], 0
je 0x14001524c
cmp byte [0x140105ba0], 0
jne 0x14001524c
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
xor r13d, r13d
cmp dword [0x140105b48], r13d
mov r12d, r13d
mov byte [0x140105ba0], 1
jbe 0x140015235
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
lea rsi, [0x140000000]
mov qword [r11 + 0x18], rdi
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movsd xmm6, qword [0x1400bdf80]
movaps xmmword [r11 - 0x48], xmm7
movss xmm7, dword [0x1400bdf7c]
movaps xmmword [r11 - 0x58], xmm8
movss xmm8, dword [0x1400bdf8c]
movaps xmmword [r11 - 0x68], xmm9
movss xmm9, dword [0x1400bdf88]
mov rax, qword [0x140105ad8]
mov ecx, r12d
mov rbx, qword [rax + rcx*8]
mov r14, qword [rbx + 0x30]
cmp byte [r14], r13b
je 0x140014cf1
mov rax, qword [0x140105b70]
mov ecx, dword [r14 + 0x40]
test rax, rax
je 0x140014189
lea rdx, [rbp - 8]
call rax
movzx ecx, word [rbp - 4]
mov word [rbp - 0x14], cx
movzx ecx, word [rbp]
mov word [rbp - 0x10], cx
movzx ecx, word [rbp + 2]
mov word [rbp - 0xe], cx
movzx ecx, word [rbp + 4]
mov word [rbp - 0xc], cx
movzx ecx, word [rbp + 6]
mov word [rbp - 0xa], cx
movzx ecx, byte [rbp - 2]
mov byte [rbp - 0x12], cl
movzx ecx, byte [rbp - 1]
mov byte [rbp - 0x11], cl
jmp 0x140014193
lea rdx, [rbp - 0x18]
call qword [0x140105b78]
test eax, eax
jne 0x140014cd5
cmp qword [0x140105b90], r13
jne 0x1400141b1
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbx + 0x28]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rsp + 0x38]
movzx eax, byte [rbp - 0x14]
and al, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
divsd xmm2, xmm0
cmp al, byte [rcx]
je 0x140014219
mov byte [rcx], al
test al, al
je 0x1400141ff
mov rax, qword [0x140105a88]
test rax, rax
je 0x140014219
mov r9, qword [0x140105ab0]
jmp 0x140014212
mov rax, qword [0x140105a90]
test rax, rax
je 0x140014219
mov r9, qword [0x140105ab8]
xor edx, edx
mov rcx, rbx
call rax
cmp qword [0x140105b90], r13
jne 0x14001422f
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, byte [rbp - 0x14]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rsp + 0x40]
mov rcx, qword [rbx + 0x28]
shr al, 1
and al, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
divsd xmm2, xmm0
cmp al, byte [rcx + 1]
je 0x14001429e
mov byte [rcx + 1], al
test al, al
je 0x140014281
mov rax, qword [0x140105a88]
test rax, rax
je 0x14001429e
mov r9, qword [0x140105ab0]
jmp 0x140014294
mov rax, qword [0x140105a90]
test rax, rax
je 0x14001429e
mov r9, qword [0x140105ab8]
mov edx, 1
mov rcx, rbx
call rax
cmp qword [0x140105b90], r13
jne 0x1400142b4
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, byte [rbp - 0x14]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rsp + 0x48]
mov rcx, qword [rbx + 0x28]
shr al, 2
and al, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
divsd xmm2, xmm0
cmp al, byte [rcx + 2]
je 0x140014324
mov byte [rcx + 2], al
test al, al
je 0x140014307
mov rax, qword [0x140105a88]
test rax, rax
je 0x140014324
mov r9, qword [0x140105ab0]
jmp 0x14001431a
mov rax, qword [0x140105a90]
test rax, rax
je 0x140014324
mov r9, qword [0x140105ab8]
mov edx, 2
mov rcx, rbx
call rax
cmp qword [0x140105b90], r13
jne 0x14001433a
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, byte [rbp - 0x14]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rsp + 0x50]
mov rcx, qword [rbx + 0x28]
shr al, 3
and al, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
divsd xmm2, xmm0
cmp al, byte [rcx + 3]
je 0x1400143aa
mov byte [rcx + 3], al
test al, al
je 0x14001438d
mov rax, qword [0x140105a88]
test rax, rax
je 0x1400143aa
mov r9, qword [0x140105ab0]
jmp 0x1400143a0
mov rax, qword [0x140105a90]
test rax, rax
je 0x1400143aa
mov r9, qword [0x140105ab8]
mov edx, 3
mov rcx, rbx
call rax
cmp qword [0x140105b90], r13
jne 0x1400143c0
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, byte [rbp - 0x14]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rsp + 0x58]
mov rcx, qword [rbx + 0x28]
shr al, 4
and al, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
divsd xmm2, xmm0
cmp al, byte [rcx + 4]
je 0x140014430
mov byte [rcx + 4], al
test al, al
je 0x140014413
mov rax, qword [0x140105a88]
test rax, rax
je 0x140014430
mov r9, qword [0x140105ab0]
jmp 0x140014426
mov rax, qword [0x140105a90]
test rax, rax
je 0x140014430
mov r9, qword [0x140105ab8]
mov edx, 4
mov rcx, rbx
call rax
cmp qword [0x140105b90], r13
jne 0x140014446
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, byte [rbp - 0x14]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rsp + 0x60]
mov rcx, qword [rbx + 0x28]
shr al, 5
and al, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
divsd xmm2, xmm0
cmp al, byte [rcx + 5]
je 0x1400144b6
mov byte [rcx + 5], al
test al, al
je 0x140014499
mov rax, qword [0x140105a88]
test rax, rax
je 0x1400144b6
mov r9, qword [0x140105ab0]
jmp 0x1400144ac
mov rax, qword [0x140105a90]
test rax, rax
je 0x1400144b6
mov r9, qword [0x140105ab8]
mov edx, 5
mov rcx, rbx
call rax
cmp qword [0x140105b90], r13
jne 0x1400144cc
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, byte [rbp - 0x14]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rsp + 0x68]
mov rcx, qword [rbx + 0x28]
shr al, 6
and al, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
divsd xmm2, xmm0
cmp al, byte [rcx + 6]
je 0x14001453c
mov byte [rcx + 6], al
test al, al
je 0x14001451f
mov rax, qword [0x140105a88]
test rax, rax
je 0x14001453c
mov r9, qword [0x140105ab0]
jmp 0x140014532
mov rax, qword [0x140105a90]
test rax, rax
je 0x14001453c
mov r9, qword [0x140105ab8]
mov edx, 6
mov rcx, rbx
call rax
cmp qword [0x140105b90], r13
jne 0x140014552
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, byte [rbp - 0x14]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rsp + 0x70]
mov rcx, qword [rbx + 0x28]
shr al, 7
and al, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
divsd xmm2, xmm0
cmp al, byte [rcx + 7]
je 0x1400145c2
mov byte [rcx + 7], al
test al, al
je 0x1400145a5
mov rax, qword [0x140105a88]
test rax, rax
je 0x1400145c2
mov r9, qword [0x140105ab0]
jmp 0x1400145b8
mov rax, qword [0x140105a90]
test rax, rax
je 0x1400145c2
mov r9, qword [0x140105ab8]
mov edx, 7
mov rcx, rbx
call rax
cmp qword [0x140105b90], r13
jne 0x1400145d8
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, word [rbp - 0x14]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rsp + 0x78]
mov rcx, qword [rbx + 0x28]
shr ax, 8
and al, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
divsd xmm2, xmm0
cmp al, byte [rcx + 8]
je 0x140014649
mov byte [rcx + 8], al
test al, al
je 0x14001462c
mov rax, qword [0x140105a88]
test rax, rax
je 0x140014649
mov r9, qword [0x140105ab0]
jmp 0x14001463f
mov rax, qword [0x140105a90]
test rax, rax
je 0x140014649
mov r9, qword [0x140105ab8]
mov edx, 8
mov rcx, rbx
call rax
cmp qword [0x140105b90], r13
jne 0x14001465f
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, word [rbp - 0x14]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rbp - 0x80]
mov rcx, qword [rbx + 0x28]
shr ax, 9
and al, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
divsd xmm2, xmm0
cmp al, byte [rcx + 9]
je 0x1400146ce
mov byte [rcx + 9], al
test al, al
je 0x1400146b1
mov rax, qword [0x140105a88]
test rax, rax
je 0x1400146ce
mov r9, qword [0x140105ab0]
jmp 0x1400146c4
mov rax, qword [0x140105a90]
test rax, rax
je 0x1400146ce
mov r9, qword [0x140105ab8]
mov edx, 9
mov rcx, rbx
call rax
cmp qword [0x140105b90], r13
jne 0x1400146e4
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, word [rbp - 0x14]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rbp - 0x78]
mov rcx, qword [rbx + 0x28]
shr ax, 0xc
and al, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
divsd xmm2, xmm0
cmp al, byte [rcx + 0xa]
je 0x140014753
mov byte [rcx + 0xa], al
test al, al
je 0x140014736
mov rax, qword [0x140105a88]
test rax, rax
je 0x140014753
mov r9, qword [0x140105ab0]
jmp 0x140014749
mov rax, qword [0x140105a90]
test rax, rax
je 0x140014753
mov r9, qword [0x140105ab8]
mov edx, 0xa
mov rcx, rbx
call rax
cmp qword [0x140105b90], r13
jne 0x140014769
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, word [rbp - 0x14]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rbp - 0x70]
mov rcx, qword [rbx + 0x28]
shr ax, 0xd
and al, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
divsd xmm2, xmm0
cmp al, byte [rcx + 0xb]
je 0x1400147d8
mov byte [rcx + 0xb], al
test al, al
je 0x1400147bb
mov rax, qword [0x140105a88]
test rax, rax
je 0x1400147d8
mov r9, qword [0x140105ab0]
jmp 0x1400147ce
mov rax, qword [0x140105a90]
test rax, rax
je 0x1400147d8
mov r9, qword [0x140105ab8]
mov edx, 0xb
mov rcx, rbx
call rax
cmp qword [0x140105b90], r13
jne 0x1400147ee
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, word [rbp - 0x14]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rbp - 0x68]
mov rcx, qword [rbx + 0x28]
shr ax, 0xe
and al, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
divsd xmm2, xmm0
cmp al, byte [rcx + 0xc]
je 0x14001485d
mov byte [rcx + 0xc], al
test al, al
je 0x140014840
mov rax, qword [0x140105a88]
test rax, rax
je 0x14001485d
mov r9, qword [0x140105ab0]
jmp 0x140014853
mov rax, qword [0x140105a90]
test rax, rax
je 0x14001485d
mov r9, qword [0x140105ab8]
mov edx, 0xc
mov rcx, rbx
call rax
cmp qword [0x140105b90], r13
jne 0x140014873
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, word [rbp - 0x14]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rbp - 0x60]
mov rcx, qword [rbx + 0x28]
shr ax, 0xf
and al, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
divsd xmm2, xmm0
cmp al, byte [rcx + 0xd]
je 0x1400148e2
mov byte [rcx + 0xd], al
test al, al
je 0x1400148c5
mov rax, qword [0x140105a88]
test rax, rax
je 0x1400148e2
mov r9, qword [0x140105ab0]
jmp 0x1400148d8
mov rax, qword [0x140105a90]
test rax, rax
je 0x1400148e2
mov r9, qword [0x140105ab8]
mov edx, 0xd
mov rcx, rbx
call rax
cmp qword [0x140105b90], r13
jne 0x1400148f8
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, word [rbp - 0x14]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rbp - 0x58]
mov rcx, qword [rbx + 0x28]
shr ax, 0xa
and al, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
divsd xmm2, xmm0
cmp al, byte [rcx + 0xe]
je 0x140014967
mov byte [rcx + 0xe], al
test al, al
je 0x14001494a
mov rax, qword [0x140105a88]
test rax, rax
je 0x140014967
mov r9, qword [0x140105ab0]
jmp 0x14001495d
mov rax, qword [0x140105a90]
test rax, rax
je 0x140014967
mov r9, qword [0x140105ab8]
mov edx, 0xe
mov rcx, rbx
call rax
cmp qword [0x140105b90], r13
jne 0x14001497d
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movsx eax, word [rbp - 0x10]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rbp - 0x50]
add eax, 0x8000
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
movd xmm2, eax
mov rax, qword [rbx + 0x20]
cvtdq2ps xmm2, xmm2
movss xmm3, dword [rax]
divss xmm2, xmm8
divsd xmm1, xmm0
addss xmm2, xmm2
subss xmm2, xmm7
ucomiss xmm2, xmm3
movss dword [rax], xmm2
jp 0x1400149d0
je 0x1400149f6
mov r8, qword [0x140105a98]
test r8, r8
je 0x1400149f6
mov rax, qword [0x140105ac0]
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, rbx
movsd qword [rsp + 0x20], xmm1
call r8
cmp qword [0x140105b90], r13
jne 0x140014a0c
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movsx eax, word [rbp - 0xe]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rbp - 0x48]
add eax, 0x8000
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
movd xmm2, eax
mov rax, qword [rbx + 0x20]
cvtdq2ps xmm2, xmm2
movss xmm3, dword [rax + 4]
divss xmm2, xmm8
divsd xmm1, xmm0
addss xmm2, xmm2
subss xmm2, xmm7
ucomiss xmm2, xmm3
movss dword [rax + 4], xmm2
jp 0x140014a61
je 0x140014a8a
mov r8, qword [0x140105a98]
test r8, r8
je 0x140014a8a
mov rax, qword [0x140105ac0]
mov edx, 1
mov qword [rsp + 0x28], rax
mov rcx, rbx
movsd qword [rsp + 0x20], xmm1
call r8
cmp qword [0x140105b90], r13
jne 0x140014aa0
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movsx eax, word [rbp - 0xc]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rbp - 0x40]
add eax, 0x8000
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
movd xmm2, eax
mov rax, qword [rbx + 0x20]
cvtdq2ps xmm2, xmm2
movss xmm3, dword [rax + 8]
divss xmm2, xmm8
divsd xmm1, xmm0
addss xmm2, xmm2
subss xmm2, xmm7
ucomiss xmm2, xmm3
movss dword [rax + 8], xmm2
jp 0x140014af5
je 0x140014b1e
mov r8, qword [0x140105a98]
test r8, r8
je 0x140014b1e
mov rax, qword [0x140105ac0]
mov edx, 2
mov qword [rsp + 0x28], rax
mov rcx, rbx
movsd qword [rsp + 0x20], xmm1
call r8
cmp qword [0x140105b90], r13
jne 0x140014b34
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movsx eax, word [rbp - 0xa]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rbp - 0x38]
add eax, 0x8000
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x140105b90]
movd xmm2, eax
mov rax, qword [rbx + 0x20]
cvtdq2ps xmm2, xmm2
movss xmm3, dword [rax + 0xc]
divss xmm2, xmm8
divsd xmm1, xmm0
addss xmm2, xmm2
subss xmm2, xmm7
ucomiss xmm2, xmm3
movss dword [rax + 0xc], xmm2
jp 0x140014b89
je 0x140014bb2
mov r8, qword [0x140105a98]
test r8, r8
je 0x140014bb2
mov rax, qword [0x140105ac0]
mov edx, 3
mov qword [rsp + 0x28], rax
mov rcx, rbx
movsd qword [rsp + 0x20], xmm1
call r8
cmp qword [0x140105b90], r13
jne 0x140014bc8
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, byte [rbp - 0x12]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rbp - 0x30]
movd xmm2, eax
xorps xmm0, xmm0
mov rax, qword [rbx + 0x20]
cvtsi2sd xmm0, qword [0x140105b90]
movss xmm3, dword [rax + 0x10]
cvtdq2ps xmm2, xmm2
divsd xmm1, xmm0
divss xmm2, xmm9
subss xmm2, xmm7
ucomiss xmm2, xmm3
movss dword [rax + 0x10], xmm2
jp 0x140014c14
je 0x140014c3d
mov r8, qword [0x140105a98]
test r8, r8
je 0x140014c3d
mov rax, qword [0x140105ac0]
mov edx, 4
mov qword [rsp + 0x28], rax
mov rcx, rbx
movsd qword [rsp + 0x20], xmm1
call r8
cmp qword [0x140105b90], r13
jne 0x140014c53
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movzx eax, byte [rbp - 0x11]
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rbp - 0x28]
movd xmm2, eax
xorps xmm0, xmm0
mov rax, qword [rbx + 0x20]
cvtsi2sd xmm0, qword [0x140105b90]
movss xmm3, dword [rax + 0x14]
cvtdq2ps xmm2, xmm2
divsd xmm1, xmm0
divss xmm2, xmm9
subss xmm2, xmm7
ucomiss xmm2, xmm3
movss dword [rax + 0x14], xmm2
jp 0x140014ca3
je 0x1400151db
mov r8, qword [0x140105a98]
test r8, r8
je 0x1400151db
mov rax, qword [0x140105ac0]
mov edx, 5
mov qword [rsp + 0x28], rax
mov rcx, rbx
movsd qword [rsp + 0x20], xmm1
call r8
jmp 0x1400151db
mov eax, dword [r14 + 0x40]
mov ecx, r12d
mov qword [rsi + rax*8 + 0x105b50], r13
call fcn.140015df0
dec r12d
jmp 0x1400151db
mov rcx, qword [r14 + 0x18]
mov rax, qword [rcx]
call qword [rax + 0xc8]
cmp eax, 0x8007001e
je 0x140014d0c
cmp eax, 0x8007000c
jne 0x140014d3f
mov ecx, 1
call fcn.14008b44c
mov rcx, rax
lea rdx, str.Acquire_DirectInput_device_for_id__d..._n
mov r8d, r12d
call fcn.140015be0
mov rcx, qword [r14 + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [r14 + 0x18]
mov rax, qword [rcx]
call qword [rax + 0xc8]
mov rcx, qword [r14 + 0x18]
cmp byte [r14 + 0x20], r13b
je 0x140014f82
mov dword [rsp + 0x30], 0x20
lea r9, [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rbp + 0x120]
mov edx, 0x18
mov dword [rsp + 0x20], r13d
call qword [rax + 0x50]
cmp eax, 0x8007001e
je 0x140014d7f
cmp eax, 0x8007000c
jne 0x140014dc5
mov ecx, 1
call fcn.14008b44c
mov rcx, rax
lea rdx, str.Acquire_DirectInput_device_for_id__d..._n
mov r8d, r12d
call fcn.140015be0
mov rcx, qword [r14 + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [r14 + 0x18]
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x120]
mov dword [rsp + 0x20], r13d
mov edx, 0x18
mov rax, qword [rcx]
call qword [rax + 0x50]
test eax, eax
jns 0x140014dd9
mov ecx, r12d
call fcn.140015df0
dec r12d
jmp 0x1400151db
mov r15d, r13d
cmp dword [rsp + 0x30], r13d
jbe 0x1400151db
nop word [rax + rax]
mov edi, r13d
cmp dword [rbx + 0x1c], r13d
jbe 0x140014e8d
mov eax, r15d
lea rsi, [rax + rax*2]
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r14 + 0x38]
mov edx, edi
mov ecx, dword [rax + rdx*4]
cmp dword [rbp + rsi*8 + 0x120], ecx
jne 0x140014e86
mov eax, dword [rbp + rsi*8 + 0x128]
xorps xmm2, xmm2
mov ecx, dword [rbp + rsi*8 + 0x124]
test ecx, ecx
mov r8, qword [rbx + 0x28]
cvtsi2sd xmm2, rax
setne al
divsd xmm2, xmm6
cmp al, byte [r8 + rdx]
je 0x140014e86
mov byte [r8 + rdx], al
test ecx, ecx
je 0x140014e6c
mov rax, qword [0x140105a88]
test rax, rax
je 0x140014e68
mov r9, qword [0x140105ab0]
jmp 0x140014e7f
test ecx, ecx
jne 0x140014e86
mov rax, qword [0x140105a90]
test rax, rax
je 0x140014e86
mov r9, qword [0x140105ab8]
mov edx, edi
mov rcx, rbx
call rax
inc edi
cmp edi, dword [rbx + 0x1c]
jb 0x140014e10
mov edi, r13d
cmp dword [rbx + 0x18], r13d
jbe 0x140014f68
mov eax, r15d
lea rsi, [rax + rax*2]
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [r14 + 0x30]
mov ecx, edi
mov eax, dword [rdx + rcx*8]
cmp dword [rbp + rsi*8 + 0x120], eax
jne 0x140014f5d
mov eax, dword [rbp + rsi*8 + 0x128]
cmp byte [rdx + rcx*8 + 4], r13b
je 0x140014ef6
mov r8d, dword [rbp + rsi*8 + 0x124]
xorps xmm3, xmm3
cvtsi2sd xmm3, rax
mov edx, edi
mov rcx, rbx
divsd xmm3, xmm6
call fcn.140015ef0
inc edi
jmp 0x140014f5d
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mov eax, dword [rbp + rsi*8 + 0x124]
add eax, 0x8000
movd xmm2, eax
mov rax, qword [rbx + 0x20]
cvtdq2ps xmm2, xmm2
movss xmm3, dword [rax + rcx*4]
divss xmm2, xmm8
divsd xmm0, xmm6
addss xmm2, xmm2
subss xmm2, xmm7
ucomiss xmm2, xmm3
movss dword [rax + rcx*4], xmm2
jp 0x140014f37
je 0x140014f5d
mov r8, qword [0x140105a98]
test r8, r8
je 0x140014f5d
mov rax, qword [0x140105ac0]
mov edx, edi
mov qword [rsp + 0x28], rax
mov rcx, rbx
movsd qword [rsp + 0x20], xmm0
call r8
inc edi
cmp edi, dword [rbx + 0x18]
jb 0x140014eb0
inc r15d
cmp r15d, dword [rsp + 0x30]
jb 0x140014df0
lea rsi, [0x140000000]
jmp 0x1400151db
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
mov edx, 0x110
call qword [rax + 0x48]
cmp eax, 0x8007001e
je 0x140014f9f
cmp eax, 0x8007000c
jne 0x140014fd8
mov ecx, 1
call fcn.14008b44c
mov rcx, rax
lea rdx, str.Acquire_DirectInput_device_for_id__d..._n
mov r8d, r12d
call fcn.140015be0
mov rcx, qword [r14 + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [r14 + 0x18]
lea r8, [rbp + 0x10]
mov edx, 0x110
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
jns 0x140014fec
mov ecx, r12d
call fcn.140015df0
dec r12d
jmp 0x1400151db
mov edi, r13d
cmp dword [rbx + 0x1c], r13d
jbe 0x140015095
nop dword [rax]
cmp qword [0x140105b90], r13
jne 0x140015016
lea rcx, [0x140105b90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [rbx + 0x28]
xorps xmm2, xmm2
cvtsi2sd xmm2, qword [rbp - 0x20]
mov eax, edi
xorps xmm0, xmm0
movzx ecx, byte [rbp + rax + 0x40]
cvtsi2sd xmm0, qword [0x140105b90]
test cl, cl
setne dl
divsd xmm2, xmm0
cmp dl, byte [rax + r8]
je 0x14001508a
mov byte [rax + r8], dl
test cl, cl
je 0x140015070
mov rax, qword [0x140105a88]
test rax, rax
je 0x14001506c
mov r9, qword [0x140105ab0]
jmp 0x140015083
test cl, cl
jne 0x14001508a
mov rax, qword [0x140105a90]
test rax, rax
je 0x14001508a
mov r9, qword [0x140105ab8]
mov edx, edi
mov rcx, rbx
call rax
inc edi
cmp edi, dword [rbx + 0x1c]
jb 0x140015000
mov edi, r13d
cmp dword [rbx + 0x18], r13d
jbe 0x1400151db
mov rax, qword [r14 + 0x30]
mov ecx, edi
mov edx, dword [rax + rcx*8]
cmp edx, 0x2c
ja case.0x1400150c6.12
movzx eax, byte [rsi + rdx + 0x15298]
mov ecx, dword [rsi + rax*4 + 0x15264]
add rcx, rsi
jmp rcx
call fcn.1400154b0
mov r8d, dword [rbp + 0x10]
movaps xmm3, xmm0
mov edx, edi
mov rcx, rbx
call fcn.140015e80
jmp case.0x1400150c6.12
call fcn.1400154b0
mov r8d, dword [rbp + 0x14]
movaps xmm3, xmm0
mov edx, edi
mov rcx, rbx
call fcn.140015e80
jmp case.0x1400150c6.12
call fcn.1400154b0
mov r8d, dword [rbp + 0x18]
movaps xmm3, xmm0
mov edx, edi
mov rcx, rbx
call fcn.140015e80
jmp case.0x1400150c6.12
call fcn.1400154b0
mov r8d, dword [rbp + 0x1c]
movaps xmm3, xmm0
mov edx, edi
mov rcx, rbx
call fcn.140015e80
jmp case.0x1400150c6.12
call fcn.1400154b0
mov r8d, dword [rbp + 0x20]
movaps xmm3, xmm0
mov edx, edi
mov rcx, rbx
call fcn.140015e80
jmp case.0x1400150c6.12
call fcn.1400154b0
mov r8d, dword [rbp + 0x24]
movaps xmm3, xmm0
mov edx, edi
mov rcx, rbx
call fcn.140015e80
jmp case.0x1400150c6.12
call fcn.1400154b0
mov r8d, dword [rbp + 0x28]
movaps xmm3, xmm0
mov edx, edi
mov rcx, rbx
call fcn.140015e80
jmp case.0x1400150c6.12
call fcn.1400154b0
mov r8d, dword [rbp + 0x2c]
movaps xmm3, xmm0
mov edx, edi
mov rcx, rbx
call fcn.140015e80
jmp case.0x1400150c6.12
call fcn.1400154b0
mov r8d, dword [rbp + 0x30]
jmp 0x1400151c1
call fcn.1400154b0
mov r8d, dword [rbp + 0x34]
jmp 0x1400151c1
call fcn.1400154b0
mov r8d, dword [rbp + 0x38]
jmp 0x1400151c1
call fcn.1400154b0
mov r8d, dword [rbp + 0x3c]
movaps xmm3, xmm0
mov edx, edi
mov rcx, rbx
call fcn.140015ef0
inc edi
inc edi
cmp edi, dword [rbx + 0x18]
jb 0x1400150a2
inc r12d
cmp r12d, dword [0x140105b48]
jb 0x140014120
movaps xmm9, xmmword [rsp + 0x530]
movaps xmm8, xmmword [rsp + 0x540]
movaps xmm7, xmmword [rsp + 0x550]
movaps xmm6, xmmword [rsp + 0x560]
mov r15, qword [rsp + 0x570]
mov r14, qword [rsp + 0x578]
mov rdi, qword [rsp + 0x5b0]
mov rsi, qword [rsp + 0x5a8]
mov rbx, qword [rsp + 0x5a0]
mov r12, qword [rsp + 0x588]
mov byte [0x140105ba0], r13b
mov r13, qword [rsp + 0x580]
mov rcx, qword [rbp + 0x420]
xor rcx, rsp
call fcn.140062030
add rsp, 0x590
pop rbp
ret