Function at 0x14001ea22
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, 0x158
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rdx]
cmp r15, 2
jb 0x14001ea66
mov rax, qword [rdi + 8]
mov qword [rsp + 0x100], rax
lock inc qword [rax]
jle 0x14001ef44
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0xf8], rax
mov al, byte [rdi + 0x60]
mov r14b, 3
mov bpl, 3
cmp al, 3
je 0x14001eafa
mov bpl, 2
cmp al, 2
je 0x14001eac4
lea rdx, [rdi + 0x58]
mov rax, qword [rdi + 0x40]
mov r8, qword [rdi + 0x48]
mov r9, qword [rdi + 0x50]
lea rbx, [rsp + 0xd0]
mov rcx, rbx
call qword [rax]
mov bpl, byte [rdi + 0x60]
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rbx + 0x21]
mov dword [rsp + 0x80], eax
mov eax, dword [rbx + 0x24]
mov dword [rsp + 0x83], eax
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0xe0], xmm1
movaps xmmword [rsp + 0xd0], xmm0
mov eax, dword [rsp + 0x80]
mov ecx, dword [rsp + 0x83]
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0xb3], ecx
movaps xmm0, xmmword [rsp + 0xd0]
movaps xmm1, xmmword [rsp + 0xe0]
movaps xmmword [rsp + 0x120], xmm1
movaps xmmword [rsp + 0x110], xmm0
mov eax, dword [rsp + 0xb0]
mov ecx, dword [rsp + 0xb3]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x63], ecx
mov al, byte [rdi + 0x88]
cmp al, 3
je 0x14001ebc7
mov r14b, 2
cmp al, 2
je 0x14001eb91
lea rdx, [rdi + 0x80]
mov rax, qword [rdi + 0x68]
mov r8, qword [rdi + 0x70]
mov r9, qword [rdi + 0x78]
lea rbx, [rsp + 0xd0]
mov rcx, rbx
call qword [rax]
mov r14b, byte [rdi + 0x88]
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rbx + 0x21]
mov dword [rsp + 0x80], eax
mov eax, dword [rbx + 0x24]
mov dword [rsp + 0x83], eax
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0xe0], xmm1
movaps xmmword [rsp + 0xd0], xmm0
mov eax, dword [rsp + 0x80]
mov ecx, dword [rsp + 0x83]
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0xb3], ecx
movaps xmm0, xmmword [rsp + 0xd0]
movaps xmm1, xmmword [rsp + 0xe0]
movaps xmmword [rsp + 0x140], xmm1
movaps xmmword [rsp + 0x130], xmm0
mov eax, dword [rsp + 0xb0]
mov ecx, dword [rsp + 0xb3]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6b], ecx
mov al, byte [rdi + 0xb0]
add al, 0xfe
movzx ecx, al
lea rdx, [rcx + 1]
xor eax, eax
cmp cl, 2
cmovb rax, rdx
test rax, rax
mov qword [rsp + 0x108], r15
mov byte [rsp + 0x27], bpl
je 0x14001ec4d
cmp eax, 1
jne 0x14001ec9b
mov rdx, qword [rdi + 0x90]
mov r8, qword [rdi + 0xa0]
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.14001ef48
mov byte [rbx + 0x20], 2
jmp 0x14001ecc2
lea rdx, [rdi + 0xa8]
mov rax, qword [rdi + 0x90]
mov r8, qword [rdi + 0x98]
mov r9, qword [rdi + 0xa0]
lea rbx, [rsp + 0xd0]
mov rcx, rbx
call qword [rax]
mov al, byte [rdi + 0xb0]
mov byte [rbx + 0x20], al
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm1
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x50], rax
jmp 0x14001ecc2
mov rax, qword [rdi + 0x90]
lock inc qword [rax]
jle 0x14001ef44
mov rcx, qword [rdi + 0x98]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
mov byte [rsp + 0x50], 3
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rcx
mov r12b, 2
cmp byte [rdi + 0x38], 2
je 0x14001ed3f
lea rdx, [rdi + 0x30]
mov rax, qword [rdi + 0x18]
mov r8, qword [rdi + 0x20]
mov r9, qword [rdi + 0x28]
lea rbx, [rsp + 0xd0]
mov rcx, rbx
call qword [rax]
mov r12b, byte [rdi + 0x38]
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rbx + 0x21]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x24]
mov dword [rsp + 0x2b], eax
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0xc0], xmm1
movaps xmmword [rsp + 0xb0], xmm0
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2b]
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x73], ecx
mov al, byte [rdi + 0xd8]
cmp al, 3
jne 0x14001ed90
mov r15, qword [rdi + 0xb8]
lock inc qword [r15]
jle 0x14001ef44
mov r13, qword [rdi + 0xc0]
mov bpl, 3
jmp 0x14001ee04
cmp al, 2
jne 0x14001ed99
mov bpl, 2
jmp 0x14001ede7
lea rdx, [rdi + 0xd0]
mov rax, qword [rdi + 0xb8]
mov r8, qword [rdi + 0xc0]
mov r9, qword [rdi + 0xc8]
lea rbx, [rsp + 0xd0]
mov rcx, rbx
call qword [rax]
mov bpl, byte [rdi + 0xd8]
mov r15, qword [rbx]
mov r13, qword [rbx + 8]
movups xmm0, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rbx + 0x21]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x24]
mov dword [rsp + 0x2b], eax
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0xd0], xmm0
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2b]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x7b], ecx
movaps xmm0, xmmword [rsp + 0xd0]
movups xmmword [rsi + 0xc8], xmm0
mov eax, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x7b]
mov dword [rsi + 0xd9], eax
mov dword [rsi + 0xdc], ecx
lea rcx, [rsi + 0xe0]
mov rdx, qword [rdi + 0xe0]
mov r8, qword [rdi + 0xf0]
call fcn.14001ef48
mov rax, qword [rsp + 0x108]
mov qword [rsi], rax
mov rax, qword [rsp + 0x100]
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x110]
movaps xmm1, xmmword [rsp + 0x120]
movups xmmword [rsi + 0x40], xmm0
movups xmmword [rsi + 0x50], xmm1
mov al, byte [rsp + 0x27]
mov byte [rsi + 0x60], al
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x63]
mov dword [rsi + 0x61], eax
mov dword [rsi + 0x64], ecx
movaps xmm0, xmmword [rsp + 0x130]
movaps xmm1, xmmword [rsp + 0x140]
movups xmmword [rsi + 0x68], xmm0
movups xmmword [rsi + 0x78], xmm1
mov byte [rsi + 0x88], r14b
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x6b]
mov dword [rsi + 0x8c], ecx
mov dword [rsi + 0x89], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsi + 0xb0], rax
movaps xmm0, xmmword [rsp + 0x80]
movaps xmm1, xmmword [rsp + 0x90]
movups xmmword [rsi + 0xa0], xmm1
movups xmmword [rsi + 0x90], xmm0
movaps xmm0, xmmword [rsp + 0xb0]
movaps xmm1, xmmword [rsp + 0xc0]
movups xmmword [rsi + 0x28], xmm1
movups xmmword [rsi + 0x18], xmm0
mov byte [rsi + 0x38], r12b
mov eax, dword [rsp + 0x70]
mov ecx, dword [rsp + 0x73]
mov dword [rsi + 0x3c], ecx
mov dword [rsi + 0x39], eax
mov qword [rsi + 0xb8], r15
mov qword [rsi + 0xc0], r13
mov byte [rsi + 0xd8], bpl
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2