Function at 0x1400a0d30
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x488
mov rax, qword [0x140419c00]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r13, qword [rsp + 0x4f0]
lea rdi, [rsp + 0x70]
mov qword [rsp + 0x68], rcx
mov ebx, r9d
mov rcx, qword [rsp + 0x4e0]
mov r12d, r8d
mov qword [rsp + 0x60], rcx
mov rax, rdx
xor ecx, ecx
mov qword [rsp + 0x50], rcx
mov r15d, ecx
mov qword [rsp + 0x58], rcx
test rdx, rdx
je 0x1400a100f
lea rdx, [0x1402487f4]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
test rax, rax
je 0x1400a100f
xor edx, edx
mov qword [rsp + 0x4d8], rbp
mov rcx, rax
mov qword [rsp + 0x480], r14
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400a0ffc
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, rsi
movsxd rbp, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
lea eax, [rbp - 1]
cmp eax, 0x3fffff
ja 0x1400a0ffc
cmp ebp, 0x400
jle 0x1400a0e1b
mov rcx, rbp
call fcn.1400c6880
mov rdi, rax
test rax, rax
je 0x1400a0ffc
mov r15d, 1
mov r9, rsi
mov r8, rbp
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbp
je 0x1400a0e3e
mov ebx, 0xfffffffc
jmp 0x1400a0f21
cmp ebx, 0x16
jne 0x1400a0f91
mov ebx, 5
lea r8, [rsp + 0x58]
mov ecx, ebx
lea rdx, [rsp + 0x50]
call fcn.1400cf570
test eax, eax
jne 0x1400a0e7a
mov rdx, qword [rsp + 0x50]
mov r8d, ebp
mov rcx, rdi
call fcn.1400c6750
test rax, rax
jne 0x1400a0f9b
lea r8, [rsp + 0x58]
mov ecx, 4
lea rdx, [rsp + 0x50]
call fcn.1400cf570
test eax, eax
jne 0x1400a0eab
mov rdx, qword [rsp + 0x50]
mov r8d, ebp
mov rcx, rdi
call fcn.1400c6750
test rax, rax
jne 0x1400a0fdb
lea r8, [rsp + 0x58]
xor ecx, ecx
lea rdx, [rsp + 0x50]
call fcn.1400cf570
test eax, eax
jne 0x1400a0f6f
mov rdx, qword [rsp + 0x50]
mov r8d, ebp
mov rcx, rdi
call fcn.1400c6750
test rax, rax
je 0x1400a0f6f
xor ebx, ebx
mov eax, dword [rsp + 0x4f8]
mov r9d, r12d
mov rcx, qword [rsp + 0x68]
mov r8d, ebp
mov dword [rsp + 0x40], eax
mov rdx, rdi
mov eax, dword [rsp + 0x4e8]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
call fcn.1400a0030
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r15d, r15d
je 0x1400a0f3c
test rdi, rdi
je 0x1400a0f3c
mov rcx, rdi
call fcn.1400c6860
mov eax, ebx
mov rbp, qword [rsp + 0x4d8]
mov r14, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400f4390
add rsp, 0x488
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
test r15d, r15d
je 0x1400a0f81
test rdi, rdi
je 0x1400a0f81
mov rcx, rdi
call fcn.1400c6860
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, 0xfffffff8
jmp 0x1400a0f3e
cmp ebx, 5
je 0x1400a0f9b
cmp ebx, 0xf
jne 0x1400a0fd2
cmp r12d, 1
jne 0x1400a0fd2
mov eax, dword [rsp + 0x4f8]
mov r9d, r12d
mov rcx, qword [rsp + 0x68]
mov r8d, ebp
mov dword [rsp + 0x30], eax
mov rdx, rdi
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
call fcn.1400a0c20
jmp 0x1400a0f1f
cmp ebx, 4
jne 0x1400a0edf
mov eax, dword [rsp + 0x4f8]
mov r9d, r12d
mov r8d, ebp
mov dword [rsp + 0x20], eax
mov rdx, rdi
mov rcx, r13
call fcn.1400c4a20
jmp 0x1400a0f1f
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, 0xfffffffc
jmp 0x1400a0f3e
mov eax, 0xfffffffc
jmp 0x1400a0f4e