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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14000c877
lea eax, [rcx - 2]
add rsp, 0x20
pop rbx
ret
mov rax, qword [rcx + 0x30]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
xor edi, edi
mov qword [rcx + 0x20], rdi
test rax, rax
jne 0x14000c8a3
lea rax, [0x140010810]
mov qword [rcx + 0x40], rdi
mov qword [rcx + 0x30], rax
mov ecx, edi
jmp 0x14000c8a7
mov rcx, qword [rcx + 0x40]
cmp qword [rbx + 0x38], rdi
jne 0x14000c8b8
lea rdx, [0x140010830]
mov qword [rbx + 0x38], rdx
mov edx, 1
mov r8d, 0x1718
call rax
mov rsi, rax
test rax, rax
je 0x14000cb8b
mov qword [rbx + 0x28], rax
mov edx, 0x8000
mov qword [rax], rbx
mov r8d, 2
mov dword [rax + 0x2c], 1
mov qword [rax + 0x30], rdi
mov dword [rax + 0x48], 0xf
mov dword [rax + 0x44], 0x8000
mov dword [rax + 0x4c], 0x7fff
mov dword [rax + 0x78], 0xf
mov dword [rax + 0x74], 0x8000
mov dword [rax + 0x7c], 0x7fff
mov dword [rax + 0x80], 5
mov rcx, qword [rbx + 0x40]
call qword [rbx + 0x30]
mov edx, dword [rsi + 0x44]
mov r8d, 2
mov qword [rsi + 0x50], rax
mov rcx, qword [rbx + 0x40]
call qword [rbx + 0x30]
mov edx, dword [rsi + 0x74]
mov r8d, 2
mov qword [rsi + 0x60], rax
mov rcx, qword [rbx + 0x40]
call qword [rbx + 0x30]
mov dword [rsi + 0x16f0], 0x4000
mov edx, 0x4000
mov qword [rsi + 0x68], rax
mov r8d, 4
mov rcx, qword [rbx + 0x40]
call qword [rbx + 0x30]
mov rdx, rax
mov qword [rsi + 0x10], rax
mov eax, dword [rsi + 0x16f0]
lea ecx, [rax*4]
mov dword [rsi + 0x18], ecx
cmp qword [rsi + 0x50], rdi
je 0x14000cb71
cmp qword [rsi + 0x60], rdi
je 0x14000cb71
cmp qword [rsi + 0x68], rdi
je 0x14000cb71
test rdx, rdx
je 0x14000cb71
mov ecx, eax
mov qword [rsi + 0xac], 6
shr rax, 1
mov byte [rsi + 0x3c], 8
lea rax, [rdx + rax*2]
mov qword [rsi + 0x16f8], rax
lea rax, [rdx + rcx*2]
add rcx, rax
mov qword [rsi + 0x16e8], rcx
mov rsi, qword [rbx + 0x28]
test rsi, rsi
je 0x14000cb5a
cmp qword [rbx + 0x30], rdi
je 0x14000cb5a
cmp qword [rbx + 0x38], rdi
je 0x14000cb5a
mov dword [rbx + 0x1c], edi
mov dword [rbx + 0xc], edi
mov qword [rbx + 0x20], rdi
mov dword [rbx + 0x48], 2
mov rax, qword [rsi + 0x10]
mov ecx, dword [rsi + 0x2c]
mov qword [rsi + 0x20], rax
mov dword [rsi + 0x28], edi
test ecx, ecx
jns 0x14000ca25
neg ecx
mov dword [rsi + 0x2c], ecx
test ecx, ecx
mov eax, 0x71
mov edx, 0x2a
cmovne eax, edx
cmp ecx, 2
mov dword [rsi + 8], eax
mov rcx, rsi
mov eax, edi
setne al
mov dword [rbx + 0x4c], eax
lea rax, [rsi + 0xbc]
mov qword [rsi + 0xb40], rax
lea rax, [0x14004ac50]
mov qword [rsi + 0xb50], rax
lea rax, [rsi + 0x9b0]
mov qword [rsi + 0xb58], rax
lea rax, [0x14004ac10]
mov qword [rsi + 0xb68], rax
lea rax, [rsi + 0xaa4]
mov qword [rsi + 0xb70], rax
lea rax, [0x14004ac30]
mov qword [rsi + 0xb80], rax
mov dword [rsi + 0x40], edi
mov word [rsi + 0x1710], di
mov dword [rsi + 0x1714], edi
mov dword [rsi + 0x170c], 8
call fcn.14000ea20
mov ecx, dword [rsi + 0x44]
xor edx, edx
mov rax, qword [rsi + 0x68]
add ecx, ecx
mov dword [rsi + 0x58], ecx
mov ecx, dword [rsi + 0x74]
dec ecx
mov word [rax + rcx*2], di
mov r8d, dword [rsi + 0x74]
mov rcx, qword [rsi + 0x68]
dec r8d
add r8, r8
call fcn.140013690
movsxd rcx, dword [rsi + 0xac]
lea rdx, [0x140042f60]
add rcx, rcx
movzx eax, word [rdx + rcx*8 + 2]
mov dword [rsi + 0xa8], eax
movzx eax, word [rdx + rcx*8]
mov dword [rsi + 0xb4], eax
movzx eax, word [rdx + rcx*8 + 4]
mov dword [rsi + 0xb8], eax
movzx eax, word [rdx + rcx*8 + 6]
mov dword [rsi + 0xa4], eax
mov eax, edi
mov qword [rsi + 0x90], rdi
mov dword [rsi + 0x84], edi
mov dword [rsi + 0x9c], edi
mov dword [rsi + 0x70], edi
mov rdi, qword [rsp + 0x38]
mov dword [rsi + 0xa0], 2
mov dword [rsi + 0x88], 2
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rsi, qword [rsp + 0x30]
mov edi, 0xfffffffe
mov eax, edi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov rax, qword [str.insufficient_memory]
mov rcx, rbx
mov dword [rsi + 8], 0x29a
mov qword [rbx + 0x20], rax
call fcn.14000d740
mov rsi, qword [rsp + 0x30]
mov eax, 0xfffffffc
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret