Function at 0x140007310
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, 0x100
lea rbp, [rsp + 0x40]
mov rax, qword [0x1405413a0]
xor rax, rbp
mov qword [rbp + 0xb8], rax
mov qword [rbp + 8], 0
mov dword [rbp + 0x10], 0x100
movsxd rcx, dword [rbp + 0x10]
call fcn.14002b3c4
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x18], rax
mov dword [rbp], 0
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rbp + 0x48], eax
cmp dword [rbp + 0x48], 0xffffffff
jne 0x140007389
jmp 0x140007781
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 + 0xd8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1400073cd
jmp 0x140007781
mov dword [rbp + 0x58], 0
mov dword [rbp + 0x44], 0x8000
mov eax, 0x8000
call fcn.1400897f0
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 0x14000741b
jmp 0x140007781
cmp dword [rbp + 0xe0], 0xffffffff
jne 0x1400074d3
mov dword [rbp + 0x70], 0
mov dword [rbp + 0x74], 0
jmp 0x140007441
mov eax, dword [rbp + 0x74]
add eax, 1
mov dword [rbp + 0x74], eax
mov eax, dword [rbp + 0x30]
cmp dword [rbp + 0x74], eax
jae 0x14000746d
mov ecx, dword [rbp + 0x74]
mov rax, qword [rbp + 0x50]
movsx eax, byte [rax + rcx]
cmp eax, 0xd
je 0x140007469
mov ecx, dword [rbp + 0x74]
mov rax, qword [rbp + 0x50]
movsx eax, byte [rax + rcx]
cmp eax, 0xa
jne 0x14000746b
jmp 0x14000746d
jmp 0x140007438
mov eax, dword [rbp + 0x30]
cmp dword [rbp + 0x70], eax
jne 0x140007481
mov dword [rbp + 0xe0], 0
jmp 0x1400074d3
mov ecx, dword [rbp + 0x70]
mov rax, qword [rbp + 0x50]
movsx eax, byte [rax + rcx]
cmp eax, 0xa
jne 0x14000749d
mov dword [rbp + 0xe0], 1
jmp 0x1400074d3
mov eax, dword [rbp + 0x30]
sub eax, 1
cmp dword [rbp + 0x70], eax
jae 0x1400074c9
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 0x1400074c9
mov dword [rbp + 0xe0], 0
jmp 0x1400074d3
mov dword [rbp + 0xe0], 2
mov rcx, qword [rbp + 0xd0]
mov eax, dword [rbp + 0xe0]
mov dword [rcx + 0x4c], eax
movsxd rcx, dword [rbp + 0xe0]
lea rax, [0x1400c01c8]
mov rax, qword [rax + rcx*8]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0xd0]
add rcx, 0x58
mov r8d, 0x1000
xor edx, edx
call fcn.140009b40
mov dword [rbp + 0x60], 0
mov dword [rbp + 0x40], 0
call fcn.140003290
mov dword [rbp + 0x5c], eax
mov eax, dword [rbp + 0x30]
cmp dword [rbp + 0x60], eax
jae 0x14000768b
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 0x14000758c
cmp dword [rbp + 0x30], 0x8000
jne 0x14000758c
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 0x140007585
jmp 0x140007781
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 0x14000760b
mov eax, dword [rbp + 0x10]
add eax, 0x100
mov dword [rbp + 0x10], eax
movsxd rcx, dword [rbp + 0x10]
call fcn.14002b3c4
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.140070f80
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0xa0], rax
mov rcx, qword [rbp + 0xa0]
call fcn.14002b3bc
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 0x14000767f
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 0x14000767d
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 rcx, qword [rbp + 0x18]
call fcn.140014050
mov r9d, 0xffffffff
mov r8d, 0xffffffff
mov rdx, rax
mov rcx, qword [rbp + 0xd0]
call fcn.140006e80
mov dword [rbp + 0x58], 0
mov dword [rbp + 0x40], 0
jmp 0x140007686
mov dword [rbp + 0x40], 0
jmp 0x140007527
movsxd rcx, dword [rbp + 0x58]
mov rax, qword [rbp + 0x18]
mov byte [rax + rcx], 0
mov rcx, qword [rbp + 0x18]
call fcn.140014050
mov r9d, 0xffffffff
mov r8d, 0xffffffff
mov rdx, rax
mov rcx, qword [rbp + 0xd0]
call fcn.140006e80
mov r11, qword [rbp + 0xd0]
mov dword [r11 + 0x40], 1
mov eax, dword [rbp + 0x48]
and eax, 1
test eax, eax
je 0x1400076e0
mov dword [rbp + 0xb0], 1
jmp 0x1400076ea
mov dword [rbp + 0xb0], 0
mov rcx, qword [rbp + 0xd0]
mov eax, dword [rbp + 0xb0]
mov dword [rcx + 0x44], eax
mov rax, qword [rbp + 0xd0]
mov dword [rax + 0x48], 0
mov rax, qword [rbp + 0xd0]
mov dword [rax + 0xb4], 0
mov rax, qword [rbp + 0xd0]
mov dword [rax + 0xb0], 0
mov rax, qword [rbp + 0xd0]
mov dword [rax + 0x54], 0x80000
mov rax, qword [rbp + 0xd0]
mov dword [rax + 0xa8], 0
mov rax, qword [rbp + 0xd0]
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 + 0xd0]
call fcn.1400082f0
nop
cmp qword [rbp + 0x18], 0
je 0x14000779f
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0xa8], rax
mov rcx, qword [rbp + 0xa8]
call fcn.14002b3bc
cmp qword [rbp + 8], 0
je 0x1400077b0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp]
mov rcx, qword [rbp + 0xb8]
xor rcx, rbp
call fcn.140070830
lea rsp, [rbp + 0xc0]
pop rbp
ret