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

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
sub rsp, 0x98
xor ebx, ebx
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x78], r14
mov r11, r8
mov qword [rsp + 0xc8], rbx
mov r14, rdx
mov rdi, rcx
mov ebp, ebx
test r8, r8
je 0x14002174b
mov rbp, qword [r8 + 0x18]
add rbp, qword [r8]
mov rax, qword [r8 + 0x10]
add rax, qword [r8]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x80], r13
test r14, r14
je 0x14002177a
mov eax, dword [rdx]
test eax, 0x30000
je 0x14002177c
mov r12d, dword [rcx + 0x2c]
mov r13d, ebx
shr r13, 3
imul r12, r13
jmp 0x1400217d7
mov eax, ebx
mov edx, eax
lea r9, [0x1402191d0]
mov ecx, eax
shr rax, 8
and eax, 0xf
shr rcx, 0xc
and ecx, 0xf
mov r8d, dword [r9 + rcx*4]
add r8d, dword [r9 + rax*4]
mov eax, edx
shr rax, 4
and edx, 0xf
and eax, 0xf
add r8d, dword [r9 + rax*4]
add r8d, dword [r9 + rdx*4]
test r8b, 7
je 0x1400217c3
lea rbx, str.base:_unsupported_option
jmp 0x140021985
mov r12d, dword [rdi + 0x2c]
mov r13d, r8d
shr r13, 3
imul r12, r13
test r14, r14
je 0x140021800
mov r8, qword [r14 + 0x28]
mov rcx, qword [r14 + 0x20]
mov r9, qword [r14 + 0x18]
mov r10, qword [r14 + 0x10]
mov qword [rsp + 0x30], r8
mov qword [rsp + 0xb8], rcx
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x40], r10
jmp 0x140021823
mov r10, rbx
mov qword [rsp + 0x40], rbx
mov r9, rbx
mov qword [rsp + 0x38], rbx
mov rcx, rbx
mov qword [rsp + 0xb8], rbx
mov r8, rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x70], r15
mov edx, dword [rdi + 0x38]
cmp edx, dword [rdi + 0x2c]
jne 0x14002184c
inc dword [rdi + 0x3c]
mov edx, ebx
mov eax, dword [rdi + 0x3c]
mov dword [rdi + 0x38], ebx
cmp eax, dword [rdi + 0x30]
jae 0x140021970
mov eax, dword [rdi + 0x3c]
cmp rax, rcx
jae 0x14002186a
imul rax, r8
mov rcx, r9
add rax, r10
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rax
jmp 0x14002187a
mov rax, rbx
mov qword [rsp + 0x50], rbx
mov rcx, rbx
mov qword [rsp + 0x58], rbx
movaps xmm1, xmmword [rsp + 0x50]
cmp r12, rcx
jae 0x140021893
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], r12
movaps xmm1, xmmword [rsp + 0x60]
mov ecx, edx
movdqa xmm0, xmm1
imul rcx, r13
psrldq xmm0, 8
movq rdx, xmm0
cmp rcx, rdx
jae 0x14002195c
test r14, r14
je 0x1400218df
mov eax, dword [r14]
shr eax, 0x12
test al, 1
je 0x1400218df
cmp qword [r14 + 0x78], 0x400
jne 0x1400218df
cmp qword [r14 + 0x80], 1
jne 0x1400218df
mov r8, qword [r14 + 0x70]
mov r9d, 0x400
jmp 0x1400218e5
mov r8, rbx
mov r9, rbx
movq r11, xmm1
lea r15, [rdi + 0x40]
add r11, rcx
sub rdx, rcx
test r15, r15
je 0x140021969
mov r10, qword [r15]
test r10, r10
je 0x140021969
mov rax, qword [rsp + 0xc8]
mov rcx, r11
sub rax, rbp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
call r10
mov rcx, rax
mov eax, dword [r15 + 0x14]
imul rax, rcx
add rbp, rax
test rcx, rcx
je 0x140021969
add ecx, dword [rdi + 0x38]
mov eax, 0xffffffff
cmp ecx, dword [rdi + 0x38]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
cmovb ecx, eax
mov r10, qword [rsp + 0x40]
mov dword [rdi + 0x38], ecx
mov rcx, qword [rsp + 0xb8]
jmp 0x140021830
mov rcx, qword [rsp + 0xb8]
jmp 0x140021830
lea rbx, str._nie:_internal_note:_short_read
mov r11, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xb0]
mov r14, qword [rsp + 0x78]
mov rax, rbx
mov r13, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
test r11, r11
je 0x1400219b1
sub rbp, qword [r11]
mov qword [r11 + 0x18], rbp
add rsp, 0x98
pop rbp
pop rbx
ret