Function at 0x140078cb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x40]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x78], 0
xor eax, eax
test eax, eax
jne 0x140078cff
cmp qword [rsp + 0xb0], 0
jne 0x140078d1d
xor eax, eax
test eax, eax
jne 0x140078d10
xor eax, eax
jmp 0x140078f6b
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jge 0x140078d43
xor eax, eax
test eax, eax
jne 0x140078d36
xor eax, eax
jmp 0x140078f6b
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x140078d64
xor eax, eax
jmp 0x140078f6b
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140078d84
xor eax, eax
jmp 0x140078f6b
xor r8d, r8d
mov edx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x140078da4
xor eax, eax
jmp 0x140078f6b
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x400000
jg 0x140078dc5
cmp dword [rsp + 0x48], 0
jg 0x140078dd2
xor eax, eax
test eax, eax
jne 0x140078dc5
xor eax, eax
jmp 0x140078f6b
movsxd rax, dword [rsp + 0x48]
mov rcx, rax
call fcn.14007a300
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140078df3
xor eax, eax
jmp 0x140078f6b
movsxd rax, dword [rsp + 0x48]
mov r9, qword [rsp + 0xb0]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp eax, dword [rsp + 0x48]
je 0x140078e1e
jmp 0x140078f2a
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
je 0x140078e45
cmp dword [rsp + 0x98], 5
je 0x140078e63
jmp 0x140078ee1
mov r8d, 1
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140031b00
mov qword [rsp + 0x58], rax
jmp 0x140078ee3
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, 5
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.14009a040
test eax, eax
jge 0x140078ea0
jmp 0x140078f2a
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x60], eax
mov r8d, dword [rsp + 0x60]
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0xb8]
call fcn.140030fd0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140078ed5
jmp 0x140078f2a
lea rcx, [rsp + 0x78]
call fcn.14009aed0
jmp 0x140078ee3
jmp 0x140078f2a
cmp qword [rsp + 0xb8], 0
je 0x140078efe
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140078f23
mov rcx, qword [rsp + 0x88]
call fcn.14007a350
mov rax, qword [rsp + 0x58]
jmp 0x140078f6b
cmp qword [rsp + 0x40], 0
je 0x140078f57
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x140078f57
mov rcx, qword [rsp + 0x90]
call fcn.14007a350
cmp qword [rsp + 0x78], 0
je 0x140078f69
lea rcx, [rsp + 0x78]
call fcn.14009aed0
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140144700]
call fcn.140132900
mov rax, rdi
add rsp, 0xa0
pop rdi
ret