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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r13
push r15
sub rsp, 0xe8
mov rsi, qword [rsp + 0x140]
xor ebp, ebp
mov r11d, dword [rcx]
mov r15, r9
mov r13, r8
mov rdi, rcx
movsxd r10, dword [rsi]
mov eax, r10d
cmp r11d, 0x20000001
jne 0x140066eb8
add rax, rax
not rax
and eax, 2
or rax, 1
mov qword [rsp + 0x28], rax
movzx eax, r10b
and al, 1
add al, al
or al, 1
mov byte [rsp + 0x140], al
jmp 0x140066f10
cmp r11d, 0x20000002
jne 0x140066ee0
add rax, rax
not rax
and eax, 2
mov qword [rsp + 0x28], rax
movzx eax, r10b
and al, 1
add al, al
mov byte [rsp + 0x140], al
jmp 0x140066f10
cmp r11d, 0x30100001
jne 0x140066f03
not rax
and eax, 1
mov qword [rsp + 0x28], rax
movzx eax, r10b
and al, 1
mov byte [rsp + 0x140], al
jmp 0x140066f10
mov qword [rsp + 0x28], rbp
mov byte [rsp + 0x140], bpl
mov rbx, qword [rsp + 0x148]
mov qword [rsp + 0xe0], r12
test rbx, rbx
je 0x140067572
mov eax, dword [rbx + 0xc]
cmp eax, dword [rcx + 8]
jg 0x140067572
mov ecx, dword [rbx + 8]
cmp ecx, dword [rdi + 4]
jg 0x140067572
test eax, eax
je 0x140067572
test ecx, ecx
je 0x140067572
mov ecx, 4
call fcn.14006a030
mov r12d, eax
cmp r11d, 0x30100001
je 0x140066f71
mov eax, 0xfffffffa
jmp 0x140067579
mov ecx, dword [rdi + 0x20]
mov qword [rsp + 0xd8], r14
lea eax, [rcx - 8]
mov dword [rsp + 0x50], eax
lea r9d, [rcx*4]
mov eax, dword [rsi + 4]
mov rsi, qword [rsp + 0x128]
sar eax, 1
imul eax, ecx
mov ecx, dword [r15 + 4]
movsxd r14, eax
add r14, qword [rdi + 0x28]
mov rax, qword [rsp + 0x150]
add r14, r10
mov edi, dword [rsi + 4]
lea r10d, [rcx + rcx]
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x48], r14
mov r8d, dword [rax + 4]
mov r11d, r8d
sub r8d, dword [rbx + 4]
movsxd rdx, dword [rax]
mov eax, dword [rax + 0xc]
mov r14d, dword [r13 + 4]
imul r11d, ecx
sar r8d, 1
add r11, qword [r15 + 0x18]
add r11, rdx
sub edx, dword [rbx]
mov ebx, r8d
movsxd rcx, edx
imul ebx, edi
cdq
imul r8d, r14d
sub eax, edx
sar eax, 1
add r10, r11
sar rcx, 1
dec eax
mov dword [rsp + 0x3c], eax
add rbx, qword [rsi + 0x18]
add r8, qword [r13 + 0x18]
add rbx, rcx
add r8, rcx
mov eax, r9d
add rdi, rbx
mov qword [rsp + 0x90], rax
add r14, r8
add r12d, r12d
nop word [rax + rax]
mov eax, dword [r15 + 4]
mov rcx, r10
add eax, eax
mov qword [rsp + 0xb0], r10
add r10, rax
mov qword [rsp + 0xb8], rdi
mov rax, qword [rsp + 0x128]
mov rsi, r11
mov r11, rdi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xa8], r10
mov r10, rbx
mov eax, dword [rax + 4]
mov rbx, r8
add rdi, rax
mov eax, dword [r13 + 4]
add r14, rax
mov qword [rsp + 0x98], rdi
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0xa0], r14
mov eax, dword [rax + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x38], eax
nop word [rax + rax]
movzx r15d, byte [rcx]
add rcx, 2
movzx edi, byte [r10]
inc r10
movzx r14d, byte [rbx]
inc rbx
movzx r13d, byte [r11]
inc r11
movzx r8d, byte [rsi]
add rsi, 2
movzx r9d, byte [rcx]
mov qword [rsp + 0x68], r10
sub r9d, r15d
movzx eax, byte [r11]
movzx edx, byte [rsi]
sub eax, r13d
movzx r10d, byte [r10]
sub edx, r8d
mov dword [rsp + 0x24], eax
sub r10d, edi
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rbx
movzx ebx, byte [rbx]
mov qword [rsp + 0x60], rcx
sub ebx, r14d
movzx ecx, byte [rax]
inc rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x70], r11
movzx eax, byte [rax]
sub eax, ecx
mov dword [rsp + 0x120], eax
mov dword [rsp + 0x20], r14d
nop word [rax + rax]
mov rax, qword [rsp + 0x48]
mov r11, rax
test r8d, r8d
jne 0x14006715f
test edx, edx
jne 0x14006715f
test r15d, r15d
jne 0x14006715f
test r9d, r9d
je 0x140067439
sub ecx, dword [rsp + 0x20]
lea esi, [rdx*4]
sub dword [rsp + 0x120], ebx
lea ebp, [r10*4]
sub r9d, edx
mov dword [rsp + 0x20], 4
mov edx, dword [rsp + 0x120]
sub r15d, r8d
neg edx
mov dword [rsp + 0x30], r9d
shl edx, 2
sub r13d, edi
mov dword [rsp + 0x5c], edx
mov eax, r8d
mov r8d, dword [rsp + 0x24]
mov r9d, edi
movzx edi, byte [rsp + 0x140]
sub r8d, r10d
mov r10d, r14d
shl eax, 4
sub r13d, ebp
shl r9d, 4
mov edx, r8d
shl r10d, 4
neg edx
shl r13d, 2
shl edx, 2
lea r14d, [rbx*4]
mov dword [rsp + 0x58], edx
sub ecx, r14d
mov edx, dword [rsp + 0x30]
sub r15d, esi
neg edx
shl ecx, 2
shl edx, 2
mov dword [rsp + 0x54], edx
shl r15d, 2
mov dword [rsp + 0x24], r8d
mov dword [rsp + 0x34], ecx
mov ebx, eax
sar ebx, 4
test ebx, ebx
jle 0x14006727c
mov ecx, r12d
mov edx, r9d
sar edx, cl
mov r8d, 0xff
movzx ecx, byte [rsp + 0x160]
sub r8d, ebx
add edx, ecx
add eax, esi
movzx ecx, byte [rsp + 0x140]
add r9d, ebp
sar edx, 1
mov edi, ecx
imul edx, ebx
movzx ecx, byte [rcx + r11]
imul ecx, r8d
add edx, ecx
mov ecx, r12d
sar edx, 8
mov byte [rdi + r11], dl
mov edx, r10d
sar edx, cl
movzx ecx, byte [rsp + 0x168]
add edx, ecx
sar edx, 1
imul edx, ebx
mov rbx, qword [rsp + 0x28]
movzx ecx, byte [rbx + r11]
imul ecx, r8d
add edx, ecx
sar edx, 8
mov byte [rbx + r11], dl
add r10d, r14d
mov ebx, eax
sar ebx, 4
test ebx, ebx
jle 0x1400672f1
mov edx, r9d
mov ecx, r12d
sar edx, cl
mov r8d, 0xff
movzx ecx, byte [rsp + 0x160]
sub r8d, ebx
add edx, ecx
add eax, esi
movzx ecx, byte [rdi + r11 + 2]
add r9d, ebp
sar edx, 1
imul edx, ebx
imul ecx, r8d
add edx, ecx
mov ecx, r12d
sar edx, 8
mov byte [rdi + r11 + 2], dl
mov edx, r10d
sar edx, cl
movzx ecx, byte [rsp + 0x168]
add edx, ecx
sar edx, 1
imul edx, ebx
mov rbx, qword [rsp + 0x28]
movzx ecx, byte [rbx + r11 + 2]
imul ecx, r8d
add edx, ecx
sar edx, 8
mov byte [rbx + r11 + 2], dl
add r10d, r14d
mov ebx, eax
sar ebx, 4
test ebx, ebx
jle 0x140067366
mov edx, r9d
mov ecx, r12d
sar edx, cl
mov r8d, 0xff
movzx ecx, byte [rsp + 0x160]
sub r8d, ebx
add edx, ecx
add eax, esi
movzx ecx, byte [rdi + r11 + 4]
add r9d, ebp
sar edx, 1
imul edx, ebx
imul ecx, r8d
add edx, ecx
mov ecx, r12d
sar edx, 8
mov byte [rdi + r11 + 4], dl
mov edx, r10d
sar edx, cl
movzx ecx, byte [rsp + 0x168]
add edx, ecx
sar edx, 1
imul edx, ebx
mov rbx, qword [rsp + 0x28]
movzx ecx, byte [rbx + r11 + 4]
imul ecx, r8d
add edx, ecx
sar edx, 8
mov byte [rbx + r11 + 4], dl
add r10d, r14d
mov ebx, eax
sar ebx, 4
test ebx, ebx
jle 0x1400673dd
mov edx, r9d
mov ecx, r12d
sar edx, cl
mov r8d, 0xff
movzx ecx, byte [rsp + 0x160]
sub r8d, ebx
add edx, ecx
add eax, esi
movzx ecx, byte [rdi + r11 + 6]
add r9d, ebp
sar edx, 1
imul edx, ebx
imul ecx, r8d
add edx, ecx
mov ecx, r12d
sar edx, 8
mov byte [rdi + r11 + 6], dl
mov edx, r10d
sar edx, cl
movzx ecx, byte [rsp + 0x168]
add edx, ecx
sar edx, 1
imul edx, ebx
mov rbx, qword [rsp + 0x28]
movzx ecx, byte [rbx + r11 + 6]
imul ecx, r8d
add edx, ecx
sar edx, 8
mov byte [rbx + r11 + 6], dl
add r10d, r14d
jmp 0x1400673e5
movzx edi, byte [rsp + 0x140]
mov ecx, dword [rsp + 0x50]
add eax, r15d
add esi, dword [rsp + 0x30]
add rcx, 8
add r15d, dword [rsp + 0x54]
add r11, rcx
mov ecx, dword [rsp + 0x34]
add r9d, r13d
add ebp, dword [rsp + 0x24]
add r10d, ecx
add ecx, dword [rsp + 0x5c]
add r13d, dword [rsp + 0x58]
add r14d, dword [rsp + 0x120]
add dword [rsp + 0x20], 0xffffffff
mov dword [rsp + 0x34], ecx
jne 0x140067201
mov rsi, qword [rsp + 0x80]
xor ebp, ebp
mov rax, qword [rsp + 0x48]
mov r11d, dword [rsp + 0x38]
add rax, 8
dec r11d
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], r11d
test r11d, r11d
jg 0x1400674dc
jne 0x1400674f5
mov rax, qword [rsp + 0x60]
mov r9d, ebp
movzx r8d, byte [rsi]
mov edx, ebp
add rsi, 2
mov dword [rsp + 0x24], ebp
mov qword [rsp + 0x80], rsi
mov r10d, ebp
movzx r15d, byte [rax]
mov ebx, ebp
add rax, 2
mov dword [rsp + 0x120], ebp
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x68]
movzx edi, byte [rax]
inc rax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x70]
movzx r13d, byte [rax]
inc rax
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x78]
movzx r14d, byte [rax]
inc rax
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rax]
inc rax
mov qword [rsp + 0x40], rax
jmp 0x140067132
mov rcx, qword [rsp + 0x60]
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
jmp 0x1400670b0
mov r8d, dword [rsp + 0x3c]
mov rax, qword [rsp + 0x88]
dec r8d
add rax, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
test r8d, r8d
mov r14, qword [rsp + 0xa0]
mov r10, qword [rsp + 0xa8]
mov r11, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xb8]
mov r15, qword [rsp + 0x138]
mov r13, qword [rsp + 0x130]
mov dword [rsp + 0x3c], r8d
mov r8, qword [rsp + 0xc0]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x48], rax
jg 0x140067030
mov r14, qword [rsp + 0xd8]
jmp 0x140067577
mov ebp, 0xfffffffc
mov eax, ebp
mov r12, qword [rsp + 0xe0]
add rsp, 0xe8
pop r15
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret