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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, qword [rcx + 0x1290]
xor r9d, r9d
mov rdi, qword [rcx]
add rbx, 0x3c
movsxd r8, edx
imul rbp, r8, 0x928
imul r8, r8, 0x624
add rbp, rcx
mov dword [rsp + 0x78], r9d
mov qword [rsp + 0x80], rdi
movsxd rax, dword [rbp + 0x38]
mov rsi, qword [rbp + 0x40]
add rbx, r8
mov dword [rbp + 0x48], r9d
lea r12, [rax + rax*4]
shl r12, 4
add r12, rsi
test edx, edx
jne 0x140065929
mov r13d, dword [rcx + 8]
mov edx, dword [rcx + 0x10]
lea ecx, [r9 + 0x40]
call fcn.140059a50
mov r15d, eax
jmp 0x140065930
mov r13d, dword [rcx + 0x10]
mov r15d, r9d
mov ecx, dword [rbx + 0xcc]
mov edx, r13d
call fcn.14005b560
mov ecx, 0x10
mov edx, r13d
cmp eax, ecx
cmovg eax, ecx
mov ecx, eax
call fcn.140059a50
mov r14d, eax
cmp rsi, r12
jae 0x140065a5d
inc rsi
movsx ecx, word [rsi + 7]
cmp ecx, r15d
jl 0x140065a4c
cmp qword [rsi + 0x27], 0
je 0x140065983
add ecx, ecx
lea eax, [r15 + r15*2]
cmp ecx, eax
jl 0x140065a4c
mov r9d, dword [rbp + 0x48]
xor r8d, r8d
test r9d, r9d
jle 0x1400659c9
movsx r10d, word [rsi + 1]
mov rdx, qword [rbp + 0x50]
nop dword [rax + rax]
movsx eax, word [rdx]
mov ecx, r10d
sub ecx, eax
jns 0x1400659ac
neg ecx
cmp ecx, r14d
jge 0x1400659bd
movzx eax, byte [rsi]
cmp byte [rdx + 0xd], al
je 0x140065ad9
inc r8d
add rdx, 0x48
cmp r8d, r9d
jl 0x1400659a0
movsx r8d, byte [rsi]
lea rax, [rsp + 0x70]
movsx edx, word [rsi + 1]
lea rcx, [rbp + 0x38]
mov r9, rdi
mov qword [rsp + 0x20], rax
call fcn.140061990
mov dword [rsp + 0x78], eax
test eax, eax
jne 0x140065bc5
mov rdi, qword [rsp + 0x70]
lea rbx, [rsi - 1]
xor eax, eax
mov edx, r13d
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x38], rbx
mov qword [rdi + 0x40], rbx
movzx eax, byte [rsi]
mov byte [rdi + 0xd], al
movzx eax, word [rsi + 1]
mov word [rdi], ax
movsx ecx, word [rsi + 1]
call fcn.14005b560
mov dword [rdi + 4], eax
mov dword [rdi + 8], eax
mov rdi, qword [rsp + 0x80]
mov qword [rsi + 0x17], rbx
add rsi, 0x50
lea rax, [rsi - 1]
cmp rax, r12
jb 0x140065961
mov rdx, qword [rbp + 0x50]
movsxd rax, dword [rbp + 0x48]
lea rcx, [rax + rax*8]
lea rbp, [rdx + rcx*8]
mov rcx, rdx
cmp rdx, rbp
jae 0x140065bc1
nop dword [rax]
mov rax, qword [rcx + 0x38]
test rax, rax
je 0x140065a9e
nop dword [rax]
mov qword [rax + 0x10], rcx
mov rax, qword [rax + 0x18]
cmp rax, qword [rcx + 0x38]
jne 0x140065a90
add rcx, 0x48
cmp rcx, rbp
jb 0x140065a80
cmp rdx, rbp
jae 0x140065bc1
add rdx, 0xc
mov r14d, 1
xor r15d, r15d
nop dword [rax]
mov r8, qword [rdx + 0x2c]
mov edi, r15d
mov esi, r15d
nop word [rax + rax]
test byte [r8], r14b
je 0x140065af6
inc edi
jmp 0x140065af8
mov rax, qword [rdx + 0x38]
lea rcx, [rsi - 1]
mov qword [rsi + 0x17], rax
mov rax, qword [rdx + 0x40]
mov qword [rax + 0x18], rcx
mov qword [rdx + 0x40], rcx
jmp 0x140065a4c
inc esi
mov rcx, qword [r8 + 0x28]
test rcx, rcx
je 0x140065b19
mov r9, qword [rcx + 0x10]
test r9, r9
je 0x140065b19
lea rax, [rdx - 0xc]
cmp r9, rax
je 0x140065b19
movzx ebx, r14b
jmp 0x140065b1b
xor bl, bl
mov r10, qword [r8 + 0x20]
test r10, r10
je 0x140065b2a
cmp qword [r10 + 0x10], r15
jne 0x140065b2e
test bl, bl
je 0x140065b7f
mov rax, qword [rdx + 0x14]
test bl, bl
je 0x140065b3d
mov rax, qword [rdx + 0x1c]
mov r10, rcx
test rax, rax
je 0x140065b69
movsx r9d, word [rdx - 0xc]
movsx ecx, word [rax]
sub r9d, ecx
jns 0x140065b52
neg r9d
movsx ecx, word [r10 + 2]
movsx r11d, word [r8 + 2]
sub r11d, ecx
jns 0x140065b64
neg r11d
cmp r11d, r9d
jge 0x140065b6d
mov rax, qword [r10 + 0x10]
test bl, bl
je 0x140065b7b
mov qword [rdx + 0x1c], rax
or byte [rax + 0xc], 2
jmp 0x140065b7f
mov qword [rdx + 0x14], rax
mov r8, qword [r8 + 0x18]
cmp r8, qword [rdx + 0x2c]
jne 0x140065ad0
mov byte [rdx], r15b
test edi, edi
jle 0x140065ba0
cmp edi, esi
movzx eax, r15b
cmovge eax, r14d
mov byte [rdx], al
cmp qword [rdx + 0x1c], r15
je 0x140065bb0
cmp qword [rdx + 0x14], r15
je 0x140065bb0
mov qword [rdx + 0x1c], r15
add rdx, 0x48
lea rax, [rdx - 0xc]
cmp rax, rbp
jb 0x140065ac0
mov eax, dword [rsp + 0x78]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret