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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
mov r12, rdx
mov rbx, rcx
mov edi, ebp
test rdx, rdx
je 0x140018256
mov esi, dword [rdx + 0x18]
mov ecx, 0x200
call fcn.140006670
mov r15, rax
test rax, rax
je 0x14001824c
lea rcx, [rax + 4]
xor edx, edx
mov r8d, 0x1fc
call fcn.1400ff0e0
mov dword [r15], esi
lea r14, [rbx + 0x60]
mov eax, dword [r12 + 0x18]
lea rsi, [rbx + 0x128]
mov rdx, qword [r14]
mov r13, rdx
mov dword [rbx + 0x20], eax
movzx eax, byte [rbx + 0x10]
mov byte [rbx + 0x17], al
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdx
cmp qword [rsi], rdi
jne 0x140018388
mov rsi, qword [r12 + 8]
mov rax, qword [r12]
test rsi, rsi
mov qword [r14], rax
cmove rsi, rdx
nop
mov rax, qword [r14]
cmp rax, rsi
jge 0x14001823f
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r15
mov rdx, r14
mov rcx, rbx
call fcn.140017300
mov edi, eax
test eax, eax
je 0x140018210
jmp 0x140018446
test edi, edi
jne 0x140018446
jmp 0x140018390
mov eax, 7
jmp 0x140018575
mov eax, dword [rcx + 0x24]
mov r15, rbp
mov dword [rcx + 0x20], eax
movzx eax, byte [rcx + 0x10]
mov byte [rcx + 0x17], al
lea rax, [rcx + 0x128]
mov rsi, qword [rax]
test rsi, rsi
je 0x140018374
mov eax, dword [rcx + 0x24]
mov dword [rcx + 0x20], eax
cmp byte [rsi + 0x40], dil
je 0x140018314
mov r15d, dword [rsi + 0x58]
mov rax, qword [rsi + 0x30]
mov rcx, qword [rax]
movups xmm0, xmmword [rcx]
movups xmmword [rsi + 0x48], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rsi + 0x58], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rsi + 0x68], xmm0
mov edi, dword [rsi + 0x58]
inc edi
lea r14d, [rdi + 0x1000]
cmp edi, r15d
ja 0x140018306
mov r8, qword [rsi + 0x30]
mov eax, r14d
sub rax, 0xfdf
shr rax, 0xc
test eax, eax
jne 0x1400182dd
mov rax, qword [r8]
mov edx, dword [rax + rdi*4 + 0x84]
jmp 0x1400182f3
cdqe
lea edx, [rdi - 1]
add rdx, 0x22
and edx, 0xfff
mov rcx, qword [r8 + rax*8]
mov edx, dword [rcx + rdx*4]
mov rcx, rbx
call fcn.140017ef0
inc edi
inc r14d
mov ebp, eax
test eax, eax
je 0x1400182b7
cmp r15d, dword [rsi + 0x58]
je 0x140018314
mov rcx, rsi
call fcn.14001c0a0
mov rcx, qword [rbx + 0x120]
mov rdx, qword [rcx]
test rdx, rdx
je 0x140018340
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdx + 0x38]
mov qword [rdx + 0x20], rax
mov rdx, rax
test rax, rax
jne 0x140018330
mov rcx, qword [rcx]
call fcn.1400148a0
test rax, rax
je 0x14001836d
nop dword [rax]
test ebp, ebp
jne 0x14001836d
mov edx, dword [rax + 0x30]
mov rcx, rbx
mov rdi, qword [rax + 0x20]
call fcn.140017ef0
mov ebp, eax
mov rax, rdi
test rdi, rdi
jne 0x140018350
mov eax, ebp
jmp 0x140018575
lea r14, [rcx + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [r14]
mov qword [rsp + 0x30], rax
mov r13, rax
mov qword [r14], rbp
mov rax, rbp
nop
cmp rax, r13
jge 0x140018435
lea rax, [rsp + 0x98]
mov dword [rsp + 0x90], ebp
lea r9, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r8, r13
xor edx, edx
mov rcx, rbx
call fcn.1400166f0
mov r12d, dword [rsp + 0x90]
mov edi, eax
test r12d, r12d
jne 0x1400183fe
mov eax, dword [rbx + 0xb8]
add rax, qword [rbx + 0x68]
mov rcx, qword [r14]
cmp rax, rcx
jne 0x1400183fe
mov rax, qword [rsp + 0x30]
sub rax, rcx
mov rcx, qword [rbx + 0xc8]
add rcx, 8
cqo
idiv rcx
mov r12, rax
mov esi, ebp
test edi, edi
jne 0x140018435
mov rax, qword [r14]
cmp esi, r12d
jae 0x140018390
cmp rax, r13
jge 0x140018435
mov r9d, 1
mov dword [rsp + 0x20], 1
mov r8, r15
mov rdx, r14
mov rcx, rbx
call fcn.140017300
inc esi
mov edi, eax
test eax, eax
je 0x140018404
mov r12, qword [rsp + 0x88]
test r12, r12
je 0x1400184eb
mov rax, qword [rbx + 0xc8]
mov esi, dword [r12 + 0x1c]
add rax, 4
mov rcx, qword [rsp + 0x38]
imul rax, rsi
mov rcx, qword [rcx]
mov qword [rsp + 0x90], rax
test rcx, rcx
je 0x1400184bc
mov eax, dword [rcx + 0x88]
cmp dword [r12 + 0x30], eax
je 0x140018491
mov dword [r12 + 0x24], ebp
mov eax, dword [rcx + 0x88]
mov dword [r12 + 0x30], eax
mov esi, dword [r12 + 0x1c]
mov eax, dword [r12 + 0x24]
cmp eax, dword [rcx + 0x58]
jae 0x1400184b8
mov dword [rcx + 0x58], eax
mov eax, dword [r12 + 0x28]
mov dword [rcx + 0x60], eax
mov eax, dword [r12 + 0x2c]
mov dword [rcx + 0x64], eax
call fcn.14001c0a0
mov esi, dword [r12 + 0x1c]
mov edi, ebp
jmp 0x1400184c0
test edi, edi
jne 0x1400184eb
cmp esi, dword [rbx + 0x3c]
jae 0x1400184eb
xor r9d, r9d
mov dword [rsp + 0x20], 1
mov r8, r15
lea rdx, [rsp + 0x90]
mov rcx, rbx
call fcn.140017300
inc esi
mov edi, eax
test eax, eax
je 0x1400184c0
test r15, r15
je 0x14001856c
cmp dword [r15 + 8], ebp
je 0x140018512
lea rbx, [r15 + 0x10]
mov esi, 0x3e
nop
mov rcx, qword [rbx]
call fcn.140013ed0
lea rbx, [rbx + 8]
sub rsi, 1
jne 0x140018500
cmp dword [0x14015de40], ebp
je 0x140018563
mov rcx, qword [0x140163758]
test rcx, rcx
je 0x14001852c
call qword [0x14015dec0]
mov rcx, r15
call qword [0x14015de78]
dec qword [0x1401634c8]
mov rcx, r15
movsxd rdx, eax
sub qword [0x140163480], rdx
call qword [0x14015de68]
mov rcx, qword [0x140163758]
test rcx, rcx
je 0x14001856c
call qword [0x14015ded0]
jmp 0x14001856c
mov rcx, r15
call qword [0x14015de68]
test edi, edi
jne 0x140018573
mov qword [r14], r13
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret