Function at 0x140004e20
Capabilities:
Read file on windows

Disassembly:
test rcx, rcx
je 0x140004f1b
push r15
sub rsp, 0xa0
mov rax, qword [0x1400ee098]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r15, qword [0x1400ee0d0]
lea rdx, [0x1400c8828]
mov qword [rsp + 0xb8], rbx
call fcn.140002cc0
mov rbx, rax
test rax, rax
je 0x140004efa
xor edx, edx
mov qword [rsp + 0x98], rdi
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000511c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000511c
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000511c
mov rcx, qword [0x1400ee0d0]
lea eax, [rdi + 1]
mov qword [rsp + 0xc0], rbp
inc dword [rcx + 0x34c]
mov rdx, qword [rcx + 0xe8]
movsxd rcx, eax
call rdx
mov rbp, rax
test rax, rax
jne 0x140004f1c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbp, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400b4d80
add rsp, 0xa0
pop r15
ret
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140004f56
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400ee0d0]
mov rcx, rbp
dec dword [rax + 0x34c]
call qword [rax + 0xf0]
jmp 0x140004eea
xor eax, eax
mov qword [rsp + 0xc8], rsi
mov qword [rsp + 0x90], r14
lea r14, [rdi + rbp]
mov byte [r14], al
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor edi, edi
mov rsi, rbp
cmp rbp, r14
jae 0x1400050f1
mov rbx, rsi
cmp rsi, r14
jae 0x140004fa3
nop dword [rax + rax]
movzx eax, byte [rbx]
cmp al, 0xa
je 0x140004fa3
cmp al, 0xd
je 0x140004fa3
inc rbx
cmp rbx, r14
jb 0x140004f90
cmp byte [rsi], 0x5b
jne 0x140005039
cmp rbx, rsi
jbe 0x140005039
cmp byte [rbx - 1], 0x5d
jne 0x140005039
mov r9d, ebx
lea rax, [rsi + 1]
sub r9d, esi
mov qword [rsp + 0x20], rax
sub r9d, 2
lea r8, str._.s
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.1400025a0
mov rdi, qword [0x1400ee0d0]
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call fcn.1400026b0
movsxd rdx, dword [rdi + 0x1840]
xor ecx, ecx
test edx, edx
je 0x140005027
mov rdi, qword [rdi + 0x1848]
cmp dword [rdi + 8], eax
je 0x1400050e4
inc rcx
add rdi, 0x20
cmp rcx, rdx
jne 0x140005012
lea rcx, [rsp + 0x40]
call fcn.140004cd0
mov rdi, rax
jmp 0x1400050e4
test rdi, rdi
je 0x1400050e4
lea r9, [rsp + 0x34]
mov rcx, rsi
lea r8, [rsp + 0x30]
lea rdx, str.Pos_f__f
call fcn.140001810
cmp eax, 2
jne 0x140005078
movss xmm0, dword [rsp + 0x30]
movss xmm1, dword [rsp + 0x34]
movss dword [rdi + 0xc], xmm0
movss dword [rdi + 0x10], xmm1
jmp 0x1400050e4
lea r9, [rsp + 0x34]
mov rcx, rsi
lea r8, [rsp + 0x30]
lea rdx, str.Size_f__f
call fcn.140001810
cmp eax, 2
jne 0x1400050c0
movss xmm1, dword [rsp + 0x30]
maxss xmm1, dword [r15 + 0x140c]
movss xmm0, dword [rsp + 0x34]
maxss xmm0, dword [r15 + 0x1410]
movss dword [rdi + 0x14], xmm1
movss dword [rdi + 0x18], xmm0
jmp 0x1400050e4
lea r8, [rsp + 0x38]
mov rcx, rsi
lea rdx, str.Collapsed_d
call fcn.140001810
cmp eax, 1
jne 0x1400050e4
cmp dword [rsp + 0x38], 0
setne al
mov byte [rdi + 0x1c], al
lea rsi, [rbx + 1]
cmp rsi, r14
jb 0x140004f83
mov rax, qword [0x1400ee0d0]
mov rcx, rbp
dec dword [rax + 0x34c]
call qword [rax + 0xf0]
mov r14, qword [rsp + 0x90]
mov rsi, qword [rsp + 0xc8]
jmp 0x140004eea
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140004ef2