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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [rcx]
xor edi, edi
mov ebp, r9d
mov r9d, edx
cmp rcx, rdi
je 0x14006584a
mov eax, dword [rcx + 8]
cmp eax, edi
je 0x14006584a
mov r14d, dword [rsi + 8]
dec eax
mov r12d, edi
cmp r14d, eax
mov dword [rsp + 0x28], edi
lea r13d, [rdi + 1]
sete r12b
cmp r14d, dword [rcx + 8]
jae 0x1400653f5
cmp qword [rcx], rdi
je 0x1400653f5
mov eax, dword [rcx + 0x10]
imul eax, r14d
movsxd rbx, eax
add rbx, qword [rcx]
jmp 0x1400653f8
mov rbx, rdi
movdqu xmm0, xmmword [rsi]
mov r10d, dword [rbx]
mov r15d, dword [rsi + 0xc]
lea rcx, [rsp + 0x30]
mov r11d, r10d
mov byte [rsp + 0x80], dil
movdqu xmmword [rsp + 0x30], xmm0
sub r11d, r15d
mov byte [rsp + 0x81], dil
call fcn.1400651d4
mov rcx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x38]
cmp r8d, dword [rcx + 8]
jae 0x14006544d
cmp qword [rcx], rdi
je 0x14006544d
mov eax, dword [rcx + 0x10]
imul eax, r8d
movsxd rdx, eax
add rdx, qword [rcx]
jmp 0x140065450
mov rdx, rdi
movsx eax, word [rdx + 4]
mov dword [rsp + 0x24], eax
cmp r8d, dword [rcx + 8]
jae 0x140065472
cmp qword [rcx], rdi
je 0x140065472
mov eax, dword [rcx + 0x10]
imul eax, r8d
movsxd rdx, eax
add rdx, qword [rcx]
jmp 0x140065475
mov rdx, rdi
movzx edi, word [rdx + 6]
movdqu xmm0, xmm0
mov word [rsp + 0x20], di
movdqu xmmword [rsp + 0x30], xmm0
test r12d, r12d
je 0x14006549a
cmp r9d, r11d
mov eax, r11d
cmovl eax, r9d
mov r9d, eax
cmp r9d, r11d
jg 0x140065553
sub r10d, r9d
mov dword [rbx], r10d
test ebp, ebp
je 0x1400654f8
lea rcx, [rsp + 0x30]
call fcn.14006521c
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x90]
test ebp, ebp
je 0x140065842
mov rax, qword [rsi]
mov ecx, dword [rsi + 8]
cmp ecx, dword [rax + 8]
jae 0x1400657a2
mov rdx, qword [rax]
test rdx, rdx
je 0x1400657a2
mov eax, dword [rax + 0x10]
imul eax, ecx
movsxd rcx, eax
add rcx, rdx
jmp 0x1400657a4
test r10d, r10d
jne 0x14006584a
cmp dword [rsi + 8], r10d
je 0x14006550c
test r12d, r12d
je 0x140065527
mov rcx, rsi
call fcn.1400651d4
cmp dword [rsi + 0xc], 0
mov eax, 2
cmovne r13d, eax
lea r14d, [rax - 4]
jmp 0x14006552c
mov r14d, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14006554c
lea rcx, [rsp + 0x30]
call fcn.140064e20
mov r9d, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
jmp 0x1400655b4
mov r9d, dword [rsp + 0x38]
jmp 0x1400655b4
lea rcx, [rsp + 0x30]
mov edx, r9d
call fcn.140064ec8
mov rcx, qword [rsp + 0x30]
mov r9d, dword [rsp + 0x38]
cmp r9d, dword [rcx + 8]
jae 0x140065585
cmp qword [rcx], 0
je 0x140065585
mov eax, dword [rcx + 0x10]
imul eax, r9d
movsxd rdx, eax
add rdx, qword [rcx]
jmp 0x140065587
xor edx, edx
mov eax, dword [rsp + 0x3c]
xor r13d, r13d
cmp eax, dword [rdx]
mov dword [rbx], r15d
sete r13b
sub dword [rdx], eax
mov eax, dword [rsp + 0x24]
sub r13d, r14d
mov r14d, 0xfffffffe
add r13d, r9d
cmp dword [rsi + 8], 0
cmove eax, r14d
mov r14d, eax
mov r12d, 0xfffffffd
test rcx, rcx
je 0x140065629
mov r8d, dword [rcx + 8]
test r8d, r8d
je 0x140065629
cmp r9d, r8d
jae 0x1400655e2
cmp qword [rcx], 0
je 0x1400655e2
mov eax, dword [rcx + 0x10]
imul eax, r9d
movsxd rdx, eax
add rdx, qword [rcx]
jmp 0x1400655e4
xor edx, edx
cmp dword [rdx], 0
je 0x1400655ff
movzx ebx, word [rdx + 6]
movsx r12d, word [rdx + 4]
mov r15d, dword [rdx]
mov word [rsp + 0x80], bx
jmp 0x140065636
lea eax, [r8 - 1]
cmp r9d, eax
je 0x140065629
inc r9d
cmp r9d, r8d
jae 0x140065625
cmp qword [rcx], 0
je 0x140065625
mov eax, dword [rcx + 0x10]
imul eax, r9d
movsxd rdx, eax
add rdx, qword [rcx]
jmp 0x1400655e9
xor edx, edx
jmp 0x1400655e9
mov bx, word [rsp + 0x80]
mov r15d, dword [rsp + 0x28]
movdqu xmm0, xmmword [rsi]
mov eax, dword [rsi + 0xc]
movdqu xmmword [rsp + 0x30], xmm0
test eax, eax
je 0x14006570d
add eax, ebp
jne 0x1400656ef
mov rbp, qword [rsp + 0x90]
mov edx, r12d
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax]
mov rax, qword [rsi]
mov ecx, dword [rsi + 8]
mov r14d, r12d
cmp ecx, dword [rax + 8]
jae 0x14006568b
mov rdx, qword [rax]
test rdx, rdx
je 0x14006568b
mov eax, dword [rax + 0x10]
imul eax, ecx
movsxd rcx, eax
add rcx, rdx
jmp 0x14006568d
xor ecx, ecx
movsx edx, word [rcx + 4]
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 8]
mov rax, qword [rsi]
mov r11d, dword [rsi + 8]
cmp r11d, dword [rax + 8]
jae 0x1400656bf
mov rdx, qword [rax]
test rdx, rdx
je 0x1400656bf
mov eax, dword [rax + 0x10]
imul eax, r11d
movsxd rcx, eax
add rcx, rdx
jmp 0x1400656c1
xor ecx, ecx
mov word [rcx + 4], r12w
mov rax, qword [rsi]
mov ecx, dword [rsi + 8]
cmp ecx, dword [rax + 8]
jae 0x1400656e7
mov rdx, qword [rax]
test rdx, rdx
je 0x1400656e7
mov eax, dword [rax + 0x10]
imul eax, ecx
movsxd rcx, eax
add rcx, rdx
jmp 0x1400656e9
xor ecx, ecx
mov word [rcx + 6], bx
xor ebp, ebp
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140065708
lea rcx, [rsp + 0x30]
call fcn.140064e20
mov rbx, qword [rsp + 0x30]
dec r13d
jmp 0x140065712
mov rbx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.1400651d4
test r12d, r12d
js 0x140065766
cmp r12d, r14d
jne 0x140065766
cmp dil, byte [rsp + 0x80]
jne 0x140065766
mov al, byte [rsp + 0x81]
xor al, byte [rsp + 0x21]
test al, 1
jne 0x140065766
mov rax, qword [rsi]
mov ecx, dword [rsi + 8]
cmp ecx, dword [rax + 8]
jae 0x14006575e
mov rdx, qword [rax]
test rdx, rdx
je 0x14006575e
mov eax, dword [rax + 0x10]
imul eax, ecx
movsxd rcx, eax
add rcx, rdx
jmp 0x140065760
xor ecx, ecx
add dword [rcx], r15d
inc r13d
test r13d, r13d
jle 0x1400654bc
mov rdi, qword [rsp + 0x90]
lea rcx, [rsp + 0x30]
mov edx, r13d
mov r8, rdi
call fcn.140065c40
mov r11, qword [rsi]
cmp dword [r11 + 8], 0
jne 0x1400654c4
and dword [rsi + 8], 0
and dword [rsi + 0xc], 0
jmp 0x1400654c4
xor ecx, ecx
mov edx, dword [rsp + 0x38]
add dword [rcx], ebp
cmp edx, dword [rbx + 8]
jae 0x1400657c3
cmp qword [rbx], 0
je 0x1400657c3
mov eax, dword [rbx + 0x10]
imul eax, edx
movsxd rcx, eax
add rcx, qword [rbx]
jmp 0x1400657c5
xor ecx, ecx
sub dword [rcx], ebp
cmp edx, dword [rbx + 8]
jae 0x1400657e0
cmp qword [rbx], 0
je 0x1400657e0
mov eax, dword [rbx + 0x10]
imul eax, edx
movsxd rcx, eax
add rcx, qword [rbx]
jmp 0x1400657e2
xor ecx, ecx
cmp dword [rcx], 0
jne 0x1400657f9
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call fcn.140065c40
test ebp, ebp
jns 0x140065842
mov rax, qword [rsi]
mov edx, dword [rsi + 8]
cmp edx, dword [rax + 8]
jae 0x14006581e
mov r8, qword [rax]
test r8, r8
je 0x14006581e
mov eax, dword [rax + 0x10]
imul eax, edx
movsxd rcx, eax
add rcx, r8
jmp 0x140065820
xor ecx, ecx
cmp dword [rcx], 0
jne 0x140065837
mov r8, rdi
mov edx, 1
mov rcx, rsi
call fcn.140065c40
jmp 0x14006583d
lea eax, [rdx + 1]
mov dword [rsi + 8], eax
neg ebp
mov dword [rsi + 0xc], ebp
mov rcx, rsi
call fcn.14006521c
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret