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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x120
lea rbp, [rsp + 0x40]
mov rax, qword [0x1418089d0]
xor rax, rbp
mov qword [rbp + 0xd8], rax
mov qword [rbp + 8], 0
mov dword [rbp + 0x10], 0x100
movsxd rcx, dword [rbp + 0x10]
call fcn.14002bc64
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x18], rax
mov dword [rbp], 0
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 0x48], eax
cmp dword [rbp + 0x48], 0xffffffff
jne 0x1400075f9
jmp 0x140007b1b
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14000763d
jmp 0x140007b1b
mov dword [rbp + 0x58], 0
mov dword [rbp + 0x44], 0x8000
mov eax, 0x8000
call fcn.14008a6e0
sub rsp, rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x50], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x30]
mov r8d, 0x8000
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000768b
jmp 0x140007b1b
cmp dword [rbp + 0x100], 0xffffffff
jne 0x140007743
mov dword [rbp + 0x70], 0
mov dword [rbp + 0x74], 0
jmp 0x1400076b1
mov eax, dword [rbp + 0x74]
add eax, 1
mov dword [rbp + 0x74], eax
mov eax, dword [rbp + 0x30]
cmp dword [rbp + 0x74], eax
jae 0x1400076dd
mov ecx, dword [rbp + 0x74]
mov rax, qword [rbp + 0x50]
movsx eax, byte [rax + rcx]
cmp eax, 0xd
je 0x1400076d9
mov ecx, dword [rbp + 0x74]
mov rax, qword [rbp + 0x50]
movsx eax, byte [rax + rcx]
cmp eax, 0xa
jne 0x1400076db
jmp 0x1400076dd
jmp 0x1400076a8
mov eax, dword [rbp + 0x30]
cmp dword [rbp + 0x70], eax
jne 0x1400076f1
mov dword [rbp + 0x100], 0
jmp 0x140007743
mov ecx, dword [rbp + 0x70]
mov rax, qword [rbp + 0x50]
movsx eax, byte [rax + rcx]
cmp eax, 0xa
jne 0x14000770d
mov dword [rbp + 0x100], 1
jmp 0x140007743
mov eax, dword [rbp + 0x30]
sub eax, 1
cmp dword [rbp + 0x70], eax
jae 0x140007739
mov eax, dword [rbp + 0x70]
add eax, 1
mov ecx, eax
mov rax, qword [rbp + 0x50]
movsx eax, byte [rax + rcx]
cmp eax, 0xa
jne 0x140007739
mov dword [rbp + 0x100], 0
jmp 0x140007743
mov dword [rbp + 0x100], 2
mov rcx, qword [rbp + 0xf0]
mov eax, dword [rbp + 0x100]
mov dword [rcx + 0x4c], eax
movsxd rcx, dword [rbp + 0x100]
lea rax, [0x1400c21c8]
mov rax, qword [rax + rcx*8]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0xf0]
add rcx, 0x58
mov r8d, 0x1000
xor edx, edx
call fcn.14000a080
mov dword [rbp + 0x60], 0
mov dword [rbp + 0x40], 0
call fcn.140001540
mov dword [rbp + 0x5c], eax
mov eax, dword [rbp + 0x30]
cmp dword [rbp + 0x60], eax
jae 0x140007994
mov ecx, dword [rbp + 0x60]
mov rax, qword [rbp + 0x50]
movsx eax, byte [rax + rcx]
mov dword [rbp + 0x78], eax
mov eax, dword [rbp + 0x60]
add eax, 1
mov dword [rbp + 0x60], eax
mov eax, dword [rbp + 0x30]
cmp dword [rbp + 0x60], eax
jne 0x1400077fc
cmp dword [rbp + 0x30], 0x8000
jne 0x1400077fc
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x30]
mov r8d, 0x8000
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400077f5
jmp 0x140007b1b
mov dword [rbp + 0x60], 0
movsxd rdx, dword [rbp + 0x58]
mov rcx, qword [rbp + 0x18]
movzx eax, byte [rbp + 0x78]
mov byte [rcx + rdx], al
mov eax, dword [rbp + 0x58]
add eax, 1
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x10]
cmp dword [rbp + 0x58], eax
jne 0x14000787b
mov eax, dword [rbp + 0x10]
add eax, 0x100
mov dword [rbp + 0x10], eax
movsxd rcx, dword [rbp + 0x10]
call fcn.14002bc64
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x80], rax
movsxd r8, dword [rbp + 0x58]
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x80]
call fcn.1400716e0
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0xa0], rax
mov rcx, qword [rbp + 0xa0]
call fcn.14002bc5c
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x18], rax
movsx edx, byte [rbp + 0x78]
movsxd rcx, dword [rbp + 0x40]
mov rax, qword [rbp + 0x28]
movsx eax, byte [rax + rcx]
cmp edx, eax
jne 0x140007988
mov eax, dword [rbp + 0x40]
add eax, 1
mov dword [rbp + 0x40], eax
movsxd rcx, dword [rbp + 0x40]
mov rax, qword [rbp + 0x28]
movsx eax, byte [rax + rcx]
test eax, eax
jne 0x140007986
mov ecx, dword [rbp + 0x40]
mov eax, dword [rbp + 0x58]
sub eax, ecx
movsxd rcx, eax
mov rax, qword [rbp + 0x18]
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1400078df
mov qword [rbp + 0xb0], 0
jmp 0x140007959
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [rbp + 0x20], eax
cmp dword [rbp + 0x20], 0x3fffffff
jle 0x140007905
mov qword [rbp + 0xb8], 0
jmp 0x14000794b
movsxd rcx, dword [rbp + 0x20]
shl rcx, 1
mov rax, rcx
add rax, 0xf
cmp rax, rcx
ja 0x140007922
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14008a6e0
sub rsp, rax
lea rcx, [rsp + 0x40]
mov r9d, dword [rbp + 0x5c]
mov r8d, dword [rbp + 0x20]
mov rdx, qword [rbp + 0x68]
call fcn.1400051b0
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0xb0], rax
mov r9d, 0xffffffff
mov r8d, 0xffffffff
mov rdx, qword [rbp + 0xb0]
mov rcx, qword [rbp + 0xf0]
call fcn.1400070c0
mov dword [rbp + 0x58], 0
mov dword [rbp + 0x40], 0
jmp 0x14000798f
mov dword [rbp + 0x40], 0
jmp 0x140007797
movsxd rcx, dword [rbp + 0x58]
mov rax, qword [rbp + 0x18]
mov byte [rax + rcx], 0
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1400079bc
mov qword [rbp + 0xc0], 0
jmp 0x140007a36
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [rbp + 0x20], eax
cmp dword [rbp + 0x20], 0x3fffffff
jle 0x1400079e2
mov qword [rbp + 0xc8], 0
jmp 0x140007a28
movsxd rcx, dword [rbp + 0x20]
shl rcx, 1
mov rax, rcx
add rax, 0xf
cmp rax, rcx
ja 0x1400079ff
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14008a6e0
sub rsp, rax
lea rcx, [rsp + 0x40]
mov r9d, dword [rbp + 0x5c]
mov r8d, dword [rbp + 0x20]
mov rdx, qword [rbp + 0x68]
call fcn.1400051b0
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0xc0], rax
mov r9d, 0xffffffff
mov r8d, 0xffffffff
mov rdx, qword [rbp + 0xc0]
mov rcx, qword [rbp + 0xf0]
call fcn.1400070c0
mov r11, qword [rbp + 0xf0]
mov dword [r11 + 0x40], 1
mov eax, dword [rbp + 0x48]
and eax, 1
test eax, eax
je 0x140007a7a
mov dword [rbp + 0xd0], 1
jmp 0x140007a84
mov dword [rbp + 0xd0], 0
mov rcx, qword [rbp + 0xf0]
mov eax, dword [rbp + 0xd0]
mov dword [rcx + 0x44], eax
mov rax, qword [rbp + 0xf0]
mov dword [rax + 0x48], 0
mov rax, qword [rbp + 0xf0]
mov dword [rax + 0xb4], 0
mov rax, qword [rbp + 0xf0]
mov dword [rax + 0xb0], 0
mov rax, qword [rbp + 0xf0]
mov dword [rax + 0x54], 0x80000
mov rax, qword [rbp + 0xf0]
mov dword [rax + 0xa8], 0
mov rax, qword [rbp + 0xf0]
mov dword [rax + 0xac], 0
mov dword [rbp], 1
mov dword [rsp + 0x20], 0xffffffff
mov r9d, 0x1000
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0xf0]
call fcn.140008740
nop
cmp qword [rbp + 0x18], 0
je 0x140007b39
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0xa8], rax
mov rcx, qword [rbp + 0xa8]
call fcn.14002bc5c
cmp qword [rbp + 8], 0
je 0x140007b4a
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp]
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.140071250
lea rsp, [rbp + 0xe0]
pop rbp
ret