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

Disassembly:
mov dword [rsp + 0x18], r8d
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 ebx, r9d
mov rdi, rcx
mov r12d, r15d
test rax, rax
je 0x1400898e7
cmp byte [rax], 0x31
jne 0x1400898e7
cmp dword [rsp + 0x88], 0x58
jne 0x1400898e7
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
test rcx, rcx
je 0x1400898e0
xor esi, esi
mov qword [rcx + 0x20], rsi
cmp qword [rcx + 0x30], rsi
jne 0x1400895cb
lea rax, [0x14008a0e0]
mov qword [rcx + 0x40], rsi
mov qword [rcx + 0x30], rax
cmp qword [rcx + 0x38], rsi
jne 0x1400895dc
lea rax, [fcn.14008a0f0]
mov qword [rcx + 0x38], rax
cmp edx, 0xffffffff
mov ebp, 6
cmovne ebp, edx
test ebx, ebx
jns 0x1400895f2
mov r12d, esi
neg ebx
jmp 0x140089600
cmp ebx, 0xf
jle 0x140089600
mov r12d, 2
sub ebx, 0x10
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 8
ja 0x1400898e0
cmp r8d, 8
jne 0x1400898e0
lea eax, [rbx - 8]
cmp eax, 7
ja 0x1400898e0
cmp ebp, 9
ja 0x1400898e0
cmp r13d, 4
ja 0x1400898e0
mov rcx, qword [rcx + 0x40]
cmp ebx, r8d
mov eax, 9
mov qword [rsp + 0x68], r14
mov r8d, 0x1718
mov edx, r15d
cmove ebx, eax
call qword [rdi + 0x30]
mov r14, rax
test rax, rax
je 0x1400898d9
mov qword [rdi + 0x28], rax
mov ecx, ebx
mov dword [rax + 0x48], ebx
mov r9d, r15d
mov ebx, dword [rsp + 0x70]
mov r8d, 2
shl r9d, cl
mov qword [rax], rdi
mov dword [rax + 0x2c], r12d
mov qword [rax + 0x30], rsi
lea ecx, [rbx + 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 [rdi + 0x40]
call qword [rdi + 0x30]
mov edx, dword [r14 + 0x44]
mov r8d, 2
mov qword [r14 + 0x50], rax
mov rcx, qword [rdi + 0x40]
call qword [rdi + 0x30]
mov edx, dword [r14 + 0x74]
mov r8d, 2
mov qword [r14 + 0x60], rax
mov rcx, qword [rdi + 0x40]
call qword [rdi + 0x30]
lea ecx, [rbx + 6]
mov qword [r14 + 0x68], rax
shl r15d, cl
mov r8d, 4
mov dword [r14 + 0x16f0], r15d
mov edx, r15d
mov rcx, qword [rdi + 0x40]
call qword [rdi + 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 0x1400898be
cmp qword [r14 + 0x60], rsi
je 0x1400898be
cmp qword [r14 + 0x68], rsi
je 0x1400898be
test rdx, rdx
je 0x1400898be
mov eax, ecx
mov dword [r14 + 0xac], ebp
shr rax, 1
mov dword [r14 + 0xb0], r13d
lea rax, [rdx + rax*2]
mov qword [r14 + 0x16f8], rax
lea rax, [rdx + rcx*2]
add rcx, rax
mov eax, dword [rsp + 0x60]
mov qword [r14 + 0x16e8], rcx
mov byte [r14 + 0x3c], al
mov rbx, qword [rdi + 0x28]
test rbx, rbx
je 0x14008989b
cmp qword [rdi + 0x30], rsi
je 0x14008989b
cmp qword [rdi + 0x38], rsi
je 0x14008989b
mov dword [rdi + 0x1c], esi
mov dword [rdi + 0xc], esi
mov qword [rdi + 0x20], rsi
mov dword [rdi + 0x48], 2
mov rax, qword [rbx + 0x10]
mov ecx, dword [rbx + 0x2c]
mov qword [rbx + 0x20], rax
mov dword [rbx + 0x28], esi
test ecx, ecx
jns 0x1400897cf
neg ecx
mov dword [rbx + 0x2c], ecx
test ecx, ecx
mov edx, 0x2a
mov eax, 0x71
cmovne eax, edx
xor r8d, r8d
xor edx, edx
mov dword [rbx + 8], eax
cmp ecx, 2
jne 0x1400897f4
xor ecx, ecx
call fcn.140087b40
jmp 0x1400897fb
xor ecx, ecx
call fcn.140089e00
mov dword [rdi + 0x4c], eax
mov rcx, rbx
mov dword [rbx + 0x40], esi
call fcn.14008b170
mov eax, dword [rbx + 0x44]
xor edx, edx
mov ecx, dword [rbx + 0x74]
add eax, eax
mov dword [rbx + 0x58], eax
dec ecx
mov rax, qword [rbx + 0x68]
mov word [rax + rcx*2], si
mov r8d, dword [rbx + 0x74]
mov rcx, qword [rbx + 0x68]
dec r8d
add r8, r8
call sub.VCRUNTIME140.dll_memset
movsxd rcx, dword [rbx + 0xac]
lea rdx, [0x1402d40b0]
add rcx, rcx
movzx eax, word [rdx + rcx*8 + 2]
mov dword [rbx + 0xa8], eax
movzx eax, word [rdx + rcx*8]
mov dword [rbx + 0xb4], eax
movzx eax, word [rdx + rcx*8 + 4]
mov dword [rbx + 0xb8], eax
movzx eax, word [rdx + rcx*8 + 6]
mov dword [rbx + 0xa4], eax
mov qword [rbx + 0x90], rsi
mov dword [rbx + 0x84], esi
mov dword [rbx + 0x9c], esi
mov dword [rbx + 0xa0], 2
mov dword [rbx + 0x88], 2
mov dword [rbx + 0x70], esi
jmp 0x1400898a0
mov esi, 0xfffffffe
mov eax, esi
mov r14, qword [rsp + 0x68]
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, rdi
mov rax, qword [str.insufficient_memory]
mov qword [rdi + 0x20], rax
call fcn.140089480
mov eax, 0xfffffffc
jmp 0x1400898a2
mov eax, 0xfffffffe
jmp 0x1400898a7
mov eax, 0xfffffffa
add rsp, 0x20
pop r15
pop r13
pop r12
pop rdi
pop rbx
ret