Function at 0x180039f20
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, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rsi, rcx
mov rax, qword [rdx + 0x18]
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
jae 0x18003a4e9
mov r15, r9
mov r14, r8
mov rdi, rdx
mov rbx, r8
and rbx, 0xfffffffffffff000
lea rcx, [rax + 1]
mov qword [rdx + 0x18], rcx
mov rdx, 0xffffffffffffff78
add rdx, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x28]
mov r8, rcx
shl r8, 7
lea rcx, [r8 + rcx*8]
nop word [rax + rax]
test rcx, rcx
je 0x18003a4b5
mov r8, rdx
add rdx, 0x88
add rcx, 0xffffffffffffff78
cmp qword [r8 + 0xe0], rbx
ja 0x180039f90
cmp qword [r8 + 0xe8], rbx
jb 0x180039f90
mov r8, qword [rdx + 0x70]
mov rcx, qword [rdx + 0x78]
shl rcx, 5
xor r9d, r9d
mov r10d, 0xff
nop word cs:[rax + rax]
cmp rcx, r9
je 0x18003a01c
mov r12, qword [r8 + r9 + 0x18]
mov r13, r12
and r13, 0xfffffffffffff000
xor r11d, r11d
cmp r13, rbx
setne r11b
cmova r11d, r10d
add r9, 0x20
cmp r11b, 1
je 0x180039fe0
movzx ecx, r11b
cmp ecx, 0xff
jne 0x18003a10f
lea r12, [rsp + 0xa8]
mov rcx, r12
call fcn.180059c40
dec qword [rdi + 0x18]
lea rcx, [rsp + 0x28]
mov rdx, r12
mov r8, r14
mov r9, r15
call fcn.180058b90
mov rdx, qword [rsp + 0x28]
cmp rdx, 3
jne 0x18003a0a4
mov rdi, qword [rsp + 0x38]
mov ebx, dword [rsp + 0x40]
movsd xmm6, qword [rsp + 0x30]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], ebx
mov rax, qword [section..data]
lea rdx, [0x180077a08]
lea rcx, [rsp + 0x50]
mov r8d, 0x10
mov r9d, 8
call qword [rax + 0x18]
cmp byte [rsp + 0x50], 0
je 0x18003a128
lea rcx, [rsp + 0x70]
call fcn.1800366d0
xor eax, eax
jmp 0x18003a133
test rdx, rdx
je 0x18003a173
movsd xmm0, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
movzx eax, byte [rsp + 0x48]
cmp edx, 1
jne 0x18003a184
mov edx, eax
not dl
and r14b, dl
test r14b, 0x3f
jne 0x18003a514
or rax, rbx
movlps qword [rsp + 0x88], xmm0
mov qword [rsp + 0x90], r9
mov dword [rsp + 0x98], r8d
mov dword [rsp + 0x9c], ecx
mov qword [rsp + 0xa0], rax
jmp 0x18003a455
mov ecx, r12d
not cl
and r14b, cl
test r14b, 0x3f
je 0x18003a14e
mov r14d, 3
jmp 0x18003a304
mov rax, qword [rsp + 0x58]
mov qword [rax], rdi
mov dword [rax + 8], ebx
movlps qword [rsi + 8], xmm6
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], 0x44cb335b
mov qword [rsi], 4
jmp 0x18003a48c
mov r14, qword [r8 + r9 - 0x20]
test r14, r14
je 0x18003a2c6
cmp r14d, 1
jne 0x18003a2cd
mov r15, qword [r8 + r9 - 0x18]
inc qword [r15]
jmp 0x18003a2fd
mov qword [rsp + 0x88], 3
jmp 0x18003a455
cmp qword [rdi + 0x18], 0
jne 0x18003a524
mov qword [rdi + 0x18], 0xffffffffffffffff
mov rdx, qword [rdi + 0x28]
mov r10, qword [rdi + 0x30]
cmp rdx, r10
cmovb r10, rdx
mov rdx, 0xffffffffffffff78
add rdx, qword [rdi + 0x20]
mov r11, r10
shl r11, 7
lea r10, [r11 + r10*8]
nop dword [rax]
test r10, r10
je 0x18003a4cf
mov r11, rdx
add rdx, 0x88
add r10, 0xffffffffffffff78
cmp qword [r11 + 0xe0], rbx
ja 0x18003a1c0
cmp qword [r11 + 0xe8], rbx
jb 0x18003a1c0
mov r10d, eax
not r10b
mov r11d, r14d
and r11b, r10b
test r11b, 0x3f
jne 0x18003a540
or rax, rbx
movlps qword [rsp + 0x28], xmm0
mov qword [rsp + 0x30], r9
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x3c], ecx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
lea r8, [rsp + 0x28]
call fcn.18003a6e0
mov rax, qword [rsp + 0x50]
cmp rax, 4
jne 0x18003a28c
mov rbx, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
mov ebp, dword [rsp + 0x68]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], ebp
mov rax, qword [section..data]
lea rdx, [0x180077a08]
lea rcx, [rsp + 0x28]
mov r8d, 0x10
mov r9d, 8
call qword [rax + 0x18]
cmp byte [rsp + 0x28], 0
je 0x18003a31c
lea rcx, [rsp + 0x70]
call fcn.1800366d0
xor eax, eax
jmp 0x18003a327
test rax, rax
je 0x18003a34f
mov r12, qword [rsp + 0x58]
cmp eax, 1
je 0x18003a347
cmp eax, 3
je 0x18003a34f
mov rdx, qword [rsp + 0x60]
mov rcx, r12
call fcn.1800653c0
mov rcx, r12
call fcn.180037a60
jmp 0x18003a34f
mov r15, qword [r8 + r9 - 0x18]
jmp 0x18003a2fd
mov r15, qword [r8 + r9 - 0x18]
cmp qword [r15 + 0x10], 0
jne 0x18003a55a
mov qword [r15 + 0x10], 0xffffffffffffffff
lea rcx, [r15 + 0x18]
mov rbx, qword [r8 + r9 - 0x10]
mov rdx, rbx
call fcn.180065310
inc qword [r15 + 0x10]
inc qword [r15]
mov rax, qword [rdi + 0x18]
dec rax
mov qword [rsi], r14
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], r12
mov qword [rdi + 0x18], rax
jmp 0x18003a499
mov rax, qword [rsp + 0x30]
mov qword [rax], r14
mov dword [rax + 8], ebp
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], 0x44cb3355
mov qword [rsi], 4
inc qword [rdi + 0x18]
jmp 0x18003a48c
mov rcx, r12
call fcn.180038830
inc qword [rdi + 0x18]
or r14, qword [rdi + 0x40]
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa8]
mov r8, r14
mov r9, r15
call fcn.180059020
lea rcx, str.44CB3238
mov edx, 0x171
call fcn.18000f7b0
mov ecx, dword [rsp + 0x50]
test ecx, ecx
je 0x18003a3dd
mov edx, dword [rsp + 0x54]
mov r8, qword [rsp + 0x58]
mov r9d, dword [rsp + 0x60]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], edx
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x38], r9d
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x28]
mov r8d, eax
call fcn.180037ef0
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x18003a3dd
mov ecx, dword [rsp + 0x84]
mov dword [rsi + 0x1c], ecx
movups xmm0, xmmword [rsp + 0x74]
movups xmmword [rsi + 0xc], xmm0
mov dword [rsi + 8], eax
jmp 0x18003a142
mov rcx, rdi
mov rdx, rbx
call fcn.18003a990
mov rdi, rdx
mov rdx, qword [rax + 0x70]
mov rax, qword [rax + 0x78]
add rdx, 0xffffffffffffffe0
shl rax, 5
mov rcx, 0xfffffffffffff000
mov r8d, 0xff
nop dword [rax + rax]
test rax, rax
je 0x18003a443
mov r10, qword [rdx + 0x38]
and r10, rcx
xor r9d, r9d
cmp r10, rbx
setne r9b
cmova r9d, r8d
add rdx, 0x20
add rax, 0xffffffffffffffe0
cmp r9b, 1
je 0x18003a410
movzx eax, r9b
cmp eax, 0xff
jne 0x18003a445
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.180008c50
dec qword [rdi]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
mov edx, dword [rsp + 0x98]
mov dword [rsi + 0x10], edx
mov edx, dword [rsp + 0x9c]
mov dword [rsi + 0x14], edx
mov rdx, qword [rsp + 0xa0]
mov qword [rsi + 0x18], rdx
mov qword [rsi], rax
mov qword [rsi + 8], rcx
lea rcx, [rsp + 0xa8]
call fcn.18003a590
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.called__Option::unwrap____on_a__None__value1AF0A12B
lea r8, [0x1800735e0]
mov edx, 0x2b
call fcn.18000c680
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value1AF0A12B
lea r8, [0x1800735f8]
mov edx, 0x2b
call fcn.18000c680
ud2
lea rax, [0x1800736a8]
mov qword [rsp + 0x20], rax
lea rcx, str.already_mutably_borrowed
lea r9, [0x180073810]
lea r8, [rsp + 0x28]
mov edx, 0x18
call fcn.18000cfc0
ud2
lea rcx, str.assertion_failed:_entry.tag.attr__.has_all_tag.attr___
lea r8, [0x180073660]
jmp 0x18003a54e
lea rax, [0x180073570]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedBE00B4CF
lea r9, [0x180073830]
jmp 0x18003a574
lea rcx, str.assertion_failed:_entry.tag.attr__.has_all_tag.attr___
lea r8, [0x180073678]
mov edx, 0x36
call fcn.18000c680
ud2
lea rax, [0x180076690]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedBE00B4CF
lea r9, [0x1800779c8]
lea r8, [rsp + 0x28]
mov edx, 0x10
call fcn.18000cfc0
ud2