Function at 0x1400128fb
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x4a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x430], rcx
mov qword [rbp + 0x438], rdx
mov dword [rbp + 0x440], r8d
mov dword [rbp + 0x448], r9d
lea rax, [rbp - 0x20]
mov qword [rbp + 0x418], rax
mov dword [rbp + 0x414], 0
mov dword [rbp + 0x40c], 0
mov rdx, qword [rbp + 0x450]
mov rax, qword [rbp + 0x430]
mov rcx, rax
call fcn.14000f416
mov qword [rbp + 0x400], rax
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x30], 0
cmp qword [rbp + 0x438], 0
jne 0x140012987
mov eax, 0xfffffffc
jmp 0x140012cf6
mov rax, qword [rbp + 0x438]
lea rdx, [0x1400a9d00]
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp + 0x3f8], rax
cmp qword [rbp + 0x3f8], 0
jne 0x1400129b8
mov eax, 0xfffffffc
jmp 0x140012cf6
mov rax, qword [rbp + 0x3f8]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_fseek
test eax, eax
je 0x1400129ef
mov rax, qword [rbp + 0x3f8]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov eax, 0xfffffffc
jmp 0x140012cf6
mov rax, qword [rbp + 0x3f8]
mov rcx, rax
call sub.msvcrt.dll_ftell
mov dword [rbp + 0x40c], eax
mov rax, qword [rbp + 0x3f8]
mov r8d, 0
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_fseek
test eax, eax
je 0x140012a3b
mov rax, qword [rbp + 0x3f8]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov eax, 0xfffffffc
jmp 0x140012cf6
cmp dword [rbp + 0x40c], 0x400000
jg 0x140012a50
cmp dword [rbp + 0x40c], 0
jg 0x140012a69
mov rax, qword [rbp + 0x3f8]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov eax, 0xfffffffc
jmp 0x140012cf6
cmp dword [rbp + 0x40c], 0x400
jle 0x140012ab9
mov eax, dword [rbp + 0x40c]
cdqe
mov rcx, rax
call fcn.14004ff3e
mov qword [rbp + 0x418], rax
cmp qword [rbp + 0x418], 0
jne 0x140012aaf
mov rax, qword [rbp + 0x3f8]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov eax, 0xfffffffc
jmp 0x140012cf6
mov dword [rbp + 0x414], 1
mov eax, dword [rbp + 0x40c]
movsxd rdx, eax
mov rcx, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x418]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov rdx, rax
mov eax, dword [rbp + 0x40c]
cdqe
cmp rdx, rax
je 0x140012b02
mov dword [rbp + 0x410], 0xfffffffc
jmp 0x140012cb1
cmp dword [rbp + 0x448], 0x16
jne 0x140012bed
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x28]
mov r8, rdx
mov rdx, rax
mov ecx, 5
call fcn.14005e8a4
test eax, eax
jne 0x140012b5b
mov ecx, dword [rbp + 0x40c]
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp + 0x418]
mov r8d, ecx
mov rcx, rax
call fcn.14004f698
test rax, rax
je 0x140012b5b
mov dword [rbp + 0x448], 5
jmp 0x140012bed
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x28]
mov r8, rdx
mov rdx, rax
mov ecx, 0
call fcn.14005e8a4
test eax, eax
jne 0x140012ba4
mov ecx, dword [rbp + 0x40c]
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp + 0x418]
mov r8d, ecx
mov rcx, rax
call fcn.14004f698
test rax, rax
je 0x140012ba4
mov dword [rbp + 0x448], 0
jmp 0x140012bed
cmp dword [rbp + 0x414], 0
je 0x140012bd4
mov rax, qword [rbp + 0x418]
mov qword [rbp + 0x3f0], rax
cmp qword [rbp + 0x3f0], 0
je 0x140012bd4
mov rax, qword [rbp + 0x3f0]
mov rcx, rax
call fcn.14004ff8e
mov rax, qword [rbp + 0x3f8]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov eax, 0xfffffff8
jmp 0x140012cf6
cmp dword [rbp + 0x448], 5
je 0x140012bff
cmp dword [rbp + 0x448], 0xf
jne 0x140012c54
cmp dword [rbp + 0x440], 1
jne 0x140012c54
mov r9d, dword [rbp + 0x440]
mov r8d, dword [rbp + 0x40c]
mov rdx, qword [rbp + 0x418]
mov rax, qword [rbp + 0x430]
mov ecx, dword [rbp + 0x468]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp + 0x450]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rbp + 0x448]
mov dword [rsp + 0x20], ecx
mov rcx, rax
call fcn.14001282b
mov dword [rbp + 0x410], eax
jmp 0x140012cb1
mov r9d, dword [rbp + 0x440]
mov r8d, dword [rbp + 0x40c]
mov rdx, qword [rbp + 0x418]
mov rax, qword [rbp + 0x430]
mov ecx, dword [rbp + 0x468]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rbp + 0x458]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], 0
mov rcx, qword [rbp + 0x450]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rbp + 0x448]
mov dword [rsp + 0x20], ecx
mov rcx, rax
call fcn.14001176b
mov dword [rbp + 0x410], eax
mov rax, qword [rbp + 0x3f8]
mov rcx, rax
call sub.msvcrt.dll_fclose
cmp dword [rbp + 0x414], 0
je 0x140012cf0
mov rax, qword [rbp + 0x418]
mov qword [rbp + 0x3e8], rax
cmp qword [rbp + 0x3e8], 0
je 0x140012cf0
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call fcn.14004ff8e
mov eax, dword [rbp + 0x410]
add rsp, 0x4a0
pop rbp
ret