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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov r10d, dword [rdx + 0x12c]
mov r11d, r8d
mov eax, dword [rcx + 0x78]
mov r8, rdx
xor edx, edx
shl r10d, 3
div r10d
xor edx, edx
mov rdi, rcx
mov esi, eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x34], edx
cmp dword [r8 + 0x4c], edx
jle 0x1400170d0
mov r10, qword [rsp + 0xd8]
xor ecx, ecx
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r14
mov r14, qword [rsp + 0xd0]
sub r10, r14
mov qword [rsp + 0x68], r15
mov qword [rsp + 0xd8], r10
mov qword [rsp + 0x48], rcx
nop dword [rax + rax]
mov rbx, qword [r8 + 0x58]
xor r13d, r13d
add rbx, rcx
mov dword [rsp + 0x30], r13d
mov eax, r11d
mov ecx, dword [rbx + 0xc]
mov r12d, ecx
imul eax, dword [rbx + 8]
imul r12d, esi
mov esi, ecx
imul esi, r9d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], esi
cmp dword [rbx + 0x20], r13d
jbe 0x14001707b
nop dword [rax + rax]
mov rax, qword [rdi + 8]
mov r9d, ecx
mov rdx, qword [r10 + r14]
mov r8d, r13d
mov rcx, rdi
mov byte [rsp + 0x20], 1
call qword [rax + 0x40]
mov rcx, qword [rdi + 8]
lea r15d, [rsi + r13]
mov r9d, dword [rbx + 0xc]
mov rdx, qword [r14]
mov qword [rsp + 0x50], rax
mov r10, qword [rcx + 0x40]
mov rcx, rdi
mov byte [rsp + 0x20], 0
cmp r15d, r12d
jae 0x140016edc
mov r8d, r12d
sub r8d, r9d
sub r8d, r13d
sub r8d, esi
jmp 0x140016edf
mov r8d, r15d
call r10
mov ecx, dword [rbx + 0xc]
xor esi, esi
mov rbp, rax
test ecx, ecx
jle 0x140017041
mov r14d, dword [rsp + 0x38]
mov r13, qword [rsp + 0x50]
shl r14, 7
xor edi, edi
cmp r15d, r12d
jae 0x140017007
mov r10, qword [rdi + r13]
sub ecx, esi
movsxd rax, ecx
xor r8d, r8d
mov r11, qword [rbp + rax*8 - 8]
add r11, r14
cmp dword [rbx + 0x1c], r8d
jbe 0x14001701b
nop dword [rax]
mov eax, r8d
mov r9d, 4
shl rax, 7
lea rdx, [rax + r10]
add rax, r11
nop dword [rax]
nop dword [rax + rax]
movzx ecx, word [rax]
lea rax, [rax + 0x20]
mov word [rdx], cx
lea rdx, [rdx + 0x20]
movzx ecx, word [rax - 0x1e]
mov word [rdx - 0x1e], cx
movzx ecx, word [rax - 0x1c]
mov word [rdx - 0x1c], cx
movzx ecx, word [rax - 0x1a]
mov word [rdx - 0x1a], cx
movzx ecx, word [rax - 0x18]
mov word [rdx - 0x18], cx
movzx ecx, word [rax - 0x16]
mov word [rdx - 0x16], cx
movzx ecx, word [rax - 0x14]
mov word [rdx - 0x14], cx
movzx ecx, word [rax - 0x12]
mov word [rdx - 0x12], cx
movzx ecx, word [rax - 0x10]
neg cx
mov word [rdx - 0x10], cx
movzx ecx, word [rax - 0xe]
neg cx
mov word [rdx - 0xe], cx
movzx ecx, word [rax - 0xc]
neg cx
mov word [rdx - 0xc], cx
movzx ecx, word [rax - 0xa]
neg cx
mov word [rdx - 0xa], cx
movzx ecx, word [rax - 8]
neg cx
mov word [rdx - 8], cx
movzx ecx, word [rax - 6]
neg cx
mov word [rdx - 6], cx
movzx ecx, word [rax - 4]
neg cx
mov word [rdx - 4], cx
movzx ecx, word [rax - 2]
neg cx
mov word [rdx - 2], cx
sub r9, 1
jne 0x140016f50
inc r8d
cmp r8d, dword [rbx + 0x1c]
jb 0x140016f30
jmp 0x14001701b
mov rcx, qword [rdi + rbp]
mov r8d, dword [rbx + 0x1c]
add rcx, r14
mov rdx, qword [rdi + r13]
call fcn.14001f8a0
mov ecx, dword [rbx + 0xc]
inc esi
add rdi, 8
cmp esi, ecx
jl 0x140016f02
mov r13d, dword [rsp + 0x30]
mov rdi, qword [rsp + 0xb0]
mov r14, qword [rsp + 0xd0]
mov esi, dword [rsp + 0x3c]
add r13d, ecx
mov r10, qword [rsp + 0xd8]
mov dword [rsp + 0x30], r13d
cmp r13d, dword [rbx + 0x20]
jb 0x140016e90
mov edx, dword [rsp + 0x34]
mov r8, qword [rsp + 0xb8]
mov r9d, dword [rsp + 0xc8]
mov r11d, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x48]
inc edx
mov esi, dword [rsp + 0x40]
add rcx, 0x60
add r14, 8
mov dword [rsp + 0x34], edx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0xd0], r14
cmp edx, dword [r8 + 0x4c]
jl 0x140016e50
mov r15, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x90]
add rsp, 0x98
pop rdi
pop rsi
ret