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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x7c], 0
je 0x1402e704f
cmp dword [rsp + 0xe0], 0
jne 0x1402e704f
mov dword [rsp + 0x24], 1
jmp 0x1402e7057
mov dword [rsp + 0x24], 0
mov r8d, dword [rsp + 0x24]
mov edx, dword [rsp + 0xc8]
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rax + 0x18]
call fcn.1402dd7e0
test eax, eax
je 0x1402e709e
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 4]
mov ecx, 1
mov qword [rsp + 0x60], rcx
movzx ecx, al
mov rax, qword [rsp + 0x60]
shl rax, cl
mov qword [rsp + 0x40], rax
jmp 0x1402e70a7
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 8]
mov ecx, 1
mov qword [rsp + 0x68], rcx
movzx ecx, al
mov rax, qword [rsp + 0x68]
shl rax, cl
mov qword [rsp + 0x50], rax
cmp dword [rsp + 0xe0], 1
jne 0x1402e711d
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x10], 3
jne 0x1402e711d
mov rax, qword [rsp + 0xc0]
cmp dword [rax], 0x11
jbe 0x1402e7105
mov dword [rsp + 0x28], send
jmp 0x1402e7113
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x2c], eax
jmp 0x1402e7125
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1402e7154
mov eax, dword [rsp + 0x20]
mov ecx, 1
mov qword [rsp + 0x70], rcx
movzx ecx, al
mov rax, qword [rsp + 0x70]
shl rax, cl
mov qword [rsp + 0x48], rax
jmp 0x1402e715d
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0xd8], 1
jne 0x1402e7191
mov rax, qword [rsp + 0xb0]
mov rcx, rax
call fcn.1402e8370
mov rcx, qword [rsp + 0xb8]
call fcn.1402e2570
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x30], ecx
mov rcx, qword [rsp + 0xb0]
call fcn.1402e46f0
mov rcx, qword [rsp + 0xb8]
call fcn.1402e21f0
mov rax, qword [rsp + 0x50]
shl rax, 2
mov rdx, rax
mov rcx, qword [rsp + 0xb8]
call fcn.1402e2800
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x60], rax
mov rax, qword [rsp + 0x78]
shl rax, 2
mov rdx, rax
mov rcx, qword [rsp + 0xb8]
call fcn.1402e2800
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x70], rax
mov rax, qword [rsp + 0x80]
shl rax, 2
mov rdx, rax
mov rcx, qword [rsp + 0xb8]
call fcn.1402e2800
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x68], rax
mov rcx, qword [rsp + 0xb8]
call fcn.1400617c0
test eax, eax
je 0x1402e725b
xor eax, eax
test eax, eax
je 0x1402e724f
lea rcx, [0x1404adaf8]
call fcn.1402e8ce0
mov rax, 0xffffffffffffffc0
jmp 0x1402e749d
cmp dword [rsp + 0xd0], 1
je 0x1402e7272
mov rcx, qword [rsp + 0xb8]
call fcn.1402e2130
cmp dword [rsp + 0xe0], 1
jne 0x1402e7358
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x18], 7
jl 0x1402e7358
mov edx, 0x400
mov rcx, qword [rsp + 0xb8]
call fcn.1402e25f0
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x80], rax
mov edx, 0x90
mov rcx, qword [rsp + 0xb8]
call fcn.1402e25f0
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x88], rax
mov edx, 0xd4
mov rcx, qword [rsp + 0xb8]
call fcn.1402e25f0
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x90], rax
mov edx, 0x80
mov rcx, qword [rsp + 0xb8]
call fcn.1402e25f0
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x98], rax
mov edx, 0x8008
mov rcx, qword [rsp + 0xb8]
call fcn.1402e25f0
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0xa0], rax
mov edx, 0x1c01c
mov rcx, qword [rsp + 0xb8]
call fcn.1402e25f0
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0xa8], rax
mov edx, dword [rsp + 0xc8]
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rax + 0x18]
call fcn.1402e76e0
test eax, eax
je 0x1402e7451
mov rax, qword [rsp + 0x50]
shl rax, 1
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb8]
call fcn.1402e25f0
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x38], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x38], 0
je 0x1402e73c6
mov rax, qword [rsp + 0xb0]
mov rdi, qword [rax + 0x38]
xor eax, eax
mov rcx, qword [rsp + 0x58]
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0xc], 6
jae 0x1402e73e5
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x30], eax
jmp 0x1402e73ed
mov dword [rsp + 0x30], 6
cmp dword [rsp + 0x30], 4
jae 0x1402e73fe
mov dword [rsp + 0x38], 4
jmp 0x1402e742d
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0xc], 6
jae 0x1402e741d
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x34], eax
jmp 0x1402e7425
mov dword [rsp + 0x34], 6
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rax + 8]
sub eax, ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x34], eax
mov rax, qword [rsp + 0xb0]
lea rdi, [rax + 0xf0]
mov rsi, qword [rsp + 0xc0]
mov ecx, 0x1c
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xb8]
call fcn.1400617c0
test eax, eax
je 0x1402e749b
xor eax, eax
test eax, eax
je 0x1402e7492
lea rcx, str.failed_a_workspace_allocation_in_ZSTD_reset_matchState
call fcn.1402e8ce0
mov rax, 0xffffffffffffffc0
jmp 0x1402e749d
xor eax, eax
add rsp, 0x98
pop rdi
pop rsi
ret