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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x118
mov rdi, qword [0x14022c040]
mov qword [rcx + 0x30], 0
mov rbp, rdx
mov rbx, rcx
xor edx, edx
mov rax, qword [rdi]
mov qword [rsp + 0x108], rax
xor eax, eax
mov rcx, rbp
mov esi, r8d
call fcn.1400d7b40
mov edi, eax
test eax, eax
jns 0x140050fd8
test esi, esi
jne 0x1400517d0
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 2
jne 0x1400517d0
mov rcx, qword [rbx + 0xf0]
call fcn.140075c20
mov rax, qword [rbx + 0xf0]
mov ecx, dword [rax + 0x118]
test ecx, ecx
je 0x1400515e2
or byte [rbx + 0x38], 2
xor eax, eax
mov rsi, qword [0x14022c040]
mov rdx, qword [rsp + 0x108]
sub rdx, qword [rsi]
jne 0x1400517e7
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0xb0]
mov ecx, eax
call fcn.1400d97e0
test eax, eax
jne 0x1400518b5
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x30], rax
test rax, rax
js 0x140051892
mov rax, qword [0x14022c970]
mov rax, qword [rax]
mov rax, qword [rax + 0x170]
mov rax, qword [rax + 0x10]
add rax, 0xc
cmp qword [rsp + 0x30], rax
jb 0x14005189e
mov qword [rsp + 0x28], 0
mov rdx, qword [rsp + 0x30]
mov r9d, 1
xor ecx, ecx
mov dword [rsp + 0x20], edi
mov r8d, 1
call fcn.140030b80
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400517ae
mov ecx, edi
call sub.msvcrt.dll__close
mov edx, dword [rsp + 0x30]
mov rcx, rsi
call fcn.140050bf0
cmp eax, 0xffffffff
je 0x1400517ec
mov rax, qword [0x14022c970]
mov rdx, qword [rsp + 0x30]
lea rcx, [rbx + 0xa0]
mov rax, qword [rax]
mov rdi, qword [rax + 0x170]
mov r8, qword [rdi + 0x10]
sub rdx, r8
add rdx, rsi
call sub.msvcrt.dll_memcpy
mov rdx, qword [rdi + 0x10]
mov rcx, rax
cmp rdx, 0x1f
jbe 0x1400516c0
movabs rdx, 0x4ec4ec4ec4ec4ec5
mov rax, rdi
sub rax, qword [0x14022c5e0]
sar rax, 3
imul rax, rdx
mov edx, 8
mov dword [rbx + 0xc0], eax
mov eax, dword [rsi + 4]
bswap eax
mov dword [rbx + 8], eax
mov eax, dword [rsi + 8]
bswap eax
lea ecx, [rax + rax*2 + 0x30]
mov dword [rbx + 0xc], eax
shr ecx, 1
mov dword [rbx + 0x10], ecx
call fcn.1400bd320
or byte [rbx + 0x38], 2
lea rcx, [rsp + 0x68]
mov qword [rbx], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], rax
call fcn.1400121f0
test eax, eax
je 0x1400512e6
mov dword [rsp + 0x68], 1
lea rax, [rsp + 0x70]
xor r12d, r12d
mov qword [rsp + 0x48], rax
mov ecx, 0x18
call fcn.1400bd0a0
cmp dword [rbx + 8], 4
mov qword [rbx + 0xe0], rax
mov rcx, rax
mov eax, dword [rbx + 0xc]
je 0x140051600
lea eax, [rax + rax*4]
lea edx, [rax*8]
mov rax, qword [rsp + 0x30]
add rdx, rax
call fcn.14015e2c0
mov eax, dword [rbx + 0xc]
mov r14, qword [rbx + 0xe0]
test eax, eax
jle 0x140051767
mov qword [rsp + 0x38], r12
xor edi, edi
mov r12, rbx
xor r15d, r15d
lea r13, [rax*8]
lea rax, [rsp + 0x6c]
mov ebp, 0xc
mov rbx, rax
mov edx, dword [r12 + 8]
mov qword [rsp + 0x20], r15
mov eax, ebp
mov r9, rbx
lea r8, [rsi + rax]
mov rcx, r14
call fcn.1400500e0
cmp dword [rax + 0x34], 0x4000
mov r15, rax
jne 0x1400511e0
mov dword [r12 + 0x3c], 1
mov rax, qword [r12]
mov rdx, r15
mov rcx, r12
mov qword [rax + rdi], r15
add rdi, 8
call fcn.14002d820
add ebp, dword [rsp + 0x6c]
cmp r13, rdi
jne 0x1400511b0
mov rbx, r12
mov r12, qword [rsp + 0x38]
movd xmm0, dword [rsp + 0xe0]
movd xmm1, dword [rsp + 0xe8]
punpckldq xmm0, xmm1
movq qword [rbx + 0x30], xmm0
test r12, r12
jne 0x140051689
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0xa8], ebp
call fcn.140050840
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
lea rsi, str.read_cache.c
call fcn.1400de620
mov rax, qword [0x14022c970]
mov edx, 0x927
mov rcx, rsi
lea r8, [0x1401f46e8]
mov r9, qword [rax]
mov eax, dword [rbx + 8]
mov qword [rsp + 0x28], rax
lea rax, str.read_version
mov qword [rsp + 0x20], rax
call fcn.1400a18d0
mov rax, qword [0x14022c970]
mov edx, 0x929
mov rcx, rsi
lea r8, [0x1401f46e8]
mov r9, qword [rax]
mov eax, dword [rbx + 0xc]
mov qword [rsp + 0x28], rax
lea rax, str.read_cache_nr
mov qword [rsp + 0x20], rax
call fcn.1400a18d0
mov rcx, qword [rbx + 0xf0]
call fcn.140075c20
mov rax, qword [rbx + 0xf0]
mov rcx, rbx
mov eax, dword [rax + 0x118]
test eax, eax
je 0x140051612
call fcn.14008ca40
mov eax, dword [rbx + 0xc]
jmp 0x140050fa6
mov edx, dword [rsp + 0x68]
test edx, edx
jne 0x140051315
mov eax, dword [rbx + 0xc]
mov edx, 0xd1b71759
imul rax, rdx
shr rax, 0x2d
mov dword [rsp + 0x68], eax
call fcn.14009e3e0
mov edx, dword [rsp + 0x68]
cmp eax, edx
jge 0x140051315
mov dword [rsp + 0x68], eax
mov edx, eax
cmp edx, 1
jle 0x140051137
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.14004fdd0
mov r12, rax
test rax, rax
je 0x140051137
mov dword [rsp + 0xa8], eax
lea rax, [rsp + 0x70]
xor edx, edx
lea r8, [fcn.140050840]
mov rcx, rax
mov r9, rax
mov qword [rsp + 0x48], rax
call fcn.1400db830
test eax, eax
jne 0x14005180d
mov eax, dword [rsp + 0x68]
sub eax, 1
mov dword [rsp + 0x68], eax
cmp eax, 1
jle 0x140051144
mov rax, qword [rsp + 0x30]
lea r9, [rax - 8]
mov rax, qword [0x14022c970]
mov rax, qword [rax]
mov rax, qword [rax + 0x170]
sub r9, qword [rax + 0x10]
mov rax, r12
cmp r9, r12
jae 0x1400513b6
jmp 0x140051144
mov eax, edx
add rax, r8
cmp r9, rax
jb 0x140051144
movsx ecx, byte [rsi + rax]
movsx r10d, byte [rsi + rax + 3]
lea r8, [rax + 8]
mov edx, dword [rsi + rax + 4]
shl ecx, 0x18
or ecx, r10d
movsx r10d, byte [rsi + rax + 1]
movsx eax, byte [rsi + rax + 2]
bswap edx
shl r10d, 0x10
shl eax, 8
or ecx, r10d
or eax, ecx
cmp eax, 0x49454f54
jne 0x1400513a8
lea r13, [rsi + r8]
mov eax, dword [r13]
cmp eax, 0x1000000
jne 0x140051786
mov ebp, edx
sub rbp, 4
shr rbp, 3
test ebp, ebp
je 0x14005179b
movsxd rax, ebp
lea rcx, [rax*8 + 4]
call fcn.1400bd0a0
mov dword [rax], ebp
mov rdi, rax
test ebp, ebp
jle 0x140051456
lea ecx, [rbp - 1]
mov eax, 1
add rcx, 2
mov edx, dword [r13 + rax*8 - 4]
bswap edx
mov dword [rdi + rax*8 - 4], edx
mov edx, dword [r13 + rax*8]
bswap edx
mov dword [rdi + rax*8], edx
add rax, 1
cmp rcx, rax
jne 0x140051438
mov ebp, dword [rsp + 0x68]
test byte [rbx + 0x38], 1
jne 0x14005182e
mov ecx, 0x18
call fcn.1400bd0a0
xor edx, edx
mov qword [rbx + 0xe0], rax
mov rcx, rax
call fcn.14015e2c0
mov eax, dword [rdi]
mov edx, 0x58
cmp ebp, eax
cmovg ebp, eax
movsxd r14, ebp
mov rcx, r14
call fcn.1400bd320
mov ecx, dword [rdi]
mov r8, rax
lea eax, [rbp + rcx - 1]
cdq
idiv ebp
mov r13d, eax
test ebp, ebp
jle 0x14005165e
lea rax, [r14 + r14*4]
mov qword [rsp + 0x40], rsi
mov r12, r8
xor r15d, r15d
lea rax, [r14 + rax*2]
mov qword [rsp + 0x50], r8
xor r14d, r14d
lea rax, [r8 + rax*8]
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x38], rax
nop word cs:[rax + rax]
lea ebp, [r15 + r13]
cmp ebp, ecx
jle 0x1400514f0
mov r13d, ecx
mov ebp, ecx
sub r13d, r15d
mov rax, qword [rsp + 0x40]
mov qword [r12 + 0x20], rbx
mov dword [r12 + 0x30], r14d
mov qword [r12 + 0x38], rax
mov qword [r12 + 0x40], rdi
mov dword [r12 + 0x48], r15d
mov dword [r12 + 0x4c], r13d
cmp r15d, ebp
jge 0x140051760
mov edx, ebp
movsxd rcx, r15d
sub edx, r15d
lea rax, [rdi + rcx*8]
add rdx, rcx
lea rcx, [rdi + rdx*8]
xor edx, edx
nop word cs:[rax + rax]
nop dword [rax]
add edx, dword [rax + 8]
add rax, 8
cmp rax, rcx
jne 0x140051540
mov esi, edx
mov ecx, 0x18
call fcn.1400bd0a0
cmp dword [rbx + 8], 4
mov qword [r12 + 0x28], rax
mov rcx, rax
je 0x140051748
lea eax, [rsi + rsi*4]
lea edx, [rax*8]
mov rax, qword [rsp + 0x30]
add rdx, rax
call fcn.14015e2c0
xor edx, edx
mov r9, r12
lea r8, [0x1400504b0]
mov rcx, r12
call fcn.1400db830
test eax, eax
jne 0x140051873
test r13d, r13d
jle 0x1400515cd
movsxd r11, r15d
movsxd rdx, r13d
add rdx, r11
lea rax, [rdi + r11*8]
lea rdx, [rdi + rdx*8]
nop word cs:[rax + rax]
nop
add r14d, dword [rax + 8]
add rax, 8
cmp rax, rdx
jne 0x1400515c0
add r12, 0x58
cmp qword [rsp + 0x38], r12
je 0x14005161c
mov ecx, dword [rdi]
mov r15d, ebp
jmp 0x1400514e0
xor edx, edx
mov rcx, rbx
call fcn.14008c2a0
test eax, eax
je 0x140050fa0
mov dword [rbx + 0x3c], 1
jmp 0x140050fa0
lea rdx, [rax + rax*2]
shl rdx, 6
call fcn.14015e2c0
jmp 0x14005117c
call fcn.14008ca60
jmp 0x1400512de
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x38]
xor edx, edx
mov rcx, rbp
call fcn.1400db890
test eax, eax
jne 0x140051846
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbx + 0xe0]
add rbp, 0x58
call fcn.14015e7c0
cmp rbp, r12
jne 0x140051630
mov r8, r13
mov rcx, r8
call fcn.1400eaf30
mov rcx, rdi
call fcn.1400eaf30
movd xmm0, dword [rsp + 0xe0]
movd xmm2, dword [rsp + 0xe8]
punpckldq xmm0, xmm2
movq qword [rbx + 0x30], xmm0
mov rcx, qword [rsp + 0x48]
xor edx, edx
call fcn.1400db890
test eax, eax
je 0x14005123d
mov ecx, eax
call sub.msvcrt.dll_strerror
lea rcx, str.unable_to_join_load_index_extensions_thread:__s
mov rbx, rax
call fcn.14004fa60
mov rdx, rbx
mov rcx, rax
call fcn.1400b6950
nop
mov eax, 0x20
add rcx, rdx
xor r8d, r8d
sub rax, rdx
cmp eax, 8
jae 0x140051700
test al, 4
jne 0x140051771
test eax, eax
je 0x1400510b4
mov byte [rcx], 0
test al, 2
je 0x1400510b4
mov eax, eax
xor edx, edx
mov word [rcx + rax - 2], dx
jmp 0x1400510b4
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 0x1400510b4
and eax, 0xfffffff8
xor ecx, ecx
mov r9d, ecx
add ecx, 8
mov qword [rdx + r9], r8
cmp ecx, eax
jb 0x140051730
jmp 0x1400510b4
mov edx, esi
lea rdx, [rdx + rdx*2]
shl rdx, 6
call fcn.14015e2c0
jmp 0x140051581
xor esi, esi
jmp 0x14005154e
mov ebp, 0xc
jmp 0x140051208
mov eax, eax
mov dword [rcx], 0
mov dword [rcx + rax - 4], 0
jmp 0x1400510b4
lea rcx, str.invalid_IEOT_version__d
bswap eax
mov edx, eax
call fcn.1400b6bf0
jmp 0x140051144
xor edx, edx
lea rcx, str.invalid_number_of_IEOT_entries__d
call fcn.1400b6bf0
jmp 0x140051144
call fcn.140030d30
lea rcx, str._s:_unable_to_map_index_file_s
mov rbx, rax
call fcn.14004fa60
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call fcn.1400b69e0
lea rcx, str._s:_index_file_open_failed
call fcn.14004fa60
mov rdx, rbp
mov rcx, rax
call fcn.1400b69e0
call fcn.1401d96b0
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.1400de620
lea rcx, [0x1401f445e]
call fcn.14004fa60
mov rcx, rax
call fcn.1400b6950
mov ecx, eax
call sub.msvcrt.dll_strerror
lea rcx, str.unable_to_create_load_index_extensions_thread:__s
mov rbx, rax
call fcn.14004fa60
mov rdx, rbx
mov rcx, rax
call fcn.1400b6950
lea r8, str.the_name_hash_isnt_thread_safe
mov edx, 0x863
lea rcx, str.read_cache.c
call fcn.1400b6d50
mov ecx, eax
call sub.msvcrt.dll_strerror
lea rcx, str.unable_to_join_load_cache_entries_thread:__s
mov rbx, rax
mov rax, qword [str.PF__]
cmp dword [rax], 0
je 0x14005186b
call fcn.1401d81b8
mov rcx, rax
mov rdx, rbx
call fcn.1400b6950
mov ecx, eax
call sub.msvcrt.dll_strerror
lea rcx, str.unable_to_create_load_cache_entries_thread:__s
mov rbx, rax
mov rax, qword [str.PF__]
cmp dword [rax], 0
je 0x14005186b
jmp 0x140051863
lea rcx, [0x1401f4360]
call fcn.1400b6950
lea rcx, str._s:_index_file_smaller_than_expected
call fcn.14004fa60
mov rdx, rbp
mov rcx, rax
call fcn.1400b6950
lea rcx, str._s:_cannot_stat_the_open_index
call fcn.14004fa60
mov rdx, rbp
mov rcx, rax
call fcn.1400b69e0
nop
nop dword [rax]