Function at 0x180004d00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1800163c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
mov rax, qword [rcx + 0x38]
mov rcx, qword [rax]
test rcx, rcx
je 0x180004d63
mov rdx, qword [rdi + 0x50]
movsxd r9, dword [rdx]
lea rax, [rcx + r9]
cmp rcx, rax
jae 0x180004d63
lea eax, [r9 - 1]
mov dword [rdx], eax
mov rcx, qword [rdi + 0x38]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
movzx eax, byte [rdx]
jmp 0x180004fbf
cmp qword [rdi + 0x80], 0
jne 0x180004d77
mov eax, 0xffffffff
jmp 0x180004fbf
mov r9, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r9], rax
jne 0x180004da4
mov rdx, qword [rdi + 0x90]
mov rcx, qword [rdi + 0x88]
mov qword [r9], rcx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov rcx, qword [rdi + 0x80]
cmp qword [rdi + 0x68], 0
jne 0x180004ddf
mov r9, rcx
mov edx, 1
mov r8d, edx
lea rcx, [rbp - 0x2f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
movzx ebx, byte [rbp - 0x2f]
je 0x180004fbd
mov ebx, 0xffffffff
jmp 0x180004fbd
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], 0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
mov r8d, eax
cmp eax, 0xffffffff
je 0x180004f18
nop dword [rax]
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
cmp rcx, rdx
jae 0x180004e3d
lea rax, [rcx + 1]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
cmp rdx, 0xf
cmova rax, qword [rbp - 0x28]
mov byte [rax + rcx], r8b
mov byte [rax + rcx + 1], 0
jmp 0x180004e4a
movzx r9d, r8b
lea rcx, [rbp - 0x28]
call fcn.1800079b0
mov r11, qword [rdi + 0x68]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rdx, qword [rbp - 0x28]
mov r9, qword [rbp - 0x18]
add r9, rdx
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova r8, qword [rbp - 0x28]
mov rax, qword [r11]
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x2f]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
lea rdx, [rdi + 0x74]
mov rcx, r11
call qword [rax + 0x30]
test eax, eax
je 0x180004eaf
sub eax, 1
jne 0x180004f5a
lea rax, [rbp - 0x30]
mov rbx, qword [rbp - 0x18]
cmp qword [rbp - 0x38], rax
lea rax, [rbp - 0x28]
jne 0x180004f72
cmp qword [rbp - 0x10], 0xf
cmova rax, qword [rbp - 0x28]
mov r9, qword [rbp - 0x40]
sub r9, rax
cmp rbx, r9
cmovb r9, rbx
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rcx, qword [rbp - 0x28]
sub rbx, r9
lea r8, [rbx + 1]
lea rdx, [rcx + r9]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x18], rbx
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
mov r8d, eax
cmp eax, 0xffffffff
jne 0x180004e10
mov ebx, 0xffffffff
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x180004fbd
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004fb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004fb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp eax, 2
jne 0x180004f18
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rax, qword [rbp - 0x28]
movsx ebx, byte [rax]
jmp 0x180004f1d
cmp qword [rbp - 0x10], 0xf
cmova rax, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x40]
sub rbx, rcx
add rbx, rax
test rbx, rbx
jle 0x180004faf
nop dword [rax + rax]
dec rbx
movsx ecx, byte [rbx + rcx]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ungetc]
test rbx, rbx
jle 0x180004faf
mov rcx, qword [rbp - 0x40]
jmp 0x180004f90
movzx ebx, byte [rbp - 0x30]
jmp 0x180004f1d
call fcn.18000cd74
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18000c9a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret