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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1d8
mov qword [rsp + 0x198], r9
mov qword [rsp + 0x28], rdx
mov rdi, rcx
cmp byte [r8 + 0x10], 2
mov qword [rsp + 0x48], rcx
jne 0x18008cb4d
cmp qword [rdi + 0x58], 0
je 0x18008cb4d
mov qword [rsp + 0x40], r8
mov rcx, qword [rdi + 0x60]
mov rdx, qword [rdi + 0x68]
mov rsi, qword [rsp + 0x28]
mov r8, rsi
call fcn.18008c630
mov rcx, qword [rdi + 0x40]
mov rdx, qword [rdi + 0x48]
mov r8, rax
shr r8, 0x39
movd xmm0, r8d
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
lea r8, [rcx - 0x48]
movzx r9d, byte [rsi + 1]
mov byte [rsp + 0x58], r9b
xor r9d, r9d
mov qword [rsp + 0x38], r9
pcmpeqd xmm1, xmm1
mov qword [rsp + 0x50], rcx
and rax, rdx
movdqu xmm2, xmmword [rcx + rax]
movdqa xmm3, xmm0
pcmpeqb xmm3, xmm2
pmovmskb edi, xmm3
test edi, edi
je 0x18008cb10
mov rcx, qword [rsp + 0x28]
movzx r11d, byte [rcx]
jmp 0x18008c986
test bl, bl
je 0x18008dfec
lea edi, [rsi - 1]
and edi, esi
test di, di
je 0x18008cb10
mov esi, edi
tzcnt edi, esi
add rdi, rax
and rdi, rdx
neg rdi
lea rdi, [rdi + rdi*8]
lea rdi, [r8 + rdi*8]
cmp r11d, 1
je 0x18008ca50
cmp r11d, 2
jne 0x18008dfec
movzx ebx, byte [rdi]
cmp bl, 2
jne 0x18008c970
mov rcx, qword [rsp + 0x28]
mov r15, qword [rcx + 8]
mov rbx, qword [r15 + 0x10]
mov r12, qword [rdi + 8]
cmp rbx, qword [r12 + 0x10]
jne 0x18008c978
mov r15, qword [r15 + 8]
mov r12, qword [r12 + 8]
mov r13, rbx
neg r13
mov rbp, 0xffffffffffffffff
nop word [rax + rax]
mov rcx, r13
add rcx, rbp
cmp rcx, 0xffffffffffffffff
je 0x18008ca80
movzx ecx, byte [r15 + rbp + 1]
movzx r10d, byte [r12 + rbp + 1]
lea r9d, [rcx - 0x41]
cmp r9b, 0x1a
setb r9b
shl r9b, 5
lea r14d, [r10 - 0x41]
cmp r14b, 0x1a
setb r14b
shl r14b, 5
or r9b, cl
or r14b, r10b
inc rbp
cmp r9b, r14b
je 0x18008c9f0
cmp rbp, rbx
jb 0x18008c978
jmp 0x18008ca80
movzx ebx, byte [rdi]
cmp bl, 1
jne 0x18008c970
movzx ebx, byte [rdi + 1]
cmp byte [rsp + 0x58], 0
je 0x18008ca70
test bl, bl
jne 0x18008ca80
jmp 0x18008c978
test bl, bl
jne 0x18008c978
nop dword [rax + rax]
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rcx + 0x20]
cmp rbx, qword [rdi + 0x20]
jne 0x18008c978
mov rcx, qword [rsp + 0x28]
mov r15, qword [rcx + 0x18]
mov rdi, qword [rdi + 0x18]
mov r12, rbx
neg r12
mov r13, 0xffffffffffffffff
nop dword [rax]
lea rcx, [r12 + r13]
cmp rcx, 0xffffffffffffffff
je 0x18008d156
movzx ecx, byte [r15 + r13 + 1]
movzx r9d, byte [rdi + r13 + 1]
lea r10d, [rcx - 0x41]
cmp r10b, 0x1a
setb r10b
shl r10b, 5
lea ebp, [r9 - 0x41]
cmp bpl, 0x1a
setb bpl
shl bpl, 5
or r10b, cl
or bpl, r9b
inc r13
cmp r10b, bpl
je 0x18008cab0
cmp r13, rbx
jb 0x18008c978
jmp 0x18008d156
mov r9, r8
pcmpeqb xmm2, xmm1
pmovmskb r11d, xmm2
test r11d, r11d
mov rdi, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
jne 0x18008cb4d
mov rcx, qword [rsp + 0x38]
add rax, rcx
add rax, 0x10
add rcx, 0x10
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x50]
mov r8, r9
jmp 0x18008c949
mov rax, qword [r8 + 0x30]
mov qword [rsp + 0x130], rax
movdqu xmm0, xmmword [r8]
movdqu xmm1, xmmword [r8 + 0x10]
movdqu xmm2, xmmword [r8 + 0x20]
movdqa xmmword [rsp + 0x120], xmm2
movdqa xmmword [rsp + 0x110], xmm1
movdqa xmmword [rsp + 0x100], xmm0
lea rcx, [rdi + 0x70]
mov qword [rsp + 0x180], rcx
mov rdx, qword [rsp + 0x28]
call fcn.18008bf90
test rax, rax
je 0x18008d197
mov r15, rax
mov rax, qword [rax + 0x18]
test rax, rax
je 0x18008d165
xor edi, edi
jmp 0x18008cc42
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], r14
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x110], al
mov eax, dword [rsp + 0x140]
mov ecx, dword [rsp + 0x143]
lea rdx, [rsp + 0x132]
mov dword [rdx - 0x1e], ecx
mov dword [rdx - 0x21], eax
mov qword [rsp + 0x118], rbp
mov qword [rsp + 0x120], rdi
mov qword [rsp + 0x128], rbx
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x130], al
mov byte [rsp + 0x131], r12b
movzx eax, word [rsp + 0x24]
mov word [rdx + 4], ax
mov eax, dword [rsp + 0x20]
mov dword [rdx], eax
xor edi, edi
mov rax, qword [r15 + 0x18]
test rax, rax
je 0x18008d165
mov rcx, qword [r15 + 0x10]
mov rdx, qword [r15]
mov r8, qword [r15 + 8]
lea r9, [rcx + 1]
cmp r9, r8
cmovb r8, rdi
neg r8
add r8, rcx
inc r8
mov qword [r15 + 0x10], r8
dec rax
mov qword [r15 + 0x18], rax
mov r13, qword [rdx + rcx*8]
movzx eax, byte [r13 + 0x80]
test al, al
je 0x18008cd20
mov al, 1
xchg byte [r13 + 0x80], al
mov al, 1
xchg byte [r13 + 0x60], al
test al, al
jne 0x18008ccb4
mov rax, qword [r13 + 0x50]
mov rcx, qword [r13 + 0x58]
mov qword [r13 + 0x50], 0
mov edx, 0
xchg byte [r13 + 0x60], dl
test rax, rax
je 0x18008ccb4
call qword [rax + 8]
lea rsi, [r13 + 0x68]
mov al, 1
xchg byte [r13 + 0x78], al
test al, al
je 0x18008cd00
mov esi, 0
jne 0x18008cd02
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov qword [rsi], 0
test rax, rax
je 0x18008ccdf
call qword [rax + 0x18]
xor eax, eax
xchg byte [rsi + 0x10], al
lock dec qword [r13]
jne 0x18008cc35
jmp 0x18008cd0d
je 0x18008ccc9
lock dec qword [r13]
jne 0x18008cc35
mov rcx, r13
call fcn.180085080
jmp 0x18008cc35
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x50], rbp
movzx r12d, byte [rsp + 0x131]
mov byte [rsp + 0x131], 2
cmp r12b, 2
je 0x18008dfec
mov r9, qword [rsp + 0x100]
mov r11, qword [rsp + 0x108]
movzx r10d, byte [rsp + 0x110]
mov rbp, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x128]
movzx esi, byte [rsp + 0x130]
cmp r10b, 2
jne 0x18008cdc8
mov byte [rsp + 0x178], sil
mov byte [rsp + 0x60], r10b
test rbp, rbp
je 0x18008ce2b
mov rcx, rbp
mov esi, r12d
mov r12, r9
mov r14, rbx
mov rbx, r11
call qword [rdi + 0x20]
mov r11, rbx
mov rbx, r14
mov r9, r12
mov r12d, esi
lock inc qword [rbx]
jg 0x18008ce37
jmp 0x18008dfec
lea rdx, [rsp + 0x132]
mov eax, dword [rdx - 0x21]
mov ecx, dword [rdx - 0x1e]
mov dword [rsp + 0x83], ecx
mov dword [rsp + 0x80], eax
mov eax, dword [rdx]
mov dword [rsp + 0x140], eax
movzx ecx, word [rdx + 4]
mov word [rsp + 0x144], cx
mov edx, dword [rsp + 0x80]
mov r8d, dword [rsp + 0x83]
mov dword [rsp + 0x1a0], edx
mov dword [rsp + 0x1a3], r8d
mov dword [rsp + 0xf8], eax
mov word [rsp + 0xfc], cx
jmp 0x18008ceb6
xor eax, eax
lock inc qword [rbx]
jle 0x18008dfec
lock inc qword [r9]
movzx r10d, byte [rsp + 0x60]
jle 0x18008dfec
lock inc qword [r11 + 0x1d0]
lock inc qword [r11]
movzx esi, byte [rsp + 0x178]
jle 0x18008dfec
lea r8, [rsp + 0x132]
movzx ecx, word [r8 + 4]
mov word [rsp + 0x144], cx
mov ecx, dword [r8]
mov dword [rsp + 0x140], ecx
mov qword [rsp + 0x118], rbp
mov qword [rsp + 0x120], rdi
mov qword [rsp + 0x128], rbx
mov byte [rsp + 0x130], sil
mov byte [rsp + 0x110], 2
mov byte [rsp + 0x131], r12b
mov rbp, rax
mov rdi, rdx
mov eax, dword [rsp + 0x1a0]
mov ecx, dword [rsp + 0x1a3]
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x83], ecx
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x30], eax
movzx eax, word [rsp + 0xfc]
mov word [rsp + 0x34], ax
movzx eax, byte [r13 + 0x80]
test al, al
jne 0x18008cf12
mov dl, 1
xchg byte [r13 + 0x48], dl
lea rax, [r13 + 0x10]
mov rcx, rax
test dl, dl
je 0x18008cf0c
mov ecx, 0
je 0x18008d03f
mov eax, dword [rsp + 0x80]
mov ecx, dword [rsp + 0x83]
mov dword [rsp + 0x143], ecx
mov dword [rsp + 0x140], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
movzx eax, word [rsp + 0x34]
mov word [rsp + 0x24], ax
mov byte [rsp + 0x38], sil
mov qword [rsp + 0x58], r9
mov r14, r11
mov byte [rsp + 0x40], r10b
mov al, 1
xchg byte [r13 + 0x80], al
mov al, 1
xchg byte [r13 + 0x60], al
test al, al
jne 0x18008cf86
mov rax, qword [r13 + 0x50]
mov rcx, qword [r13 + 0x58]
mov qword [r13 + 0x50], 0
mov edx, 0
xchg byte [r13 + 0x60], dl
test rax, rax
je 0x18008cf86
call qword [rax + 8]
lea rsi, [r13 + 0x68]
mov al, 1
xchg byte [r13 + 0x78], al
test al, al
je 0x18008d000
mov esi, 0
jne 0x18008d002
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov qword [rsi], 0
test rax, rax
je 0x18008cfb1
call qword [rax + 0x18]
xor eax, eax
xchg byte [rsi + 0x10], al
lock dec qword [r13]
je 0x18008d009
nop dword [rax]
movzx ecx, byte [rsp + 0x131]
cmp r12b, 2
mov qword [rsp + 0x68], rdi
jne 0x18008d024
mov rax, qword [r15 + 0x18]
cmp cl, 2
je 0x18008d160
test rax, rax
mov edi, 0
jne 0x18008cc42
jmp 0x18008d165
je 0x18008cf9b
lock dec qword [r13]
jne 0x18008cfc0
mov rcx, r13
call fcn.180085080
movzx ecx, byte [rsp + 0x131]
cmp r12b, 2
mov qword [rsp + 0x68], rdi
je 0x18008cfd3
cmp cl, 2
je 0x18008cbbb
lea rcx, [rsp + 0x100]
call fcn.1800850f0
jmp 0x18008cbbb
cmp byte [rcx + 0x31], 2
jne 0x18008dfec
mov qword [rcx], r9
mov qword [rcx + 8], r11
mov byte [rcx + 0x10], r10b
mov edx, dword [rsp + 0x80]
mov r8d, dword [rsp + 0x83]
mov dword [rcx + 0x11], edx
mov dword [rcx + 0x14], r8d
mov qword [rcx + 0x18], rbp
mov qword [rcx + 0x20], rdi
mov qword [rcx + 0x28], rbx
mov byte [rcx + 0x30], sil
mov byte [rcx + 0x31], r12b
mov edx, dword [rsp + 0x30]
mov dword [rcx + 0x32], edx
movzx edx, word [rsp + 0x34]
mov word [rcx + 0x36], dx
xor edx, edx
xchg byte [rcx + 0x38], dl
movzx ecx, byte [r13 + 0x80]
mov r12b, 2
test cl, cl
je 0x18008d0e7
mov cl, 1
xchg byte [r13 + 0x48], cl
test cl, cl
je 0x18008d0b1
mov eax, 0
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x78]
mov r14, qword [rsp + 0x70]
jne 0x18008cf52
movzx r12d, byte [rax + 0x31]
mov byte [rax + 0x31], 2
cmp r12b, 2
jne 0x18008d100
xor ecx, ecx
xchg byte [rax + 0x38], cl
mov r12b, 2
jmp 0x18008cf52
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x78]
mov r14, qword [rsp + 0x70]
jmp 0x18008cf52
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov r14, qword [rax + 8]
movzx ecx, byte [rax + 0x10]
mov byte [rsp + 0x40], cl
mov ecx, dword [rax + 0x14]
mov dword [rsp + 0x143], ecx
mov ecx, dword [rax + 0x11]
mov dword [rsp + 0x140], ecx
mov rbp, qword [rax + 0x18]
mov rdi, qword [rax + 0x20]
mov rbx, qword [rax + 0x28]
movzx ecx, byte [rax + 0x30]
mov byte [rsp + 0x38], cl
movzx ecx, word [rax + 0x36]
mov word [rsp + 0x24], cx
mov ecx, dword [rax + 0x32]
mov dword [rsp + 0x20], ecx
xor ecx, ecx
xchg byte [rax + 0x38], cl
jmp 0x18008cf52
mov rcx, qword [rsp + 0x40]
jmp 0x18008de48
test rax, rax
jne 0x18008d197
lea rcx, [rsp + 0x80]
mov rdx, qword [rsp + 0x180]
mov r8, qword [rsp + 0x28]
call fcn.18008c240
cmp qword [rsp + 0x80], 0
je 0x18008d197
lea rcx, [rsp + 0x80]
call fcn.180084e70
cmp byte [rsp + 0x131], 2
je 0x18008de4d
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x1d0], rax
movaps xmm0, xmmword [rsp + 0x100]
movdqa xmm1, xmmword [rsp + 0x110]
movdqa xmm2, xmmword [rsp + 0x120]
movdqa xmmword [rsp + 0x1c0], xmm2
movdqa xmmword [rsp + 0x1b0], xmm1
movaps xmmword [rsp + 0x1a0], xmm0
mov r8, qword [rsp + 0x28]
movzx eax, byte [r8]
test rax, rax
je 0x18008d20a
cmp eax, 1
mov rdi, qword [rsp + 0x48]
jne 0x18008d213
movzx ecx, byte [r8 + 1]
mov al, 1
jmp 0x18008d27c
xor eax, eax
mov rdi, qword [rsp + 0x48]
jmp 0x18008d27c
movzx eax, byte [0x1801fea30]
mov rcx, qword [0x1801fe9b8]
test rcx, rcx
jne 0x18008d23f
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x18008dff9
mov rcx, rax
mov qword [0x1801fe9b8], rax
mov r8d, 0x20
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x18008dff9
mov r14, rax
mov rsi, qword [rsp + 0x28]
mov rax, qword [rsi + 8]
lea rdx, [rax + 0x18]
mov r10, qword [rax]
mov r8, qword [rax + 8]
mov r9, qword [rax + 0x10]
mov rcx, r14
call qword [r10]
mov r8, rsi
mov al, 2
lea rdx, [rdi + 0x40]
mov qword [rsp + 0x178], rdx
mov byte [rsp + 0x80], al
mov byte [rsp + 0x81], cl
mov qword [rsp + 0x88], r14
lea rcx, [rsp + 0x90]
lea rdx, [r8 + 0x28]
mov rax, qword [r8 + 0x10]
mov r9, r8
mov r8, qword [r8 + 0x18]
mov r9, qword [r9 + 0x20]
call qword [rax]
lea rax, [rdi + 0x60]
mov qword [rsp + 0x190], rax
mov rcx, qword [rdi + 0x60]
mov rdx, qword [rdi + 0x68]
lea r8, [rsp + 0x80]
call fcn.18008c630
mov r8, qword [rdi + 0x40]
mov r10, qword [rdi + 0x48]
mov rcx, rax
shr rcx, 0x39
mov qword [rsp + 0x188], rcx
movd xmm0, ecx
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
lea rdx, [r8 - 0x48]
movzx ecx, byte [rsp + 0x80]
mov dword [rsp + 0x38], ecx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x50], rcx
movzx ecx, byte [rsp + 0x81]
mov byte [rsp + 0x70], cl
mov r11, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xa0]
mov qword [rsp + 0x78], rbx
neg rbx
xor ecx, ecx
mov qword [rsp + 0x68], rcx
pcmpeqd xmm1, xmm1
mov qword [rsp + 0x180], rax
mov rcx, rax
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x60], r8
and rcx, r10
movdqu xmm2, xmmword [r8 + rcx]
movdqa xmm3, xmm0
pcmpeqb xmm3, xmm2
pmovmskb eax, xmm3
test eax, eax
mov qword [rsp + 0x58], rcx
jne 0x18008d3dc
pcmpeqb xmm2, xmm1
pmovmskb eax, xmm2
test eax, eax
jne 0x18008d8d8
mov rax, qword [rsp + 0x68]
add rcx, rax
add rcx, 0x10
add rax, 0x10
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x60]
jmp 0x18008d366
mov eax, dword [rsp + 0x38]
cmp eax, 1
je 0x18008d490
test eax, eax
je 0x18008dfec
lea eax, [r12 - 1]
and eax, r12d
test ax, ax
mov r10, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
je 0x18008d384
mov r12d, eax
tzcnt eax, r12d
add rax, rcx
and rax, r10
neg rax
lea r15, [rax + rax*8]
lea rsi, [rdx + r15*8]
movzx eax, byte [rdx + r15*8]
cmp rax, 1
je 0x18008d3b0
cmp eax, 2
jne 0x18008dfec
mov eax, dword [rsp + 0x38]
cmp al, 2
jne 0x18008d3bd
mov rax, qword [rsi + 8]
mov rdi, qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
cmp rdi, qword [rcx + 0x10]
jne 0x18008d3c5
mov r13, qword [rax + 8]
mov rax, qword [rsp + 0x50]
mov r10, qword [rax + 8]
mov rax, rdi
neg rax
mov r9, 0xffffffffffffffff
nop
lea r14, [rax + r9]
cmp r14, 0xffffffffffffffff
je 0x18008d4b0
movzx r14d, byte [r13 + r9 + 1]
movzx ecx, byte [r10 + r9 + 1]
lea r8d, [r14 - 0x41]
cmp r8b, 0x1a
setb r8b
shl r8b, 5
lea ebp, [rcx - 0x41]
cmp bpl, 0x1a
setb bpl
shl bpl, 5
or r8b, r14b
or bpl, cl
inc r9
cmp r8b, bpl
je 0x18008d440
cmp r9, rdi
jb 0x18008d3c5
jmp 0x18008d4b0
cmp byte [rsi + 1], 0
je 0x18008d4a2
cmp byte [rsp + 0x70], 0
jne 0x18008d4b0
jmp 0x18008d3c5
cmp byte [rsp + 0x70], 0
jne 0x18008d3c5
nop dword [rax]
mov rax, qword [rsp + 0x78]
cmp qword [rsi + 0x20], rax
jne 0x18008d3c5
mov r9, qword [rsi + 0x18]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
lea rcx, [rbx + rax]
cmp rcx, 0xffffffffffffffff
je 0x18008d51f
movzx ecx, byte [r9 + rax + 1]
movzx r8d, byte [r11 + rax + 1]
lea r10d, [rcx - 0x41]
cmp r10b, 0x1a
setb r10b
shl r10b, 5
lea esi, [r8 - 0x41]
cmp sil, 0x1a
setb sil
shl sil, 5
or r10b, cl
or sil, r8b
inc rax
cmp r10b, sil
je 0x18008d4d0
cmp rax, qword [rsp + 0x78]
jb 0x18008d3c5
mov rax, qword [rsp + 0x60]
lea rsi, [rax + r15*8]
movdqu xmm0, xmmword [rsp + 0x80]
movdqu xmm1, xmmword [rsp + 0x90]
movdqu xmm2, xmmword [rsp + 0xa0]
movdqa xmmword [rsp + 0x160], xmm2
movdqa xmmword [rsp + 0x150], xmm1
movdqa xmmword [rsp + 0x140], xmm0
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmmword [rsp + 0xa0], xmm2
movdqa xmmword [rsp + 0x90], xmm1
mov qword [rsp + 0xb0], rsi
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0xb8], rax
movzx eax, byte [rsp + 0x80]
cmp al, 3
mov rdi, qword [rsp + 0x48]
je 0x18008d5f5
cmp al, 2
jb 0x18008d5d2
mov r14, qword [rsp + 0x88]
lea rcx, [r14 + 0x18]
mov rax, qword [r14]
mov rdx, qword [r14 + 8]
mov r8, qword [r14 + 0x10]
call qword [rax + 0x10]
mov rcx, qword [0x1801fe9b8]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
lea rcx, [rsp + 0xa8]
mov rax, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x98]
mov r8, qword [rsp + 0xa0]
call qword [rax + 0x10]
mov rax, qword [rdi + 0xa0]
cmp rax, qword [rsi - 8]
jbe 0x18008de40
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0xb0], rax
movdqa xmm0, xmmword [rsp + 0x1a0]
movdqa xmm1, xmmword [rsp + 0x1b0]
movdqa xmm2, xmmword [rsp + 0x1c0]
movdqa xmmword [rsp + 0xa0], xmm2
movdqa xmmword [rsp + 0x90], xmm1
movdqa xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x140], 0
lea rcx, [rsp + 0x140]
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18008dff0
mov r14, qword [rsp + 0x140]
mov rcx, qword [0x1801fe9d0]
test rcx, rcx
jne 0x18008d6bc
mov qword [rsp + 0x140], 0
lea rcx, [rsp + 0x140]
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18008dff0
mov rcx, qword [rsp + 0x140]
mov qword [0x1801fe9d0], rcx
test rcx, rcx
je 0x18008dfec
mov rax, r14
or rax, rcx
shr rax, 0x20
je 0x18008d6d2
mov rax, r14
xor edx, edx
div rcx
jmp 0x18008d6d9
mov eax, r14d
xor edx, edx
div ecx
imul r8, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x18008d6fd
xor edx, edx
div rcx
mov r14, rax
jmp 0x18008d704
xor edx, edx
div ecx
mov r14d, eax
add r14, r8
mov rax, r14
shr rax, 9
movabs rdi, 0x44b82fa09b5a53
mul rdi
mov r15, rdx
shr r15, 0xb
imul eax, r15d, 0x3b9aca00
sub r14d, eax
mov rdx, qword [rsi - 8]
cmp rdx, qword [rsi - 0x10]
jne 0x18008d743
lea rcx, [rsi - 0x18]
call fcn.18003a520
mov rdx, qword [rsi - 8]
mov rax, qword [rsi - 0x18]
lea rcx, [rdx + rdx*8]
mov r8, qword [rsp + 0xb0]
mov qword [rax + rcx*8 + 0x30], r8
movdqa xmm0, xmmword [rsp + 0x80]
movdqa xmm1, xmmword [rsp + 0x90]
movdqa xmm2, xmmword [rsp + 0xa0]
movdqu xmmword [rax + rcx*8 + 0x20], xmm2
movdqu xmmword [rax + rcx*8 + 0x10], xmm1
movdqu xmmword [rax + rcx*8], xmm0
mov qword [rax + rcx*8 + 0x38], r15
mov dword [rax + rcx*8 + 0x40], r14d
inc rdx
mov qword [rsi - 8], rdx
mov rbx, qword [rsp + 0x48]
cmp qword [rbx + 0xa8], 0
jne 0x18008de4d
mov esi, dword [rbx + 0xb8]
cmp esi, 0x3b9aca00
je 0x18008de4d
mov r12, qword [rbx + 0xb0]
movzx eax, byte [0x1801fea30]
mov rcx, qword [0x1801fe9b8]
test rcx, rcx
jne 0x18008d7ed
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x18008e00a
mov rcx, rax
mov qword [0x1801fe9b8], rax
mov r8d, 0x48
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x18008e00a
mov r14, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], 0
mov byte [rax + 0x20], 0
mov qword [rax + 0x28], 0
mov byte [rax + 0x38], 0
mov word [rax + 0x40], 0
lock inc qword [rax]
jle 0x18008dfec
mov qword [rbx + 0xa8], r14
test r12, r12
jne 0x18008d852
test esi, esi
je 0x18008dfec
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x80]
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18008dff0
mov r15, qword [rsp + 0x80]
mov rcx, qword [0x1801fe9d0]
test rcx, rcx
jne 0x18008d8c2
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x80]
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18008dff0
mov rcx, qword [rsp + 0x80]
mov qword [0x1801fe9d0], rcx
test rcx, rcx
je 0x18008dfec
mov rax, r15
or rax, rcx
shr rax, 0x20
je 0x18008d94b
mov rax, r15
xor edx, edx
div rcx
jmp 0x18008d952
mov rdi, qword [rsp + 0x48]
cmp qword [rdi + 0x50], 0
mov r8, qword [rsp + 0x60]
je 0x18008dfca
movups xmm0, xmmword [rsp + 0x80]
movdqu xmm1, xmmword [rsp + 0x90]
movdqu xmm2, xmmword [rsp + 0xa0]
movdqa xmmword [rsp + 0x160], xmm2
movdqa xmmword [rsp + 0x150], xmm1
movaps xmmword [rsp + 0x140], xmm0
mov rcx, qword [rsp + 0x180]
and rcx, r10
movdqu xmm0, xmmword [r8 + rcx]
pmovmskb eax, xmm0
test eax, eax
je 0x18008dd78
mov r9, qword [rsp + 0x188]
jmp 0x18008dd9d
mov eax, r15d
xor edx, edx
div ecx
imul r9, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x18008d976
xor edx, edx
div rcx
mov r8, rax
jmp 0x18008d97d
xor edx, edx
div ecx
mov r8d, eax
add r8, r9
mov rax, r8
shr rax, 9
mul rdi
shr rdx, 0xb
imul eax, edx, 0x3b9aca00
sub r8d, eax
lea rcx, [rsp + 0x80]
call fcn.18010c120
movzx eax, byte [0x1801fea30]
mov rcx, qword [0x1801fe9b8]
test rcx, rcx
jne 0x18008d9d0
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x18008e01b
mov rcx, rax
mov qword [0x1801fe9b8], rax
mov r8d, 0x70
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x18008e01b
mov r15, rax
movups xmm0, xmmword [rsp + 0xe0]
movups xmmword [rax + 0x60], xmm0
movups xmm0, xmmword [rsp + 0xd0]
movups xmmword [rax + 0x50], xmm0
movups xmm0, xmmword [rsp + 0xc0]
movups xmmword [rax + 0x40], xmm0
movdqu xmm0, xmmword [rsp + 0x80]
movdqu xmm1, xmmword [rsp + 0x90]
movdqu xmm2, xmmword [rsp + 0xa0]
movdqu xmm3, xmmword [rsp + 0xb0]
movdqu xmmword [rax + 0x30], xmm3
movdqu xmmword [rax + 0x20], xmm2
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
mov rax, qword [rsp + 0x198]
mov r13, qword [rax]
jmp 0x18008da54
pause
mov rax, qword [r13 + 8]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
je 0x18008da52
test rax, rax
js 0x18008dfec
lea rcx, [rax + 1]
lock cmpxchg qword [r13 + 8], rcx
jne 0x18008da60
mov eax, dword [rsp + 0x80]
mov ecx, dword [rsp + 0x83]
mov dword [rsp + 0x23], ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x48]
mov rbx, qword [rax]
test rbx, rbx
je 0x18008db34
mov rdi, qword [rax + 8]
mov rbp, qword [rdi + 0x10]
movzx eax, byte [0x1801fea30]
mov rcx, qword [0x1801fe9b8]
test rcx, rcx
jne 0x18008dad6
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x18008e02c
mov rcx, rax
mov qword [0x1801fe9b8], rax
mov r8d, 0x30
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x18008e02c
dec rbp
and rbp, 0xfffffffffffffff0
lea rcx, [rbx + rbp]
add rcx, 0x10
mov qword [rax], r12
mov dword [rax + 8], esi
mov qword [rax + 0x10], r15
mov byte [rax + 0x18], 0
mov edx, dword [rsp + 0x20]
mov r8d, dword [rsp + 0x23]
mov dword [rax + 0x19], edx
mov dword [rax + 0x1c], r8d
mov qword [rax + 0x20], r14
mov qword [rax + 0x28], r13
lea r8, fcn.18008e090
mov rdx, rax
call qword [rdi + 0x18]
jmp 0x18008de4d
mov eax, 1
lock xadd qword [0x1801fd070], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x140], r12
mov dword [rsp + 0x148], esi
mov qword [rsp + 0x150], r15
mov byte [rsp + 0x158], 0
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x23]
mov dword [rsp + 0x159], eax
mov dword [rsp + 0x15c], ecx
mov qword [rsp + 0x160], r14
mov qword [rsp + 0x168], r13
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x170], rdi
mov eax, dword [0x1801fea34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x110]
cmp eax, 1
je 0x18008dbed
test eax, eax
jne 0x18008e079
mov eax, dword [0x1801fea34]
mov rcx, qword gs:[0x58]
mov rbx, qword [rcx + rax*8]
lea rcx, [rbx + 0xc0]
lea rdx, [0x1801026d0]
call fcn.1800f56d0
mov byte [rbx + 0x110], 1
mov eax, dword [0x1801fea34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0xc0]
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x18008dfec
inc rax
mov ecx, dword [0x1801fea34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov qword [rcx + 0xc0], rax
mov rax, qword [rcx + 0xc8]
mov qword [rsp + 0x80], r12
mov dword [rsp + 0x88], esi
mov qword [rsp + 0x90], r15
mov byte [rsp + 0x98], 0
mov ecx, dword [rsp + 0x20]
mov edx, dword [rsp + 0x23]
mov dword [rsp + 0x99], ecx
mov dword [rsp + 0x9c], edx
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0xb0], rdi
cmp rax, 2
je 0x18008e03d
mov rbp, qword [rsp + 0x30]
test rax, rax
je 0x18008dead
mov eax, dword [0x1801fea34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rbx, qword [rax + 0xd0]
lock inc qword [rbx]
jle 0x18008dfec
movzx eax, byte [0x1801fea30]
mov ecx, 0x80
mov edx, 0x80
call fcn.180020bb0
test rax, rax
je 0x18008e068
mov rdi, rax
lea rcx, [rbx + 0x70]
mov qword [rax], 0xcc
mov qword [rax + 8], 0
lea rax, [0x1801c2a58]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 0
mov qword [rdi + 0x20], rbx
mov qword [rdi + 0x28], rbp
mov qword [rdi + 0x30], r12
mov dword [rdi + 0x38], esi
mov qword [rdi + 0x40], r15
mov byte [rdi + 0x48], 0
mov eax, dword [rsp + 0x20]
mov edx, dword [rsp + 0x23]
mov dword [rdi + 0x49], eax
mov dword [rdi + 0x4c], edx
mov qword [rdi + 0x50], r14
mov qword [rdi + 0x58], r13
pxor xmm0, xmm0
movdqa xmmword [rdi + 0x60], xmm0
mov qword [rdi + 0x70], 0
mov rdx, rdi
mov r8, rdi
call fcn.180083ae0
test rax, rax
je 0x18008df8c
add rbx, 0x10
mov rcx, rbx
mov rdx, rax
xor r8d, r8d
call fcn.180109ce0
jmp 0x18008df8c
mov edx, 0x10
mov r9, qword [rsp + 0x188]
add rcx, rdx
and rcx, r10
movdqu xmm0, xmmword [r8 + rcx]
pmovmskb eax, xmm0
add rdx, 0x10
test eax, eax
je 0x18008dd85
tzcnt eax, eax
add rax, rcx
and rax, r10
movzx edx, byte [r8 + rax]
test dl, dl
js 0x18008ddc2
movdqa xmm0, xmmword [r8]
pmovmskb eax, xmm0
tzcnt eax, eax
movzx edx, byte [r8 + rax]
lea rcx, [rax - 0x10]
and rcx, r10
mov byte [r8 + rax], r9b
mov byte [rcx + r8 + 0x10], r9b
neg rax
lea rax, [rax + rax*8]
lea rsi, [r8 + rax*8]
and dl, 1
movzx ecx, dl
sub qword [rdi + 0x50], rcx
movdqa xmm0, xmmword [rsp + 0x140]
movdqa xmm1, xmmword [rsp + 0x150]
movdqa xmm2, xmmword [rsp + 0x160]
movdqu xmmword [r8 + rax*8 - 0x28], xmm2
movdqu xmmword [r8 + rax*8 - 0x38], xmm1
movdqu xmmword [r8 + rax*8 - 0x48], xmm0
mov qword [r8 + rax*8 - 0x18], 8
pxor xmm0, xmm0
movdqu xmmword [r8 + rax*8 - 0x10], xmm0
inc qword [rdi + 0x58]
mov rax, qword [rdi + 0xa0]
cmp rax, qword [rsi - 8]
ja 0x18008d606
lea rcx, [rsp + 0x1a0]
call fcn.1800850f0
mov r8, qword [rsp + 0x28]
cmp byte [r8], 2
jb 0x18008de85
mov rdi, qword [r8 + 8]
lea rcx, [rdi + 0x18]
mov rax, qword [rdi]
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
call qword [rax + 0x10]
mov rcx, qword [0x1801fe9b8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov r8, qword [rsp + 0x28]
lea rcx, [r8 + 0x28]
mov rax, qword [r8 + 0x10]
mov rdx, qword [r8 + 0x18]
mov r8, qword [r8 + 0x20]
call qword [rax + 0x10]
nop
add rsp, 0x1d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [0x1801fea34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rbx, qword [rax + 0xd0]
lock inc qword [rbx]
jle 0x18008dfec
movzx eax, byte [0x1801fea30]
mov ecx, 0x80
mov edx, 0x80
call fcn.180020bb0
test rax, rax
je 0x18008e068
mov rdi, rax
mov qword [rax], 0xcc
mov qword [rax + 8], 0
lea rax, [0x1801c2a08]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 0
mov qword [rdi + 0x20], rbx
add rbx, 0x60
mov qword [rdi + 0x28], rbp
mov qword [rdi + 0x30], r12
mov dword [rdi + 0x38], esi
mov qword [rdi + 0x40], r15
mov byte [rdi + 0x48], 0
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x23]
mov dword [rdi + 0x49], eax
mov dword [rdi + 0x4c], ecx
mov qword [rdi + 0x50], r14
mov qword [rdi + 0x58], r13
pxor xmm0, xmm0
movdqa xmmword [rdi + 0x60], xmm0
mov qword [rdi + 0x70], 0
mov rcx, rbx
mov rdx, rdi
mov r8, rdi
call fcn.180083ae0
test rax, rax
je 0x18008df8c
mov ecx, dword [0x1801fea34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov rcx, qword [rcx + 0xd0]
mov rdx, rax
call fcn.180108d50
mov eax, dword [0x1801fea34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
dec qword [rax + 0xc0]
mov ecx, 0x84
mov eax, 0xcc
lock cmpxchg qword [rdi], rcx
je 0x18008de4d
mov rax, qword [rdi + 0x10]
mov rcx, rdi
call qword [rax + 0x20]
jmp 0x18008de4d
mov rcx, qword [rsp + 0x178]
mov rdx, qword [rsp + 0x190]
call fcn.18016dec0
mov r8, qword [rdi + 0x40]
mov r10, qword [rdi + 0x48]
jmp 0x18008d8ed
ud2
call sub.kernel32.dll_GetLastError
ud2
mov ecx, 8
mov edx, 0x20
call fcn.180169390
ud2
mov ecx, 8
mov edx, 0x48
call fcn.180169390
ud2
mov ecx, 8
mov edx, 0x70
call fcn.180169390
ud2
mov ecx, 8
mov edx, 0x30
call fcn.180169390
ud2
lea rcx, [rsp + 0x80]
call fcn.18008e090
mov eax, dword [0x1801fea34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
dec qword [rax + 0xc0]
ud2
mov ecx, 0x80
mov edx, 0x80
call fcn.180169390
ud2
lea rcx, [rsp + 0x140]
call fcn.18008e090
ud2