Function at 0x140024e20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
movzx r14d, word [rbp + 0x48]
mov r15, r8
movzx r12d, dx
mov rbx, rcx
mov r13d, operator
mov esi, 1
xor r8d, r8d
nop dword [rax]
mov rcx, qword [rbx]
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], r8
lea rdx, [rbp + 0x48]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140024eaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140024e9a
mov eax, eax
lea rcx, [0x140000000]
mov ecx, dword [rcx + rax*4 + 0x30680]
jmp 0x140024e9d
mov ecx, r13d
mov dword [0x140042de8], ecx
mov byte [0x1400433b0], 0
mov ecx, dword [rbp - 0x10]
test ecx, ecx
je 0x1400252d9
sub ecx, 1
jne 0x1400252d4
movzx ecx, byte [rbp + 0x48]
mov r8d, 0
test cl, cl
je 0x140024e60
test r12b, 4
jne 0x14002527e
test r12b, 2
jne 0x140025228
test r12b, 1
je 0x1400252d4
cmp cl, 0x80
jb 0x140025208
cmp cl, 0xf0
je 0x14002511c
cmp cl, 0xd0
jae 0x140024f35
movzx edx, cl
add edx, 0xffffff80
cmp edx, 0x4f
ja 0x140024e60
lea rcx, [rbp + 0x48]
call fcn.140025390
cmp ax, 1
je 0x140024e59
movzx eax, byte [rbp + 0x48]
xor edi, edi
mov word [r15], ax
movzx eax, di
jmp 0x1400252dc
cmp cl, 0xf1
jne 0x14002504e
lea rdx, [rbp + 0x48]
mov rcx, rbx
call fcn.140025300
test ax, ax
jne 0x1400252dc
mov rcx, rbx
cmp byte [rbp + 0x48], al
je 0x140024f6d
mov r8d, esi
mov edx, 3
call fcn.14002a520
jmp 0x140024e59
lea rdx, [rbp + 0x48]
call fcn.140025300
test ax, ax
jne 0x1400252dc
movzx edi, byte [rbp + 0x48]
lea rdx, [rbp + 0x48]
mov rcx, rbx
call fcn.140025300
test ax, ax
jne 0x1400252dc
movzx eax, byte [rbp + 0x48]
mov edx, 0x100
movzx ecx, dx
mov r8d, esi
mov edx, eax
imul edx, ecx
mov rcx, rbx
add di, dx
mov edx, esi
call fcn.14002a520
nop dword [rax]
mov rcx, rbx
call fcn.1400255c0
test ax, ax
jne 0x1400252dc
lea rdx, [rbp + 0x48]
mov rcx, rbx
call fcn.140025300
test ax, ax
jne 0x1400252dc
cmp byte [rbp + 0x48], 1
mov rcx, rbx
je 0x140024ff6
mov edx, 3
jmp 0x140025037
lea rdx, [rbp + 0x48]
call fcn.140025300
test ax, ax
jne 0x1400252dc
movzx r14d, byte [rbp + 0x48]
lea rdx, [rbp + 0x48]
mov rcx, rbx
call fcn.140025300
test ax, ax
jne 0x1400252dc
movzx edx, byte [rbp + 0x48]
mov ecx, 0x100
imul edx, ecx
mov rcx, rbx
add r14w, dx
mov edx, esi
mov r8d, esi
call fcn.14002a520
cmp r14w, di
jne 0x140024fc0
jmp 0x140024e59
cmp cl, 0xd0
jne 0x14002510c
lea rdx, [rbp + 0x48]
mov rcx, rbx
call fcn.140025300
test ax, ax
jne 0x1400252dc
mov eax, 0xd0
sub al, byte [rbp + 0x48]
movzx edx, al
add edx, 0xffffff80
mov byte [rbp + 0x48], al
cmp edx, 0x4f
ja 0x140025092
lea rcx, [rbp + 0x48]
call fcn.140025390
movzx esi, ax
movzx eax, byte [rbp + 0x48]
movzx eax, al
lea rdx, [rbp + 0x48]
mov rcx, rbx
mov word [r15], ax
call fcn.140025300
test ax, ax
jne 0x1400252dc
movzx edi, byte [rbp + 0x48]
lea rdx, [rbp + 0x48]
mov rcx, rbx
call fcn.140025300
test ax, ax
jne 0x1400252dc
movzx edx, byte [rbp + 0x48]
mov ecx, 0x100
movsx ecx, cx
imul edx, ecx
add di, dx
movsx eax, di
sub eax, 4
test eax, eax
jle 0x1400250f8
sub di, 4
mov r8d, 1
movzx edx, di
mov rcx, rbx
call fcn.14002a520
cmp si, 1
je 0x140024e54
xor edi, edi
movzx eax, di
jmp 0x1400252dc
movzx edx, cl
mov rcx, rbx
call fcn.140025430
jmp 0x140024e59
mov rcx, qword [rbx]
lea r9, [rbp - 0x10]
xor edi, edi
lea rdx, [rbp + 0x48]
mov r8d, esi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140025168
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140025158
mov eax, eax
lea rcx, [0x140000000]
mov ecx, dword [rcx + rax*4 + 0x30680]
jmp 0x14002515b
mov ecx, r13d
mov dword [0x140042de8], ecx
mov byte [0x1400433b0], dil
mov ecx, dword [rbp - 0x10]
test ecx, ecx
je 0x1400252d9
cmp ecx, 1
jne 0x1400252d4
movzx eax, byte [rbp + 0x48]
lea r9, [rbp - 0x10]
mov rcx, qword [rbx]
lea rdx, [rbp + 0x48]
mov r8d, esi
mov word [r15], ax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400251cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x1400251bd
mov eax, eax
lea rcx, [0x140000000]
mov r13d, dword [rcx + rax*4 + 0x30680]
mov dword [0x140042de8], r13d
mov byte [0x1400433b0], dil
mov ecx, dword [rbp - 0x10]
test ecx, ecx
je 0x1400252d9
cmp ecx, 1
jne 0x1400252d4
movzx eax, byte [rbp + 0x48]
mov ecx, 0x100
mov r8d, eax
mov edx, esi
imul r8d, ecx
mov rcx, rbx
add word [r15], r8w
mov r8d, esi
call fcn.14002a520
movzx eax, di
jmp 0x1400252dc
movzx eax, cl
xor edi, edi
lea rcx, [0x140000000]
movzx eax, word [rcx + rax*2 + 0x3cbe0]
mov word [r15], ax
movzx eax, di
jmp 0x1400252dc
cmp cl, 9
je 0x1400252c4
lea eax, [rcx - 0xa]
test al, 0xfc
jne 0x140025250
cmp cl, 0xb
je 0x140025250
mov eax, 0xcc
xor edi, edi
mov word [r15], ax
movzx eax, di
jmp 0x1400252dc
movzx eax, cl
cmp cl, 0x80
jb 0x1400252c9
mov edx, 0x100
cmp eax, edx
jg 0x1400252c4
movzx eax, cl
xor edi, edi
lea rcx, [0x140000000]
movzx eax, word [rcx + rax*2 + 0x30410]
mov word [r15], ax
movzx eax, di
jmp 0x1400252dc
cmp cl, 9
je 0x1400252c4
lea eax, [rcx - 0xa]
test al, 0xfc
jne 0x14002528f
cmp cl, 0xb
jne 0x14002523d
cmp cl, 0x80
jae 0x1400252a2
movzx eax, cl
xor edi, edi
mov word [r15], ax
movzx eax, di
jmp 0x1400252dc
cmp cl, 0xa8
ja 0x1400252c4
movzx eax, cl
xor edi, edi
lea rcx, [0x140000000]
movzx eax, word [rcx + rax*2 + 0x30390]
mov word [r15], ax
movzx eax, di
jmp 0x1400252dc
mov eax, 0x20
xor edi, edi
mov word [r15], ax
movzx eax, di
jmp 0x1400252dc
or eax, 0xffffffff
jmp 0x1400252dc
movzx eax, si
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rbp
ret