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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x9e0
mov rbp, qword [0x14022c040]
mov rsi, qword [rbp]
mov qword [rsp + 0x9d8], rsi
mov esi, dword [rcx]
mov rbx, rcx
cmp esi, 0x43524944
jne 0x140050eb0
mov edi, dword [rcx + 4]
bswap edi
lea eax, [rdi - 2]
cmp eax, 2
ja 0x140050eef
mov ecx, dword [0x140255474]
test ecx, ecx
jne 0x140050c70
xor eax, eax
mov rdx, qword [rsp + 0x9d8]
sub rdx, qword [rbp]
jne 0x140050f19
add rsp, 0x9e0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov r13, qword [0x14022c970]
mov esi, edx
lea rcx, [rsp + 0x20]
mov r12, rsi
mov rax, qword [r13]
mov rdi, qword [rax + 0x170]
mov r14, qword [rdi + 0x10]
sub r12, r14
mov r8, r14
add r12, rbx
mov rdx, r12
call sub.msvcrt.dll_memcpy
mov rcx, rax
cmp r14, 0x1f
jbe 0x140050dd0
sub rdi, qword [0x14022c5e0]
movabs rax, 0x4ec4ec4ec4ec4ec5
sar rdi, 3
imul rdi, rax
mov dword [rsp + 0x40], edi
call fcn.14002fb90
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rdx, qword [rax]
xor rcx, qword [rax + 8]
or rdx, rcx
je 0x140050db0
mov rax, qword [r13]
lea rdi, [rsp + 0x50]
mov rcx, rdi
mov rax, qword [rax + 0x170]
call qword [rax + 0x28]
mov rax, qword [r13]
mov rdx, rbx
mov rcx, rdi
mov rax, qword [rax + 0x170]
sub rsi, qword [rax + 0x10]
mov r8, rsi
call qword [rax + 0x38]
mov rax, qword [r13]
lea rcx, [rsp + 0x9b0]
mov rdx, rdi
mov rax, qword [rax + 0x170]
call qword [rax + 0x40]
mov rax, qword [r13]
mov rax, qword [rax + 0x170]
cmp qword [rax + 0x10], 0x20
mov rax, qword [rsp + 0x9b0]
je 0x140050e58
mov rdx, qword [rsp + 0x9b8]
xor rax, qword [r12]
xor rdx, qword [r12 + 8]
or rax, rdx
jne 0x140050d7a
mov eax, dword [r12 + 0x10]
cmp dword [rsp + 0x9c0], eax
je 0x140050c40
mov rax, qword [str.PF__]
lea rcx, str.bad_index_file_sha1_signature
mov eax, dword [rax]
test eax, eax
jne 0x140050e9a
call fcn.1400b6bf0
nop word [rax + rax]
mov eax, 0xffffffff
jmp 0x140050c42
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rdx, qword [rax + 0x10]
xor rcx, qword [rax + 0x18]
or rdx, rcx
jne 0x140050cea
jmp 0x140050c40
mov eax, 0x20
add rcx, r14
xor r8d, r8d
sub rax, r14
cmp eax, 8
jae 0x140050e10
test al, 4
jne 0x140050eda
test eax, eax
je 0x140050cae
mov byte [rcx], 0
test al, 2
je 0x140050cae
mov eax, eax
xor edx, edx
mov word [rcx + rax - 2], dx
jmp 0x140050cae
mov edx, eax
mov qword [rcx], 0
mov qword [rcx + rdx - 8], 0
lea rdx, [rcx + 8]
and rdx, 0xfffffffffffffff8
sub rcx, rdx
add eax, ecx
and eax, 0xfffffff8
cmp eax, 8
jb 0x140050cae
and eax, 0xfffffff8
xor ecx, ecx
mov r9d, ecx
add ecx, 8
mov qword [rdx + r9], r8
cmp ecx, eax
jb 0x140050e40
jmp 0x140050cae
mov rdx, qword [rsp + 0x9b8]
xor rax, qword [r12]
xor rdx, qword [r12 + 8]
or rax, rdx
jne 0x140050d7a
mov rax, qword [rsp + 0x9c0]
mov rdx, qword [rsp + 0x9c8]
xor rax, qword [r12 + 0x10]
xor rdx, qword [r12 + 0x18]
or rax, rdx
jne 0x140050d7a
jmp 0x140050c40
call fcn.1401d81b8
mov rcx, rax
jmp 0x140050d92
mov rax, qword [str.PF__]
lea rcx, str.bad_signature_0x_08x
mov r9d, dword [rax]
test r9d, r9d
je 0x140050ece
call fcn.1401d81b8
mov rcx, rax
mov edx, esi
call fcn.1400b6bf0
jmp 0x140050da0
mov eax, eax
mov dword [rcx], 0
mov dword [rcx + rax - 4], 0
jmp 0x140050cae
mov rax, qword [str.PF__]
lea rcx, str.bad_index_version__d
mov r8d, dword [rax]
test r8d, r8d
je 0x140050f0d
call fcn.1401d81b8
mov rcx, rax
mov edx, edi
call fcn.1400b6bf0
jmp 0x140050da0
call fcn.1401d96b0
nop
nop