Function at 0x14001de40
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x1400ac040]
xor rax, rsp
mov qword [rbp + 0xa0], rax
lea rdx, [0x1400a035c]
mov r15, r9
mov r14, r8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x14001e123
xor edx, edx
mov r8d, 2
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
je 0x14001e123
mov qword [rsp + 0x1b8], rdi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x1b0], r12
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rsi
call fcn.14002caa0
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
xor r12d, r12d
mov qword [rbp + 0x90], rdi
lea rax, [rsi + rdi]
mov dword [rsp + 0x58], r12d
mov qword [rbp + 0x98], rax
lea r8, [rsp + 0x5c]
mov qword [rbp + 0x88], rax
lea rdx, [rsp + 0x58]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x5c], r12d
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rbp - 0x30], r12
mov dword [rbp - 0x10], r12d
mov dword [rbp + 0x78], r12d
mov qword [rbp + 0x80], rdi
call fcn.14000d310
mov rbx, rax
test rax, rax
je 0x14001e092
cmp dword [rbp - 0x70], 8
je 0x14001df73
mov r8d, dword [rsp + 0x5c]
mov r9d, 4
mov edx, dword [rsp + 0x58]
mov rcx, rax
call fcn.14000d930
mov rbx, rax
mov dword [rbp - 0x70], 8
mov rax, qword gs:[0x58]
mov ecx, 0x10
mov rax, qword [rax]
cmp dword [rcx + rax], r12d
je 0x14001df94
mov ecx, 0x14
mov eax, dword [rcx + rax]
jmp 0x14001df9a
mov eax, dword [0x14010d170]
test eax, eax
je 0x14001dfb5
mov r8d, dword [rsp + 0x5c]
mov r9d, 4
mov edx, dword [rsp + 0x58]
mov rcx, rbx
call fcn.14000daf0
test rbx, rbx
je 0x14001e092
mov ecx, dword [rsp + 0x58]
lea r9, [rsp + 0x40]
mov eax, dword [rsp + 0x5c]
lea r8, [rsp + 0x48]
mov dword [rsp + 0x64], eax
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], ecx
lea eax, [rcx*4]
mov qword [rsp + 0x74], 1
mov rcx, qword [0x14010d180]
mov qword [rbp - 0x7c], r12
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x6c], 1
mov dword [rsp + 0x70], 0x1c
mov dword [rsp + 0x7c], r12d
mov dword [rbp - 0x80], 8
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], r12d
mov rax, qword [rcx]
call qword [rax + 0x28]
mov eax, dword [rsp + 0x68]
lea r9, [0x14010d168]
mov rcx, qword [0x14010d180]
lea r8, [rbp - 0x60]
mov rdx, qword [rsp + 0x40]
mov qword [rbp - 0x50], r12
mov dword [rbp - 0x60], 0x1c
mov qword [rbp - 0x5c], 4
mov dword [rbp - 0x54], eax
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, dword [rsp + 0x58]
mov rcx, rbx
mov dword [r14], eax
mov eax, dword [rsp + 0x5c]
mov dword [r15], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov bl, 1
jmp 0x14001e094
xor bl, bl
test rdi, rdi
je 0x14001e105
mov r8, qword [0x14010d190]
test r8, r8
je 0x14001e105
movsx rdx, word [r8 + 0x6260]
lea rcx, [r8 + 0x6264]
mov r9d, dword [r8 + 0x3ff0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001e0fa
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6260], cx
movsx rax, cx
lea rcx, [r8 + 0x6264]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [r8 + 0x625c]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r12, qword [rsp + 0x1b0]
movzx eax, bl
mov rdi, qword [rsp + 0x1b8]
jmp 0x14001e125
xor al, al
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14005da30
add rsp, 0x1c0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret