Function at 0x14010eab0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x60], rbx
mov qword [rbp + 0x68], rsi
mov rax, qword [0x140264330]
xor rax, rbp
mov qword [rbp + 0x10], rax
xor edi, edi
mov r14, rdx
mov rsi, rcx
mov ebx, edi
mov rax, rcx
cmp byte [rcx], bl
je 0x14010eb02
nop dword [rax]
cmp ebx, 0x80000000
jae 0x14010eb02
inc rax
inc ebx
cmp byte [rax], dil
jne 0x14010eaf0
mov r8, rcx
btr ebx, 0x1f
mov r15d, 8
inc ebx
mov ecx, 0xfde9
mov edx, r15d
mov r9d, ebx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, eax
test eax, eax
jg 0x14010eb73
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x14010eb63
mov r9d, ebx
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], edi
mov r15d, edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, eax
test eax, eax
jg 0x14010eb73
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jmp 0x14010ec38
movsxd rax, edx
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14010eb8c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401bb880
sub rsp, rcx
mov r9d, ebx
mov dword [rsp + 0x28], edx
lea r12, [rsp + 0x30]
mov r8, rsi
mov edx, r15d
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14010ec8c
mov rax, r14
cmp byte [r14], dil
je 0x14010ebe2
nop dword [rax]
cmp edi, 0x80000000
jae 0x14010ebe2
inc rax
inc edi
cmp byte [rax], 0
jne 0x14010ebd0
lea rax, [rbp]
btr edi, 0x1f
mov r8, r14
lea r9d, [rdi + 1]
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14010ec8c
lea rdx, [rbp]
mov rcx, r12
call qword [sym.imp.MSVCR120.dll__wfopen]
mov rbx, rax
test rax, rax
jne 0x14010ec4e
call qword [sym.imp.MSVCR120.dll__errno]
cmp dword [rax], 2
je 0x14010ec3a
call qword [sym.imp.MSVCR120.dll__errno]
cmp dword [rax], 9
jne 0x14010ec8c
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_fopen]
mov rbx, rax
test rax, rax
je 0x14010ec8c
lea rcx, [0x1402896f0]
call fcn.1400e0890
mov rdi, rax
test rax, rax
jne 0x14010ec70
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_fclose]
jmp 0x14010ed1f
mov edx, 0x6a
mov r9, rbx
mov rcx, rax
lea r8d, [rdx - 0x69]
call fcn.1400e1130
mov rax, rdi
jmp 0x14010ed21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 1
lea r9, [0x140289558]
lea ecx, [rdx + 1]
mov r8d, eax
mov dword [rsp + 0x20], 0xa9
call fcn.1400dabf0
lea rax, [0x14026b764]
lea r9, [0x14026b77c]
mov qword [rsp + 0x28], rax
lea rdx, [0x140289588]
mov r8, rsi
mov ecx, 5
mov qword [rsp + 0x20], r14
call fcn.1400db400
call qword [sym.imp.MSVCR120.dll__errno]
mov edx, WSASetLastError
cmp dword [rax], 2
lea ecx, [rdx - 0x4d]
jne 0x14010ed05
mov dword [rsp + 0x20], 0xac
lea r9, [0x140289590]
lea r8d, [rdx + 0x13]
jmp 0x14010ed1a
mov dword [rsp + 0x20], 0xae
lea r9, [0x1402895c0]
mov r8d, 2
call fcn.1400dabf0
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.1401bb2c0
mov rbx, qword [rbp + 0x60]
mov rsi, qword [rbp + 0x68]
lea rsp, [rbp + 0x20]
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret