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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov rsi, qword [rsp + 0xe0]
test r9b, r9b
je 0x1400399d3
cmp r14, 0xf
jae 0x140039a3a
or r14b, 0x10
jmp 0x1400399dd
cmp r14, 0xf
jae 0x140039ae7
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
cmp rcx, rax
jne 0x1400399fd
mov edx, 1
mov rcx, rsi
call fcn.14001e4c0
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi + 0x18]
mov byte [rdx + rax], r14b
inc rax
mov qword [rsp + 0x28], rax
cmp rax, rcx
jbe 0x140039bc4
add rsi, 8
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [fcn.14001eca0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rsi
jmp 0x140039c01
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
cmp rcx, rax
jne 0x140039a5a
mov edx, 1
mov rcx, rsi
call fcn.14001e4c0
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
lea r15, [rsi + 8]
mov rdx, qword [rsi + 0x18]
mov byte [rdx + rax], 0x1f
inc rax
mov qword [rsp + 0x28], rax
cmp rax, rcx
ja 0x140039be6
add r14, 0xfffffffffffffff1
mov qword [rsi], rax
cmp r14, 0x80
jb 0x140039b90
nop dword [rax + rax]
mov ebp, r14d
or bpl, 0x80
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140039ab3
mov edx, 1
mov rcx, rsi
call fcn.14001e4c0
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi + 0x18]
mov byte [rdx + rax], bpl
inc rax
mov qword [rsp + 0x28], rax
cmp rax, rcx
ja 0x140039be6
mov qword [rsi], rax
mov r12, r14
shr r12, 7
cmp r14, 0x3fff
mov r14, r12
ja 0x140039a90
jmp 0x140039b93
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
cmp rcx, rax
jne 0x140039b07
mov edx, 1
mov rcx, rsi
call fcn.14001e4c0
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
lea r15, [rsi + 8]
mov rdx, qword [rsi + 0x18]
mov byte [rdx + rax], 0xf
inc rax
mov qword [rsp + 0x28], rax
cmp rax, rcx
ja 0x140039be6
add r14, 0xfffffffffffffff1
mov qword [rsi], rax
cmp r14, 0x80
jb 0x140039b90
nop word cs:[rax + rax]
mov ebp, r14d
or bpl, 0x80
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140039b63
mov edx, 1
mov rcx, rsi
call fcn.14001e4c0
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi + 0x18]
mov byte [rdx + rax], bpl
inc rax
mov qword [rsp + 0x28], rax
cmp rax, rcx
ja 0x140039be6
mov qword [rsi], rax
mov r12, r14
shr r12, 7
cmp r14, 0x3fff
mov r14, r12
ja 0x140039b40
jmp 0x140039b93
mov r12, r14
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140039baf
mov edx, 1
mov rcx, rsi
call fcn.14001e4c0
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi + 0x18]
mov byte [rdx + rax], r12b
inc rax
mov qword [rsp + 0x28], rax
cmp rax, rcx
ja 0x140039be6
mov qword [rsi], rax
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.140039c50
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [fcn.14001eca0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rax
lea rax, str.new_len____capacity_
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 2
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 2
lea rdx, str.C:Usersmixer.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.2.1_src_bytes_mut.rs
lea rcx, [rsp + 0x50]
call fcn.14010b440
ud2