Function at 0x1401d2990
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 0x1401d29cf
cmp dword [rsp + 0xe0], 0
jne 0x1401d29cf
mov dword [rsp + 0x24], 1
jmp 0x1401d29d7
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.1401c9150
test eax, eax
je 0x1401d2a1e
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 0x1401d2a27
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 0x1401d2a9d
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x10], 3
jne 0x1401d2a9d
mov rax, qword [rsp + 0xc0]
cmp dword [rax], 0x11
jbe 0x1401d2a85
mov dword [rsp + 0x28], 0x11
jmp 0x1401d2a93
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 0x1401d2aa5
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1401d2ad4
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 0x1401d2add
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0xd8], 1
jne 0x1401d2b11
mov rax, qword [rsp + 0xb0]
mov rcx, rax
call fcn.1401d3cf0
mov rcx, qword [rsp + 0xb8]
call fcn.1401cdee0
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x30], ecx
mov rcx, qword [rsp + 0xb0]
call fcn.1401d0070
mov rcx, qword [rsp + 0xb8]
call fcn.1401cdb60
mov rax, qword [rsp + 0x50]
shl rax, 2
mov rdx, rax
mov rcx, qword [rsp + 0xb8]
call fcn.1401ce180
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.1401ce180
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.1401ce180
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x68], rax
mov rcx, qword [rsp + 0xb8]
call fcn.1401cdfd0
test eax, eax
je 0x1401d2bdb
xor eax, eax
test eax, eax
je 0x1401d2bcf
lea rcx, [0x140306598]
call fcn.1401d4660
mov rax, 0xffffffffffffffc0
jmp 0x1401d2e1d
cmp dword [rsp + 0xd0], 1
je 0x1401d2bf2
mov rcx, qword [rsp + 0xb8]
call fcn.1401cdaa0
cmp dword [rsp + 0xe0], 1
jne 0x1401d2cd8
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0x18], 7
jl 0x1401d2cd8
mov edx, 0x400
mov rcx, qword [rsp + 0xb8]
call fcn.1401cdf60
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x80], rax
mov edx, 0x90
mov rcx, qword [rsp + 0xb8]
call fcn.1401cdf60
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x88], rax
mov edx, 0xd4
mov rcx, qword [rsp + 0xb8]
call fcn.1401cdf60
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x90], rax
mov edx, 0x80
mov rcx, qword [rsp + 0xb8]
call fcn.1401cdf60
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x98], rax
mov edx, 0x8008
mov rcx, qword [rsp + 0xb8]
call fcn.1401cdf60
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0xa0], rax
mov edx, 0x1c01c
mov rcx, qword [rsp + 0xb8]
call fcn.1401cdf60
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.1401d3060
test eax, eax
je 0x1401d2dd1
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.1401cdf60
mov rcx, qword [rsp + 0xb0]
mov qword [rcx + 0x38], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x38], 0
je 0x1401d2d46
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 0x1401d2d65
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x30], eax
jmp 0x1401d2d6d
mov dword [rsp + 0x30], 6
cmp dword [rsp + 0x30], 4
jae 0x1401d2d7e
mov dword [rsp + 0x38], 4
jmp 0x1401d2dad
mov rax, qword [rsp + 0xc0]
cmp dword [rax + 0xc], 6
jae 0x1401d2d9d
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x34], eax
jmp 0x1401d2da5
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.1401cdfd0
test eax, eax
je 0x1401d2e1b
xor eax, eax
test eax, eax
je 0x1401d2e12
lea rcx, str.failed_a_workspace_allocation_in_ZSTD_reset_matchState
call fcn.1401d4660
mov rax, 0xffffffffffffffc0
jmp 0x1401d2e1d
xor eax, eax
add rsp, 0x98
pop rdi
pop rsi
ret