Function at 0x1400070d8
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0xa0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x1413a08d0]
xor rax, rbp
mov qword [rbp + 0x50], rax
mov ebx, r8d
mov r12, rdx
mov r13, rcx
xor edi, edi
mov r15, rdi
mov qword [rbp + 0x30], rdi
mov eax, 0x100
mov dword [rbp + 0xc], eax
mov rcx, rax
call fcn.14001d5fc
mov rsi, rax
mov qword [rbp + 0x28], rax
mov r14d, edi
mov dword [rbp + 0x14], edi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 0x20], eax
cmp eax, 0xffffffff
je 0x1400074bd
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
mov qword [rbp + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x1400074bd
mov dword [rbp + 0x10], edi
mov eax, 0x8000
call fcn.14007bdf0
sub rsp, rax
lea r12, [rsp + 0x40]
mov qword [rbp + 0x38], r12
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 8]
mov r8d, eax
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x1400074bd
cmp ebx, 0xffffffff
jne 0x140007223
mov ecx, edi
mov dword [rbp + 0x18], ecx
mov r8b, 0xa
mov edx, dword [rbp + 8]
cmp ecx, edx
jae 0x1400071f3
mov eax, ecx
cmp byte [rax + r12], 0xd
je 0x1400071f3
cmp byte [rax + r12], r8b
je 0x1400071f3
inc ecx
mov dword [rbp + 0x18], ecx
jmp 0x1400071d9
cmp edi, edx
jne 0x1400071fb
mov ebx, edi
jmp 0x140007223
mov eax, edi
cmp byte [rax + r12], r8b
jne 0x14000720a
mov ebx, 1
jmp 0x140007223
lea eax, [rdx - 1]
cmp edi, eax
jae 0x14000721e
lea eax, [rdi + 1]
cmp byte [rax + r12], r8b
jne 0x14000721e
mov ebx, edi
jmp 0x140007223
mov ebx, 2
mov dword [r13 + 0x4c], ebx
movsxd rax, ebx
lea rcx, [0x1400b41c8]
mov rax, qword [rcx + rax*8]
mov qword [rbp + 0x48], rax
lea rcx, [r13 + 0x58]
xor edx, edx
mov r8d, 0x1000
call fcn.14000518c
mov edx, edi
mov dword [rbp], edx
mov r12d, edi
mov dword [rbp + 4], edi
mov ecx, dword [rbp + 8]
cmp edx, ecx
jae 0x1400073c9
mov eax, edx
mov r10, qword [rbp + 0x38]
movsx ebx, byte [rax + r10]
mov dword [rbp + 0x1c], ebx
inc edx
mov dword [rbp], edx
cmp edx, ecx
jne 0x1400072a2
cmp ecx, 0x8000
jne 0x1400072a2
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 8]
mov r8d, ecx
mov rdx, r10
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x1400074b9
mov dword [rbp], edi
movsxd rax, r14d
mov byte [rax + rsi], bl
inc r14d
mov dword [rbp + 0x10], r14d
mov eax, dword [rbp + 0xc]
cmp r14d, eax
jne 0x1400072ed
add eax, 0x100
mov dword [rbp + 0xc], eax
mov dword [rbp + 0x40], eax
movsxd rcx, eax
call fcn.14001d5fc
mov rbx, rax
movsxd r8, r14d
mov rdx, rsi
mov rcx, rax
call fcn.140062e30
mov rcx, rsi
call fcn.14001d5f4
mov rsi, rbx
mov qword [rbp + 0x28], rbx
mov ebx, dword [rbp + 0x1c]
movsxd rax, r12d
mov rdx, qword [rbp + 0x48]
cmp bl, byte [rax + rdx]
jne 0x1400073bb
inc r12d
mov dword [rbp + 4], r12d
movsxd rcx, r12d
cmp byte [rcx + rdx], dil
jne 0x1400073c1
movsxd rax, r14d
sub rax, rcx
mov byte [rax + rsi], dil
cmp rsi, rdi
jne 0x140007325
mov rdx, rdi
jmp 0x14000739e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9d, [rax + 1]
cmp r9d, 0x3fffffff
jle 0x140007340
mov rdx, rdi
jmp 0x14000739e
movsxd rax, r9d
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140007359
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14007bdf0
sub rsp, rcx
lea rbx, [rsp + 0x40]
cmp rbx, rdi
je 0x14000739b
mov word [rbx], di
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb rdx, rdx
and rdx, rbx
jmp 0x14000739e
mov rdx, rdi
or r9d, 0xffffffff
or r8d, r9d
mov rcx, r13
call fcn.140006f64
mov r14d, edi
mov dword [rbp + 0x10], edi
mov r12d, edi
mov dword [rbp + 4], edi
jmp 0x1400073c1
mov r12d, edi
mov dword [rbp + 4], edi
mov edx, dword [rbp]
jmp 0x140007255
movsxd rax, r14d
mov byte [rax + rsi], dil
cmp rsi, rdi
jne 0x1400073da
mov rdx, rdi
jmp 0x140007453
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9d, [rax + 1]
cmp r9d, 0x3fffffff
jle 0x1400073f5
mov rdx, rdi
jmp 0x140007453
movsxd rax, r9d
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14000740e
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14007bdf0
sub rsp, rcx
lea rbx, [rsp + 0x40]
cmp rbx, rdi
je 0x140007450
mov word [rbx], di
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb rdx, rdx
and rdx, rbx
jmp 0x140007453
mov rdx, rdi
or r9d, 0xffffffff
or r8d, r9d
mov rcx, r13
call fcn.140006f64
mov ecx, 1
mov dword [r13 + 0x40], ecx
mov eax, dword [rbp + 0x20]
and eax, ecx
mov dword [r13 + 0x44], eax
mov dword [r13 + 0x48], edi
mov dword [r13 + 0xb4], edi
mov dword [r13 + 0xb0], edi
mov dword [r13 + 0x54], 0x80000
mov dword [r13 + 0xa8], edi
mov dword [r13 + 0xac], edi
mov r14d, ecx
or dword [rsp + 0x20], 0xffffffff
mov r9d, 0x1000
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.140005028
jmp 0x1400074bd
mov r14d, dword [rbp + 0x14]
cmp rsi, rdi
je 0x1400074ca
mov rcx, rsi
call fcn.14001d5f4
cmp r15, rdi
je 0x1400074d8
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
mov rcx, qword [rbp + 0x50]
xor rcx, rbp
call fcn.140062ce0
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x60]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret