Function at 0x140024d9c
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 [0x140060ad0], ebx
je 0x140024de4
mov byte [rsp + 0x44], 1
jmp 0x140024dff
cmp dword [0x14005f324], ebx
je 0x140024dfb
mov word [rsp + 0x44], 1
mov r15d, 2
jmp 0x140024e05
mov byte [rsp + 0x44], bl
mov r15d, 1
mov r12b, bl
mov rsi, rbx
cmp byte [rsp + rsi + 0x44], bl
je 0x140024e2e
mov r8, qword [0x140061370]
lea rdx, str._sast
lea rcx, [rbp - 0x10]
call fcn.140023fec
lea rcx, [rbp - 0x10]
jmp 0x140024e35
mov rcx, qword [0x140061370]
lea rdx, [rbp - 0x10]
call fcn.140025a10
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 0x1400250e7
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 0x1400250dd
cmp dword [rsp + 0x40], 0x60
jne 0x1400250dd
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 0x1400250dd
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 0x1400250dd
cmp dword [rsp + 0x40], 4
jne 0x1400250dd
mov r9d, 1
lea r8, [rsp + 0x70]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400250dd
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 0x1400250dd
cmp dword [rsp + 0x40], 8
jne 0x1400250dd
cmp r14, qword [rsp + 0x50]
jne 0x1400250dd
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 0x1400250dd
cmp dword [rsp + 0x40], 4
jne 0x1400250dd
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 0x1400250dd
cmp dword [rsp + 0x40], r14d
jne 0x1400250dd
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 0x1400250dd
cmp dword [rsp + 0x40], 4
jne 0x1400250dd
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 0x1400250dd
cmp dword [rsp + 0x40], r14d
jne 0x1400250dd
mov eax, dword [rsp + 0x48]
cmp eax, 0x400
ja 0x1400250dd
mov r14d, ebx
test eax, eax
je 0x1400250bf
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 0x1400250dd
cmp dword [rsp + 0x40], 0x10
jne 0x1400250dd
mov rdx, qword [rsp + 0x58]
test r12b, r12b
jne 0x14002508e
call fcn.140002ed8
mov r8, qword [rsp + 0x60]
mov r12b, 1
cmp r8, rax
mov qword [0x14005f308], rdx
cmovbe r8, rax
mov qword [rsp + 0x60], r8
jmp 0x140025093
mov r8, qword [rsp + 0x60]
add r8, 0xffff
lea rcx, [0x14005fc60]
and r8, 0xffffffffffff0000
call fcn.14000322c
test eax, eax
jne 0x1400250dd
inc r14d
cmp r14d, dword [rsp + 0x48]
jb 0x140025035
test rdi, rdi
je 0x1400250cd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rsi
cmp rsi, r15
jl 0x140024e0b
mov al, 1
jmp 0x1400250f3
test rdi, rdi
je 0x1400250f1
mov rcx, rdi
jmp 0x1400250eb
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140011450
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