Function at 0x140024e30
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x228]
sub rsp, 0x310
mov rax, qword [0x14005b018]
xor rax, rsp
mov qword [rbp + 0x200], rax
xor ebx, ebx
cmp dword [0x140060ae0], ebx
je 0x140024e78
mov byte [rsp + 0x44], 1
jmp 0x140024e93
cmp dword [0x14005f394], ebx
je 0x140024e8f
mov word [rsp + 0x44], 1
mov r15d, 2
jmp 0x140024e99
mov byte [rsp + 0x44], bl
mov r15d, 1
mov r12b, bl
mov rsi, rbx
cmp byte [rsp + rsi + 0x44], bl
je 0x140024ec2
mov r8, qword [0x1400613b0]
lea rdx, str._sast
lea rcx, [rbp - 0x10]
call fcn.140024098
lea rcx, [rbp - 0x10]
jmp 0x140024ec9
mov rcx, qword [0x1400613b0]
lea rdx, [rbp - 0x10]
call fcn.140025aa4
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14002517b
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov r8d, 0x60
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025171
cmp dword [rsp + 0x40], 0x60
jne 0x140025171
mov rdx, qword [rbp - 0x28]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140025171
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r8d, 4
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025171
cmp dword [rsp + 0x40], 4
jne 0x140025171
mov r9d, 1
lea r8, [rsp + 0x70]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140025171
mov r14, qword [rsp + 0x70]
lea r9, [rsp + 0x40]
mov r8d, 8
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025171
cmp dword [rsp + 0x40], 8
jne 0x140025171
cmp r14, qword [rsp + 0x50]
jne 0x140025171
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r8d, 4
lea rdx, [rsp + 0x6c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025171
cmp dword [rsp + 0x40], 4
jne 0x140025171
mov r14d, 8
mov qword [rsp + 0x20], rbx
mov r8d, r14d
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025171
cmp dword [rsp + 0x40], r14d
jne 0x140025171
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
lea r8d, [r14 - 4]
mov rcx, rdi
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025171
cmp dword [rsp + 0x40], 4
jne 0x140025171
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r8d, r14d
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025171
cmp dword [rsp + 0x40], r14d
jne 0x140025171
mov eax, dword [rsp + 0x48]
cmp eax, 0x400
ja 0x140025171
mov r14d, ebx
test eax, eax
je 0x140025153
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r8d, 0x10
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140025171
cmp dword [rsp + 0x40], 0x10
jne 0x140025171
mov rdx, qword [rsp + 0x58]
test r12b, r12b
jne 0x140025122
call fcn.1400035d8
mov r8, qword [rsp + 0x60]
mov r12b, 1
cmp r8, rax
mov qword [0x14005f378], rdx
cmovbe r8, rax
mov qword [rsp + 0x60], r8
jmp 0x140025127
mov r8, qword [rsp + 0x60]
add r8, 0xffff
lea rcx, [0x14005fc70]
and r8, 0xffffffffffff0000
call fcn.14000392c
test eax, eax
jne 0x140025171
inc r14d
cmp r14d, dword [rsp + 0x48]
jb 0x1400250c9
test rdi, rdi
je 0x140025161
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rsi
cmp rsi, r15
jl 0x140024e9f
mov al, 1
jmp 0x140025187
test rdi, rdi
je 0x140025185
mov rcx, rdi
jmp 0x14002517f
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140011610
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret