Function at 0x140008d70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov r14, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rbp + 0x50], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x50]
lea r8d, [rbx + 4]
lea rdx, [rbp + 0x38]
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x50], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x50]
lea r8d, [rbx + 4]
lea rdx, [rbp + 0x48]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, ebx
cmp dword [rbp + 0x38], ebx
jle 0x140008f8a
mov qword [rbp - 0x40], rbx
mov edx, 1
lea ecx, [rdx + 8]
call fcn.1402deebc
add rax, 8
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rbx
mov edx, 1
lea ecx, [rdx + 8]
call fcn.1402deebc
add rax, 8
mov qword [rbp - 0x38], rax
mov dword [rbp + 0x50], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x50]
mov r8d, 2
lea rdx, [rbp - 0x24]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x50], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x50]
mov r8d, 1
lea rdx, [rbp - 0x1c]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x50], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x50]
mov r8d, 1
lea rdx, [rbp - 0x28]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x50], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x50]
mov r8d, 4
lea rdx, [rbp - 0x18]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x50], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x50]
mov r8d, 4
lea rdx, [rbp - 0x14]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x50], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x50]
mov r8d, 4
lea rdx, [rbp - 0x30]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x50], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x50]
mov r8d, 4
lea rdx, [rbp - 0x2c]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x50], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x50]
mov r8d, 4
lea rdx, [rbp - 0x20]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsi + 0x80], 0x13
jl 0x140008f2e
mov dword [rbp + 0x50], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x50]
mov r8d, 8
lea rdx, [rbp - 0x10]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, qword [r14 + 8]
cmp rax, qword [r14 + 0x10]
je 0x140008f4b
lea rdx, [rbp - 0x40]
mov rcx, rax
call fcn.140012510
add qword [r14 + 8], 0x38
jmp 0x140008f5b
lea r8, [rbp - 0x40]
mov rdx, rax
mov rcx, r14
call fcn.140011c80
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140008f6d
add rcx, 0xfffffffffffffff8
call fcn.1402d83b4
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140008f7f
add rcx, 0xfffffffffffffff8
call fcn.1402d83b4
inc edi
cmp edi, dword [rbp + 0x38]
jl 0x140008dd3
mov ecx, dword [rbp + 0x48]
inc ecx
mov edx, 1
call fcn.1402deebc
mov rdx, rax
mov qword [r14 + 0x18], rax
mov dword [rbp + 0x50], ebx
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x140008fc3
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x50]
mov r8d, eax
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rbp + 0x48]
movsxd rcx, eax
mov rax, qword [r14 + 0x18]
mov byte [rcx + rax], 0
cmp dword [rbp + 0x38], 0
jle 0x14000908c
mov r15, rbx
nop dword [rax + rax]
mov rax, qword [r14]
mov r9d, dword [r15 + rax + 0x28]
mov r8, qword [r14 + 0x18]
lea rdx, [rbp + 0x50]
call fcn.140008b10
mov rdi, rax
mov rsi, qword [r14]
add rsi, r15
mov rdx, qword [rax]
mov edx, dword [rdx - 8]
mov rcx, rsi
call fcn.14001ef30
mov rdx, qword [rdi]
movsxd r8, dword [rdx - 8]
mov rcx, qword [rsi]
call fcn.1402d15b0
mov rax, qword [rbp + 0x50]
test rax, rax
je 0x14000902d
lea rcx, [rax - 8]
call fcn.1402d83b4
mov rax, qword [r14]
mov r9d, dword [r15 + rax + 0x2c]
mov r8, qword [r14 + 0x18]
lea rdx, [rbp - 0x48]
call fcn.140008b10
mov rdi, rax
mov rsi, qword [r14]
mov rdx, qword [rax]
mov edx, dword [rdx - 8]
lea rcx, [rsi + 8]
add rcx, r15
call fcn.14001ef30
mov rdx, qword [rdi]
movsxd r8, dword [rdx - 8]
mov rcx, qword [rsi + r15 + 8]
call fcn.1402d15b0
mov rax, qword [rbp - 0x48]
test rax, rax
je 0x14000907d
lea rcx, [rax - 8]
call fcn.1402d83b4
inc ebx
add r15, 0x38
cmp ebx, dword [rbp + 0x38]
jl 0x140008fe0
mov rcx, r14
call fcn.140010ea0
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret