Function at 0x140007ce0
Capabilities:
Read file on windows

Disassembly:
mov word [rsp + 0x18], r8w
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor eax, eax
mov word [rsp + 0x20], ax
jmp 0x140007d1d
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
movzx ecx, word [rsp + 0x70]
cmp eax, ecx
jge 0x140007def
movzx eax, word [rsp + 0x68]
movzx ecx, word [rsp + 0x20]
imul rcx, rcx, 0x28
add rax, rcx
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov ecx, 0x38
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140007d6f
xor eax, eax
jmp 0x140007f3e
mov rax, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
mov r8d, 1
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x140007da4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140007f3e
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x30], 0
cmp qword [rsp + 0x30], 0
jne 0x140007dd2
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
jmp 0x140007de0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x30], rcx
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
jmp 0x140007d10
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x38], rax
xor eax, eax
mov word [rsp + 0x24], ax
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov dword [rsp + 0x2c], eax
cmp qword [rsp + 0x30], 0
je 0x140007f39
mov dword [rsp + 0x28], 0
cmp qword [rsp + 0x38], 0
je 0x140007e6c
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x14]
cmp dword [rax + 0x14], ecx
ja 0x140007e6c
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140007e8c
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x14]
mov eax, dword [rax + 0x14]
sub eax, ecx
mov dword [rsp + 0x28], eax
jmp 0x140007ea0
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x28], 0
jne 0x140007ec5
xor eax, eax
jmp 0x140007f3e
xor r8d, r8d
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x14]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov eax, dword [rsp + 0x28]
mov r9, qword [rsp + 0x60]
mov r8d, 1
mov edx, eax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x38], 0
je 0x140007f27
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x38], rax
movzx eax, word [rsp + 0x24]
inc ax
mov word [rsp + 0x24], ax
jmp 0x140007e30
mov rax, qword [rsp + 0x48]
add rsp, 0x58
ret