Function at 0x14022c990
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 0x14022cd20
cmp byte [rax], 0x31
jne 0x14022cd20
cmp dword [rsp + 0x88], 0x58
jne 0x14022cd20
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
test rcx, rcx
je 0x14022cd19
xor esi, esi
mov qword [rcx + 0x20], rsi
cmp qword [rcx + 0x30], rsi
jne 0x14022ca07
lea rax, [0x140264190]
mov qword [rcx + 0x40], rsi
mov qword [rcx + 0x30], rax
cmp qword [rcx + 0x38], rsi
jne 0x14022ca18
lea rax, [0x1402641b0]
mov qword [rcx + 0x38], rax
cmp edx, 0xffffffff
mov ebp, 6
cmovne ebp, edx
test edi, edi
jns 0x14022ca2e
mov r12d, esi
neg edi
jmp 0x14022ca3c
cmp edi, 0xf
jle 0x14022ca3c
mov r12d, 2
sub edi, 0x10
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 8
ja 0x14022cd19
cmp r8d, 8
jne 0x14022cd19
lea eax, [rdi - 8]
cmp eax, 7
ja 0x14022cd19
cmp ebp, 9
ja 0x14022cd19
cmp r13d, 4
ja 0x14022cd19
mov rcx, qword [rcx + 0x40]
cmp edi, r8d
mov eax, 9
mov qword [rsp + 0x60], r14
mov r8d, 0x1718
mov edx, r15d
cmove edi, eax
call qword [rbx + 0x30]
mov r14, rax
test rax, rax
je 0x14022cd12
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 qword [r14 + 0x68], rax
shl r15d, cl
mov r8d, 4
mov dword [r14 + 0x16f0], r15d
mov edx, r15d
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 0x14022ccf7
cmp qword [r14 + 0x60], rsi
je 0x14022ccf7
cmp qword [r14 + 0x68], rsi
je 0x14022ccf7
test rdx, rdx
je 0x14022ccf7
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 0x14022ccd4
cmp qword [rbx + 0x30], rsi
je 0x14022ccd4
cmp qword [rbx + 0x38], rsi
je 0x14022ccd4
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 0x14022cc08
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 0x14022cc2d
xor ecx, ecx
call fcn.14022e110
jmp 0x14022cc34
xor ecx, ecx
call fcn.140263db0
mov dword [rbx + 0x4c], eax
mov rcx, rdi
mov dword [rdi + 0x40], esi
call fcn.1402641c0
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.14039e693
movsxd rcx, dword [rdi + 0xac]
lea rdx, [0x140454ef0]
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 0x14022ccd9
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.14022c190
mov eax, 0xfffffffc
jmp 0x14022ccdb
mov eax, 0xfffffffe
jmp 0x14022cce0
mov eax, 0xfffffffa
add rsp, 0x20
pop r15
pop r13
pop r12
pop rdi
pop rbx
ret