Function at 0x140016070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x188
mov r14, rdx
mov rax, qword [0x140231040]
xor rax, rsp
mov qword [rsp + 0x180], rax
cmp qword [rdx + 0x78], 0
je 0x140016a72
mov rsi, r8
mov rdx, rcx
lea rbx, [rcx + 0x18]
mov rcx, rbx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140016a17
mov qword [rsp + 0x78], rbx
mov rax, qword [r14 + 0x28]
mov rcx, qword [r14 + 0x20]
xor edx, edx
cmp rax, rcx
setns dl
movabs r11, 0x7fffffffffffffff
add rdx, r11
sub rax, rcx
cmovo rax, rdx
mov ecx, dword [r14 + 0x38]
xor r8d, r8d
cmp ecx, 2
mov edx, ecx
cmove edx, r8d
cmp rax, qword [rdi + 0x50]
cmovl edx, ecx
mov dword [r14 + 0x38], edx
mov rax, qword [rdi + 0x38]
mov rcx, r11
cmp rax, qword [rdi + 0x40]
mov r10, rdi
je 0x14001611d
mov r8d, dword [rax + 0x38]
mov rcx, qword [rax + 0x28]
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x4c], r8d
lea rax, [r10 + 0x38]
mov qword [rsp + 0x38], rax
mov rax, qword [rsi]
mov qword [rsp + 0x70], rax
xor ebx, ebx
mov qword [rsp + 0x40], rsi
mov qword [rsi], rbx
movups xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0x10]
movaps xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x90], xmm0
mov rsi, qword [r14 + 0x20]
mov rdi, qword [r14 + 0x28]
mov rdx, qword [r14 + 0x30]
mov r13d, dword [r14 + 0x38]
mov eax, dword [r14 + 0x6c]
mov dword [rsp + 0xe0], eax
movups xmm0, xmmword [r14 + 0x3c]
movups xmm1, xmmword [r14 + 0x4c]
movups xmm2, xmmword [r14 + 0x5c]
movaps xmmword [rsp + 0xd0], xmm2
movaps xmmword [rsp + 0xc0], xmm1
movaps xmmword [rsp + 0xb0], xmm0
mov eax, dword [r14 + 0x70]
mov dword [rsp + 0x24], eax
mov al, byte [r14 + 0x74]
mov byte [rsp + 0x22], al
mov rax, qword [r14 + 0x78]
mov qword [rsp + 0x68], rax
mov qword [r14 + 0x78], rbx
mov r15, qword [r10 + 0x38]
mov rax, qword [r10 + 0x40]
mov r12, rax
movabs r9, 0xf0f0f0f0f0f0f0f1
sub r12, r15
mov qword [rsp + 0x30], rdx
je 0x1400169cf
lea rcx, [rdi + rdx]
sar rcx, 0x3f
btc rcx, 0x3f
mov r8, rdi
add r8, rdx
cmovo r8, rcx
sar r12, 3
imul r12, r9
lea rcx, [rdx + r11]
cmp rcx, 0xfffffffffffffffe
setb cl
test r13d, r13d
cmovne r8, rdi
mov qword [rsp + 0x88], r8
setne dl
or dl, cl
mov byte [rsp + 0x23], dl
lea rbx, [r12 - 1]
mov qword [rsp + 0x80], rbx
shr rbx, 1
mov rcx, rax
sub rcx, r15
sar rcx, 3
imul rcx, r9
cmp rcx, rbx
jbe 0x140016a25
mov rdx, rbx
shl rdx, 7
lea rdx, [rdx + rbx*8]
lea rbp, [r15 + rdx]
cmp dword [r15 + rdx + 0x38], 0
jne 0x1400164b3
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
lea r9, [r11 + rdx]
add r9, 2
cmp r9, 2
jb 0x140016a4b
lea r9, [r8 + rdx]
sar r9, 0x3f
btc r9, 0x3f
add r8, rdx
cmovo r8, r9
mov rdx, r8
movabs r9, 0xf0f0f0f0f0f0f0f1
mov r8, qword [rsp + 0x88]
cmp byte [rsp + 0x23], 0
je 0x140016a75
cmp rdx, r8
setl dl
je 0x1400169d7
neg dl
or dl, 1
test dl, dl
jg 0x14001659c
mov rbx, r12
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
lea rdx, [rsp + 0x110]
movaps xmmword [rdx - 0x10], xmm1
movaps xmmword [rdx - 0x20], xmm0
mov qword [rdx], rsi
mov qword [rdx + 8], rdi
mov rcx, qword [rsp + 0x30]
mov qword [rdx + 0x10], rcx
mov dword [rdx + 0x18], r13d
movaps xmm0, xmmword [rsp + 0xb0]
movaps xmm1, xmmword [rsp + 0xc0]
movaps xmm2, xmmword [rsp + 0xd0]
movups xmmword [rdx + 0x1c], xmm0
movups xmmword [rdx + 0x2c], xmm1
movups xmmword [rdx + 0x3c], xmm2
mov ecx, dword [rsp + 0xe0]
mov dword [rdx + 0x4c], ecx
mov ecx, dword [rsp + 0x24]
mov dword [rdx + 0x50], ecx
mov cl, byte [rsp + 0x22]
mov byte [rdx + 0x54], cl
mov r13, qword [rsp + 0x68]
mov qword [rdx + 0x58], r13
mov r8, qword [rsp + 0x70]
mov qword [rdx + 0x60], r8
mov rcx, rax
sub rcx, r15
sar rcx, 3
imul rcx, r9
cmp rcx, rbx
je 0x140016526
jbe 0x140016a25
mov rax, rbx
shl rax, 7
lea rax, [rax + rbx*8]
lea r12, [r15 + rax]
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
lea rax, [r15 + rax + 0x20]
movups xmmword [rax - 0x10], xmm1
movups xmmword [rax - 0x20], xmm0
mov ecx, 0xa
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov ecx, dword [rdx + 0x50]
mov dword [rax + 0x50], ecx
mov cl, byte [rdx + 0x54]
mov byte [rax + 0x54], cl
mov qword [rsp + 0x168], 0
mov rsi, qword [rax + 0x58]
mov qword [rax + 0x58], r13
test rsi, rsi
mov r15, qword [rsp + 0x40]
jne 0x1400168d1
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x170], 0
mov rsi, qword [r12 + 0x80]
mov qword [r12 + 0x80], rax
test rsi, rsi
jne 0x140016950
mov rax, qword [r10 + 0x40]
mov rcx, qword [rsp + 0x38]
sub rax, qword [rcx]
sar rax, 3
imul rax, r9
cmp rax, rbx
jbe 0x140016a25
mov rcx, qword [rsp + 0x170]
test rcx, rcx
mov rbx, qword [rsp + 0x78]
jne 0x1400164de
mov rcx, qword [rsp + 0x168]
test rcx, rcx
jne 0x140016502
cmp qword [r10 + 0x20], 0
je 0x140016474
mov rcx, qword [r10 + 0x38]
cmp rcx, qword [r10 + 0x40]
je 0x140016aa9
mov eax, dword [rcx + 0x38]
mov rsi, qword [rcx + 0x28]
cmp qword [rsp + 0x60], rsi
jne 0x140016680
cmp dword [rsp + 0x4c], eax
jne 0x140016680
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [r14 + 0x78]
test rcx, rcx
jne 0x1400164bc
mov rcx, qword [r15]
test rcx, rcx
jne 0x1400164cd
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14012d2c0
nop
add rsp, 0x188
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rbp + 0x28]
jmp 0x14001629c
lock dec dword [rcx]
jne 0x140016486
mov rax, qword [rcx + 0x10]
call qword [0x1402233e0]
jmp 0x140016486
lock dec dword [rcx]
jne 0x14001648e
mov rax, qword [rcx + 0x10]
call qword [0x1402233e0]
jmp 0x14001648e
lock dec dword [rcx]
jne 0x140016432
mov rax, qword [rcx + 0x10]
mov rsi, r10
mov rdi, r11
call qword [0x1402233e0]
mov r11, rdi
mov r10, rsi
jmp 0x140016432
lock dec dword [rcx]
jne 0x140016443
mov rax, qword [rcx + 0x10]
mov rsi, r10
mov rdi, r11
call qword [0x1402233e0]
mov r11, rdi
mov r10, rsi
jmp 0x140016443
cmp rax, qword [r10 + 0x48]
jae 0x140016785
test rax, rax
mov r15, qword [rsp + 0x40]
je 0x140016a38
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
lea rdi, [rax + 0x20]
mov ecx, 0xa
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov ecx, dword [rdx + 0x50]
mov dword [rax + 0x70], ecx
mov cl, byte [rdx + 0x54]
mov byte [rax + 0x74], cl
mov qword [rax + 0x78], r13
xor ecx, ecx
mov qword [rsp + 0x168], rcx
mov qword [rax + 0x80], r8
mov qword [rsp + 0x170], rcx
add rax, 0x88
mov qword [r10 + 0x40], rax
jmp 0x140016403
cmp rcx, r12
mov qword [rsp + 0x28], rdi
je 0x14001670a
mov qword [rsp + 0x58], rsi
jbe 0x140016a25
mov rax, r12
shl rax, 7
lea rdx, [rax + r12*8]
movups xmm0, xmmword [rbp]
movups xmm1, xmmword [rbp + 0x10]
lea rax, [r15 + rdx]
add rax, 0x20
movups xmmword [rax - 0x10], xmm1
movups xmmword [rax - 0x20], xmm0
lea rsi, [rbp + 0x20]
mov ecx, 0xa
mov rdi, rax
rep movsq qword [rdi], qword [rsi]
mov ecx, dword [rbp + 0x70]
mov dword [rax + 0x50], ecx
mov cl, byte [rbp + 0x74]
mov byte [rax + 0x54], cl
mov rcx, qword [rbp + 0x78]
mov qword [rbp + 0x78], 0
mov rsi, qword [rax + 0x58]
mov qword [rax + 0x58], rcx
test rsi, rsi
jne 0x1400167fd
add r15, rdx
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x80], 0
mov rsi, qword [r15 + 0x80]
mov qword [r15 + 0x80], rax
test rsi, rsi
mov rdi, qword [rsp + 0x28]
jne 0x1400167b7
mov rax, qword [r10 + 0x40]
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
mov r15, qword [rcx]
mov rcx, rax
sub rcx, r15
sar rcx, 3
imul rcx, r9
cmp rcx, r12
jbe 0x140016a25
mov r12, rbx
cmp qword [rsp + 0x80], 1
ja 0x14001621f
jmp 0x1400162cb
mov rdi, r10
mov rcx, rbx
mov rbx, r11
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp rsi, rbx
je 0x14001647d
mov rbx, qword [rdi + 8]
mov rsi, qword [rdi + 0x20]
test rbx, rbx
je 0x1400166c1
mov eax, 1
lock xadd dword [rbx], eax
test eax, eax
jle 0x140016ab6
cmp eax, 0x7fffffff
je 0x140016ab3
lea rdx, str.AddDelayedTask
lea r8, str....._base_task_thread_pooldelayed_task_manager.cc
lea rdi, [rsp + 0xf0]
mov rcx, rdi
mov r9d, 0x74
call fcn.1400dc8d0
lea r8, [rsp + 0xb0]
mov qword [r8], rbx
mov rax, qword [rsi]
mov rax, qword [rax]
mov rcx, rsi
mov rdx, rdi
xor r9d, r9d
call qword [0x1402233e0]
jmp 0x14001647d
cmp rax, qword [r10 + 0x48]
jae 0x1400169ec
test rax, rax
je 0x140016a38
mov r15, rsi
movups xmm0, xmmword [rbp]
movups xmm1, xmmword [rbp + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
lea rdi, [rax + 0x20]
lea rsi, [rbp + 0x20]
mov ecx, 0xa
rep movsq qword [rdi], qword [rsi]
mov ecx, dword [rbp + 0x70]
mov dword [rax + 0x70], ecx
mov cl, byte [rbp + 0x74]
mov byte [rax + 0x74], cl
mov rcx, qword [rbp + 0x78]
mov qword [rax + 0x78], rcx
xor edx, edx
mov qword [rbp + 0x78], rdx
mov rcx, qword [rbp + 0x80]
mov qword [rax + 0x80], rcx
mov qword [rbp + 0x80], rdx
add rax, 0x88
mov qword [r10 + 0x40], rax
mov rsi, r15
mov rdi, qword [rsp + 0x28]
jmp 0x14001664a
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x38]
mov rsi, r10
mov rdi, r11
call fcn.140016ac0
movabs r9, 0xf0f0f0f0f0f0f0f1
mov r11, rdi
mov r10, rsi
mov r15, qword [rsp + 0x40]
jmp 0x140016593
lock dec dword [rsi]
jne 0x140016641
mov rax, qword [rsi + 0x10]
lea rcx, [0x140185820]
cmp rax, rcx
je 0x14001688f
mov rcx, rsi
mov rsi, r10
mov rdi, r11
call qword [0x1402233e0]
movabs r9, 0xf0f0f0f0f0f0f0f1
mov r11, rdi
mov r10, rsi
mov rdi, qword [rsp + 0x28]
jmp 0x140016641
lock dec dword [rsi]
jne 0x140016610
mov rax, qword [rsi + 0x10]
lea rcx, [0x140185820]
cmp rax, rcx
mov qword [rsp + 0x50], rdx
je 0x140016844
mov rcx, rsi
mov rsi, r10
mov rdi, r11
call qword [0x1402233e0]
mov rdx, qword [rsp + 0x50]
movabs r9, 0xf0f0f0f0f0f0f0f1
mov r11, rdi
mov r10, rsi
jmp 0x140016610
mov rdi, r10
mov rcx, qword [rsi + 0x28]
movabs rax, 0xfffffffc00000000
and rax, rcx
cmp rax, qword [0x1402336c8]
jne 0x140016866
call fcn.14009b9a0
mov rcx, rsi
call fcn.14012aa6c
mov r10, rdi
movabs r11, 0x7fffffffffffffff
movabs r9, 0xf0f0f0f0f0f0f0f1
mov rdx, qword [rsp + 0x50]
jmp 0x140016610
mov r15, r11
mov rdi, r10
mov rcx, qword [rsi + 0x28]
movabs rax, 0xfffffffc00000000
and rax, rcx
cmp rax, qword [0x1402336c8]
jne 0x1400168b4
call fcn.14009b9a0
mov rcx, rsi
call fcn.14012aa6c
mov r10, rdi
mov r11, r15
movabs r9, 0xf0f0f0f0f0f0f0f1
jmp 0x1400167f3
lock dec dword [rsi]
jne 0x1400163d2
mov rax, qword [rsi + 0x10]
lea rcx, [0x140185820]
cmp rax, rcx
je 0x14001690e
mov rcx, rsi
mov rsi, r10
mov rdi, r11
call qword [0x1402233e0]
movabs r9, 0xf0f0f0f0f0f0f0f1
mov r11, rdi
mov r10, rsi
jmp 0x1400163d2
mov r13, r11
mov rdi, r10
mov rcx, qword [rsi + 0x28]
movabs rax, 0xfffffffc00000000
and rax, rcx
cmp rax, qword [0x1402336c8]
jne 0x140016933
call fcn.14009b9a0
mov rcx, rsi
call fcn.14012aa6c
mov r10, rdi
mov r11, r13
movabs r9, 0xf0f0f0f0f0f0f0f1
jmp 0x1400163d2
lock dec dword [rsi]
jne 0x1400163ff
mov rax, qword [rsi + 0x10]
lea rcx, [0x140185820]
cmp rax, rcx
je 0x14001698d
mov rcx, rsi
mov rsi, r10
mov rdi, r11
call qword [0x1402233e0]
movabs r9, 0xf0f0f0f0f0f0f0f1
mov r11, rdi
mov r10, rsi
jmp 0x1400163ff
mov r12, r11
mov rdi, r10
mov rcx, qword [rsi + 0x28]
movabs rax, 0xfffffffc00000000
and rax, rcx
cmp rax, qword [0x1402336c8]
jne 0x1400169b2
call fcn.14009b9a0
mov rcx, rsi
call fcn.14012aa6c
mov r10, rdi
mov r11, r12
movabs r9, 0xf0f0f0f0f0f0f0f1
jmp 0x1400163ff
mov r15, rax
jmp 0x1400162cb
mov edx, dword [rbp + 0x70]
cmp edx, dword [rsp + 0x24]
setl dl
jne 0x1400162bb
jmp 0x1400162c8
mov r15, rsi
mov rcx, qword [rsp + 0x38]
mov rdx, rbp
mov rsi, r10
mov rdi, r11
call fcn.140016ac0
movabs r9, 0xf0f0f0f0f0f0f0f1
mov r11, rdi
mov r10, rsi
jmp 0x140016774
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400160c1
lea rcx, [0x14020310b]
lea rdx, str....._third_partylibc_srcinclude_vector:1411:_assertion___n___size___failed:_vector___index_out_of_bounds_n
call fcn.140164a90
lea rcx, [0x14020310b]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140164a90
cmp r8, rdx
je 0x140016292
add r8, r11
add r8, 2
cmp r8, 1
movabs r9, 0xf0f0f0f0f0f0f0f1
ja 0x14001629c
int3
int3
mov r8, qword [rsp + 0x30]
cmp rdi, qword [rsp + 0x30]
je 0x1400162af
lea r9, [r11 + rdi]
add r9, 2
mov r8, qword [rsp + 0x30]
cmp r9, 1
movabs r9, 0xf0f0f0f0f0f0f0f1
ja 0x1400162af
int3
xor eax, eax
mov rsi, r11
jmp 0x14001645f
int3
int3