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

Disassembly:
push rbx
push rdi
push r12
push r13
push r15
sub rsp, 0x20
mov rax, qword [rsp + 0x80]
mov r15d, 1
mov r13d, dword [rsp + 0x78]
mov edi, r9d
mov rbx, rcx
mov r12d, r15d
test rax, rax
je 0x14006dd97
cmp byte [rax], 0x31
jne 0x14006dd97
cmp dword [rsp + 0x88], 0x58
jne 0x14006dd97
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
test rcx, rcx
je 0x14006dd90
xor esi, esi
mov qword [rcx + 0x20], rsi
cmp qword [rcx + 0x30], rsi
jne 0x14006da77
lea rax, [0x140082da0]
mov qword [rcx + 0x40], rsi
mov qword [rcx + 0x30], rax
cmp qword [rcx + 0x38], rsi
jne 0x14006da88
lea rax, [0x140082db0]
mov qword [rcx + 0x38], rax
cmp edx, 0xffffffff
mov ebp, 6
cmovne ebp, edx
test edi, edi
jns 0x14006da9e
mov r12d, esi
neg edi
jmp 0x14006daac
cmp edi, 0xf
jle 0x14006daac
mov r12d, 2
sub edi, 0x10
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 8
ja 0x14006dd90
cmp r8d, 8
jne 0x14006dd90
lea eax, [rdi - 8]
cmp eax, 7
ja 0x14006dd90
cmp ebp, 9
ja 0x14006dd90
cmp r13d, 4
ja 0x14006dd90
mov rcx, qword [rcx + 0x40]
cmp edi, r8d
mov eax, 9
mov qword [rsp + 0x60], r14
mov r8d, 0x1720
mov edx, r15d
cmove edi, eax
call qword [rbx + 0x30]
mov r14, rax
test rax, rax
je 0x14006dd89
mov qword [rbx + 0x28], rax
mov ecx, edi
mov dword [rax + 0x48], edi
mov r9d, r15d
mov edi, dword [rsp + 0x70]
mov r8d, 2
shl r9d, cl
mov qword [rax], rbx
mov dword [rax + 0x2c], r12d
mov qword [rax + 0x30], rsi
lea ecx, [rdi + 7]
mov dword [rax + 0x44], r9d
lea eax, [r9 - 1]
mov dword [r14 + 0x4c], eax
mov eax, r15d
shl eax, cl
mov dword [r14 + 0x74], eax
dec eax
mov dword [r14 + 0x7c], eax
mov eax, 0xaaaaaaab
mov dword [r14 + 0x78], ecx
add ecx, 2
mul ecx
shr edx, 1
mov dword [r14 + 0x80], edx
mov edx, r9d
mov rcx, qword [rbx + 0x40]
call qword [rbx + 0x30]
mov edx, dword [r14 + 0x44]
mov r8d, 2
mov qword [r14 + 0x50], rax
mov rcx, qword [rbx + 0x40]
call qword [rbx + 0x30]
mov edx, dword [r14 + 0x74]
mov r8d, 2
mov qword [r14 + 0x60], rax
mov rcx, qword [rbx + 0x40]
call qword [rbx + 0x30]
lea ecx, [rdi + 6]
mov dword [r14 + 0x1718], esi
shl r15d, cl
mov r8d, 4
mov dword [r14 + 0x16f0], r15d
mov edx, r15d
mov qword [r14 + 0x68], rax
mov rcx, qword [rbx + 0x40]
call qword [rbx + 0x30]
mov rdx, rax
mov ecx, dword [r14 + 0x16f0]
mov qword [r14 + 0x10], rax
lea eax, [rcx*4]
mov dword [r14 + 0x18], eax
cmp qword [r14 + 0x50], rsi
je 0x14006dd6e
cmp qword [r14 + 0x60], rsi
je 0x14006dd6e
cmp qword [r14 + 0x68], rsi
je 0x14006dd6e
test rdx, rdx
je 0x14006dd6e
mov eax, ecx
mov dword [r14 + 0xac], ebp
shr rax, 1
mov dword [r14 + 0xb0], r13d
mov byte [r14 + 0x3c], 8
lea rax, [rdx + rax*2]
mov qword [r14 + 0x16f8], rax
lea rax, [rdx + rcx*2]
add rcx, rax
mov qword [r14 + 0x16e8], rcx
mov rdi, qword [rbx + 0x28]
test rdi, rdi
je 0x14006dd4b
cmp qword [rbx + 0x30], rsi
je 0x14006dd4b
cmp qword [rbx + 0x38], rsi
je 0x14006dd4b
mov dword [rbx + 0x1c], esi
mov dword [rbx + 0xc], esi
mov qword [rbx + 0x20], rsi
mov dword [rbx + 0x48], 2
mov rax, qword [rdi + 0x10]
mov ecx, dword [rdi + 0x2c]
mov qword [rdi + 0x20], rax
mov dword [rdi + 0x28], esi
test ecx, ecx
jns 0x14006dc7f
neg ecx
mov dword [rdi + 0x2c], ecx
test ecx, ecx
mov edx, 0x2a
mov eax, 0x71
cmovne eax, edx
xor r8d, r8d
xor edx, edx
mov dword [rdi + 8], eax
cmp ecx, 2
jne 0x14006dca4
xor ecx, ecx
call fcn.140071bc0
jmp 0x14006dcab
xor ecx, ecx
call fcn.1400537a0
mov dword [rbx + 0x4c], eax
mov rcx, rdi
mov dword [rdi + 0x40], esi
call fcn.1400814d0
mov eax, dword [rdi + 0x44]
xor edx, edx
mov ecx, dword [rdi + 0x74]
add eax, eax
mov dword [rdi + 0x58], eax
dec ecx
mov rax, qword [rdi + 0x68]
mov word [rax + rcx*2], si
mov r8d, dword [rdi + 0x74]
mov rcx, qword [rdi + 0x68]
dec r8d
add r8, r8
call fcn.1400b1140
movsxd rcx, dword [rdi + 0xac]
lea rdx, [0x1400b7b80]
add rcx, rcx
movzx eax, word [rdx + rcx*8 + 2]
mov dword [rdi + 0xa8], eax
movzx eax, word [rdx + rcx*8]
mov dword [rdi + 0xb4], eax
movzx eax, word [rdx + rcx*8 + 4]
mov dword [rdi + 0xb8], eax
movzx eax, word [rdx + rcx*8 + 6]
mov dword [rdi + 0xa4], eax
mov qword [rdi + 0x90], rsi
mov dword [rdi + 0x84], esi
mov dword [rdi + 0x9c], esi
mov dword [rdi + 0xa0], 2
mov dword [rdi + 0x88], 2
mov dword [rdi + 0x70], esi
jmp 0x14006dd50
mov esi, 0xfffffffe
mov eax, esi
mov r14, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r13
pop r12
pop rdi
pop rbx
ret
mov dword [r14 + 8], 0x29a
mov rcx, rbx
mov rax, qword [str.insufficient_memory]
mov qword [rbx + 0x20], rax
call fcn.14006d920
mov eax, 0xfffffffc
jmp 0x14006dd52
mov eax, 0xfffffffe
jmp 0x14006dd57
mov eax, 0xfffffffa
add rsp, 0x20
pop r15
pop r13
pop r12
pop rdi
pop rbx
ret