Function at 0x140024a30
Capabilities:
Read file on windows

Disassembly:
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14003c008]
xor rax, rsp
mov qword [rbp - 0x18], rax
xor r14d, r14d
mov r15, rcx
test dl, 1
jne 0x140024a5f
movzx eax, r14w
jmp 0x140024cad
mov rcx, qword [rcx]
lea r9, [rbp - 0x40]
xor eax, eax
mov qword [rsp + 0x98], rbx
lea rdx, [rbp - 0x38]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x20], r14
lea r8d, [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea rbx, [0x140030680]
test eax, eax
jne 0x140024aba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140024aa8
mov eax, eax
mov ecx, dword [rbx + rax*4]
jmp 0x140024aad
mov ecx, operator
mov dword [0x140042de8], ecx
mov byte [0x1400433b0], r14b
cmp dword [rbp - 0x40], 0x10
jne 0x140024cc8
cmp byte [rbp - 0x38], 0xff
jne 0x140024cc8
cmp byte [rbp - 0x37], 0x57
jne 0x140024cc8
cmp byte [rbp - 0x36], 0x50
jne 0x140024cc8
cmp byte [rbp - 0x35], 0x43
jne 0x140024cc8
movzx edx, word [rbp - 0x2a]
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r13
mov r13d, dword [rbp - 0x34]
test edx, edx
je 0x140024c79
xor r8d, r8d
mov rcx, r15
call fcn.14002a520
mov rcx, qword [r15]
lea r9, [rbp - 0x40]
mov r8d, 0xe
mov qword [rsp + 0x20], r14
lea rdx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140024b65
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140024b53
mov eax, eax
mov ecx, dword [rbx + rax*4]
jmp 0x140024b58
mov ecx, operator
mov dword [0x140042de8], ecx
mov byte [0x1400433b0], r14b
cmp byte [rbp - 0x40], 0xe
jne 0x140024cc3
movzx r12d, word [rbp - 0x26]
mov esi, 1
cmp si, r12w
ja 0x140024c79
mov rcx, qword [r15]
lea r9, [rbp - 0x3c]
mov r8d, 0xe
mov qword [rsp + 0x20], r14
lea rdx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140024bc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140024bb5
mov eax, eax
mov ecx, dword [rbx + rax*4]
jmp 0x140024bba
mov ecx, operator
mov dword [0x140042de8], ecx
mov byte [0x1400433b0], r14b
cmp byte [rbp - 0x3c], 0xe
jne 0x140024cc3
cmp byte [rbp - 0x27], 6
jne 0x140024c6c
mov edx, dword [rbp - 0x1e]
xor r8d, r8d
mov ebx, dword [rbp - 0x22]
mov rcx, r15
call fcn.14002a520
lea ecx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140024cc3
mov rcx, qword [r15]
lea r9, [rbp - 0x40]
mov r8d, ebx
mov qword [rsp + 0x20], r14
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140024c28
lea rcx, [rbp - 0x40]
call fcn.14002a4e0
jmp 0x140024c2b
mov eax, dword [rbp - 0x40]
movzx eax, ax
cmp eax, ebx
jne 0x140024cc3
movzx ecx, word [rdi + 5]
sub ebx, ecx
mov eax, ecx
cmp ebx, 0xfe
jne 0x140024c5c
movzx edx, cx
mov r8d, ebx
add rdx, rdi
lea rcx, [0x14003cbe2]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rbx, [0x140030680]
inc si
cmp si, r12w
jbe 0x140024b83
xor r8d, r8d
mov edx, r13d
mov rcx, r15
call fcn.14002a520
movzx eax, r14w
mov r12, qword [rsp + 0x68]
mov rdi, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.14002c160
add rsp, 0x70
pop r15
pop r14
pop rbp
ret
or eax, 0xffffffff
jmp 0x140024c8b
or eax, 0xffffffff
jmp 0x140024ca5