Function at 0x140025310
Capabilities:
Read file on windows

Disassembly:
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x18], rax
xor r14d, r14d
mov r15, rcx
test dl, 1
jne 0x14002533f
movzx eax, r14w
jmp 0x1400255b4
mov rcx, qword [rcx]
xor eax, eax
lea r9, [rbp - 0x40]
lea rdx, [rbp - 0x38]
lea r8d, [rax + 0x10]
mov qword [rsp + 0x98], rbx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea rbx, [0x1400310a0]
test eax, eax
jne 0x1400253a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x140025388
mov eax, eax
mov ecx, dword [rbx + rax*4]
jmp 0x14002538d
mov ecx, 0x106
mov dword [0x1400430b8], ecx
mov dword [0x1400434c8], 2
mov byte [0x1400433c0], r14b
cmp dword [rbp - 0x40], 0x10
jne 0x1400255cf
cmp byte [rbp - 0x38], 0xff
jne 0x1400255cf
cmp byte [rbp - 0x37], 0x57
jne 0x1400255cf
cmp byte [rbp - 0x36], 0x50
jne 0x1400255cf
cmp byte [rbp - 0x35], 0x43
jne 0x1400255cf
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 0x140025580
xor r8d, r8d
mov rcx, r15
call fcn.14002ad10
mov rcx, qword [r15]
lea r9, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8d, 0xe
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140025459
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x14002543d
mov eax, eax
mov ecx, dword [rbx + rax*4]
jmp 0x140025442
mov ecx, 0x106
mov dword [0x1400430b8], ecx
mov dword [0x1400434c8], 2
mov byte [0x1400433c0], r14b
cmp byte [rbp - 0x40], 0xe
jne 0x1400255ca
movzx r12d, word [rbp - 0x26]
mov esi, 1
cmp si, r12w
ja 0x140025580
nop word [rax + rax]
mov rcx, qword [r15]
lea r9, [rbp - 0x3c]
lea rdx, [rbp - 0x28]
mov r8d, 0xe
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400254ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x58
jae 0x1400254b2
mov eax, eax
mov ecx, dword [rbx + rax*4]
jmp 0x1400254b7
mov ecx, 0x106
mov dword [0x1400430b8], ecx
mov dword [0x1400434c8], 2
mov byte [0x1400433c0], r14b
cmp byte [rbp - 0x3c], 0xe
jne 0x1400255ca
cmp byte [rbp - 0x27], 6
jne 0x140025573
mov edx, dword [rbp - 0x1e]
mov ebx, dword [rbp - 0x22]
xor r8d, r8d
mov rcx, r15
call fcn.14002ad10
lea ecx, [rbx + 1]
call qword [sym.imp.MSVCR120.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400255ca
mov rcx, qword [r15]
lea r9, [rbp - 0x40]
mov r8d, ebx
mov rdx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002552f
lea rcx, [rbp - 0x40]
call fcn.14002acc0
jmp 0x140025532
mov eax, dword [rbp - 0x40]
movzx eax, ax
cmp eax, ebx
jne 0x1400255ca
movzx ecx, word [rdi + 5]
sub ebx, ecx
mov eax, ecx
cmp ebx, 0xfe
jne 0x140025563
movzx edx, cx
lea rcx, [0x14003cbb2]
mov r8d, ebx
add rdx, rdi
call qword [sym.imp.MSVCR120.dll_memmove]
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_free]
lea rbx, [0x1400310a0]
inc si
cmp si, r12w
jbe 0x140025480
xor r8d, r8d
mov edx, r13d
mov rcx, r15
call fcn.14002ad10
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.14002c960
add rsp, 0x70
pop r15
pop r14
pop rbp
ret
or eax, 0xffffffff
jmp 0x140025592
or eax, 0xffffffff
jmp 0x1400255ac