Function at 0x14009d440
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, 0xe8
mov r15, r9
mov r12d, r8d
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rsp + 0x158]
mov rbp, qword [rsp + 0x150]
movzx ecx, byte [rdx + 0x15]
xor eax, eax
cmp cl, 3
cmovne eax, ecx
cmp al, 1
je 0x14009d4d9
movzx eax, al
cmp eax, 2
je 0x14009d4de
movabs rbx, 0x8000000000000008
test r15, r15
je 0x14009d4ff
test rbp, rbp
js 0x14009da9a
lea rax, [rbx + rbp]
add rax, 0xf
lea rcx, [rbx - 1]
cmp rax, rcx
jb 0x14009da9a
lea rdx, [rbp + 0x17]
and rdx, 0xfffffffffffffff8
je 0x14009d504
movzx eax, byte [0x140188180]
xor ecx, ecx
call fcn.1400f2120
mov r13, rax
test rax, rax
jne 0x14009d50a
jmp 0x14009da9a
test r12d, r12d
je 0x14009d487
mov rcx, rsi
mov rdx, rdi
mov r8, r14
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.14009daa0
xor r13d, r13d
jmp 0x14009d529
mov r13d, 8
mov qword [r13], 1
mov qword [r13 + 8], 1
lea rcx, [r13 + 0x10]
mov rdx, r15
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp qword [rdi + 0x28], 0
jne 0x14009da9a
mov qword [rdi + 0x28], 0xffffffffffffffff
cmp dword [rdi + 0x88], 0
je 0x14009da9a
lea r15, [rdi + 0x30]
cmp r12d, 0x7ffffffe
ja 0x14009d66f
mov qword [rsp + 0xd8], rbp
mov qword [rsp + 0x20], r15
mov qword [rsp + 0xe0], r14
mov ebx, dword [rdi + 0x8c]
mov rdx, qword [rdi + 0x80]
mov qword [rsp + 0x28], rbx
sub rbx, rdx
jb 0x14009d5e5
lea rbp, [rdi + 0x70]
xor r15d, r15d
xor r14d, r14d
cmp r15, rbx
adc r14, 0
cmp rdx, qword [rbp]
jne 0x14009d5ac
mov rcx, rbp
call fcn.1400d4760
mov rdx, qword [rdi + 0x80]
mov rax, qword [rdi + 0x78]
lea rcx, [rdx + rdx*2]
mov qword [rax + rcx*8], 0
mov qword [rax + rcx*8 + 8], 8
mov qword [rax + rcx*8 + 0x10], 0
inc rdx
mov qword [rdi + 0x80], rdx
cmp r15, rbx
jae 0x14009d5e5
mov r15, r14
cmp r14, rbx
jbe 0x14009d590
mov rcx, qword [rsp + 0x28]
cmp rdx, rcx
jbe 0x14009da9a
mov r8d, r12d
mov r15, qword [rdi + 0x78]
lea rbx, [rcx + rcx*2]
mov rax, qword [r15 + rbx*8 + 0x10]
mov ebp, r12d
mov r12, r8
sub r12, rax
jae 0x14009d7d9
mov dword [rsp + 0x3c], ecx
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x38], 4
lea rcx, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov r15, qword [rsp + 0x20]
mov rdx, r15
call fcn.1400856a0
test r13, r13
mov r12d, ebp
movabs rbx, 0x8000000000000008
mov r14, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xd8]
je 0x14009d698
lock dec qword [r13]
jne 0x14009d698
mov rcx, r13
jmp 0x14009d693
lea rax, [rbx - 2]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], r12d
test r13, r13
je 0x14009d897
lock dec qword [r13]
jne 0x14009d698
mov rcx, r13
mov rdx, rbp
call fcn.14007a1d0
mov rax, qword [rsp + 0x58]
inc qword [rdi + 0x28]
cmp rax, rbx
jne 0x14009d94b
mov dword [rsp + 0x34], ebp
lea r14, [r15 + rbx*8 + 0x10]
je 0x14009d8ae
cmp r12, 1
adc r12, 0
lea rbp, [r15 + rbx*8]
jmp 0x14009d822
mov rcx, qword [rbp + 8]
shl rax, 4
mov qword [rcx + rax], 0
mov rax, qword [r14]
inc rax
mov qword [r14], rax
dec r12
je 0x14009d8a4
cmp rax, qword [rbp]
jne 0x14009d800
mov rcx, rbp
mov rdx, rax
call fcn.14004b240
mov rax, qword [r14]
jmp 0x14009d800
mov qword [rdi + 0x28], 0
jmp 0x14009d950
mov rdx, qword [rdi + 0x80]
mov r8, rax
cmp rdx, qword [rsp + 0x28]
jbe 0x14009da9a
lea rbp, [r15 + rbx*8]
cmp r8, qword [r15 + rbx*8]
mov r12d, dword [rsp + 0x34]
jne 0x14009d8d6
mov rcx, rbp
mov rdx, r8
call fcn.14004b240
mov r8, qword [r14]
movabs rbx, 0x8000000000000008
mov r15, qword [rsp + 0x20]
mov rax, qword [rbp + 8]
shl r8, 4