Function at 0x4c6bf2
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x460
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov eax, 0
mov byte [rbp - 1], al
lea rax, [0x005509d3]
mov qword [rbp - 0x30], rax
mov eax, 2
mov dword [rbp - 0x28], eax
mov eax, 1
mov dword [rbp - 0x24], eax
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x30]
mov r11, rax
lea rax, [rbp - 0x20]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rsp + 0x20]
mov ecx, 0x10
mov r8, rcx
lea rcx, [rbp - 0x20]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rsp + 0x30]
mov ecx, 0x10
mov r8, rcx
mov rcx, qword [rbp + 0x18]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea r8, [rsp + 0x20]
lea r11, [rsp + 0x30]
lea rax, [rbp - 0x90]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004c876a
mov eax, 0x30
mov r8, rax
lea rax, [rbp - 0x90]
mov r11, rax
lea rax, [rbp - 0x60]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movzx eax, byte [rbp - 0x60]
cmp eax, 0
je 0x4c6d24
movabs rax, 0x28
mov r8, rax
lea rax, [rbp - 0x60]
mov r11, rax
lea rax, [rbp - 0xc8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x10]
mov ecx, 0x38
mov r8, rcx
lea rcx, [rbp - 0xc8]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4c739a
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x10], rax
mov eax, 1
mov byte [rbp - 1], al
mov rax, qword [rbp - 0x10]
mov r11, rax
lea rax, [rbp - 0x128]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004c6262
mov eax, 0x30
mov r8, rax
lea rax, [rbp - 0x128]
mov r11, rax
lea rax, [rbp - 0xf8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movzx eax, byte [rbp - 0xf8]
cmp eax, 0
je 0x4c6df8
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x4c6da3
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_fclose
movabs rax, 0x28
mov r8, rax
lea rax, [rbp - 0xf8]
mov r11, rax
lea rax, [rbp - 0x160]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x10]
mov ecx, 0x38
mov r8, rcx
lea rcx, [rbp - 0x160]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4c739a
mov eax, dword [rbp - 0xd0]
mov dword [rbp - 0x164], eax
mov eax, dword [rbp - 0x164]
cmp eax, 0
jne 0x4c6fe9
mov rax, qword [rbp - 0x10]
mov r11, rax
lea rax, [rbp - 0x1f8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004c6933
mov eax, 0x48
mov r8, rax
lea rax, [rbp - 0x1f8]
mov r11, rax
lea rax, [rbp - 0x1b0]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movzx eax, byte [rbp - 0x1b0]
cmp eax, 0
je 0x4c6ed7
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x4c6e82
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_fclose
movabs rax, 0x28
mov r8, rax
lea rax, [rbp - 0x1b0]
mov r11, rax
lea rax, [rbp - 0x230]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x10]
mov ecx, 0x38
mov r8, rcx
lea rcx, [rbp - 0x230]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4c739a
mov eax, 0x20
mov r8, rax
lea rax, [rbp - 0x188]
mov r11, rax
lea rax, [rbp - 0x250]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rbp - 0x250]
mov r11, rax
lea rax, [rbp - 0x270]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0043f213
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x270]
mov r11, rax
lea rax, [rbp - 0x260]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rbp - 0x250]
mov r10, rax
mov rcx, r10
call fcn.0043f406
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x260]
mov r11, rax
lea rax, [rbp - 0x2b8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x2a8]
mov r11, rax
lea rax, [rbp - 0x2b8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004633a2
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x4c6fc0
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_fclose
mov rax, qword [rbp + 0x10]
mov ecx, 0x38
mov r8, rcx
lea rcx, [rbp - 0x2a8]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4c739a
mov eax, dword [rbp - 0x164]
add eax, 1
movsxd rax, eax
mov r10, rax
mov rcx, r10
call fcn.00459eef
mov qword [rbp - 0x2c0], rax
mov eax, dword [rbp - 0x164]
movsxd rax, eax
mov rcx, qword [rbp - 0x10]
mov r9, rcx
mov r8, rax
movabs rax, 1
mov r11, rax
mov rax, qword [rbp - 0x2c0]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fread
shl rax, 0x20
shr rax, 0x20
mov dword [rbp - 0x2c4], eax
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_feof
mov dword [rbp - 0x2c8], eax
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_ferror
mov dword [rbp - 0x2cc], eax
mov eax, dword [rbp - 0x2c8]
cmp eax, 0
jne 0x4c7204
mov eax, dword [rbp - 0x2cc]
cmp eax, 0
je 0x4c7204
mov rax, qword [rbp - 0x2c0]
mov r10, rax
mov rcx, r10
call fcn.0045af21
mov eax, 1
mov byte [rbp - 0x340], al
movabs rax, 7
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x33f]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
lea rax, str.fread_failed
mov qword [rbp - 0x370], rax
mov eax, 0xc
mov dword [rbp - 0x368], eax
mov eax, 1
mov dword [rbp - 0x364], eax
lea rax, [rsp + 0x20]
mov ecx, 0x10
mov r8, rcx
lea rcx, [rbp - 0x370]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea r11, [rsp + 0x20]
lea rax, [rbp - 0x360]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00463177
mov eax, 0x20
mov r8, rax
lea rax, [rbp - 0x360]
mov r11, rax
lea rax, [rbp - 0x338]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0
mov byte [rbp - 0x318], al
movabs rax, 0xf
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x317]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, 0x38
mov r8, rax
lea rax, [rbp - 0x340]
mov r11, rax
lea rax, [rbp - 0x308]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x4c71db
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_fclose
mov rax, qword [rbp + 0x10]
mov ecx, 0x38
mov r8, rcx
lea rcx, [rbp - 0x308]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4c739a
mov eax, dword [rbp - 0x2c4]
movsxd rax, eax
mov rcx, qword [rbp - 0x2c0]
add rcx, rax
mov eax, 0
mov byte [rcx], al
mov eax, dword [rbp - 0x2c4]
cmp eax, 0
jne 0x4c72df
mov rax, qword [rbp - 0x2c0]
mov r11, rax
lea rax, [rbp - 0x3c8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00467257
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x3c8]
mov r11, rax
lea rax, [rbp - 0x3b8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x3a8]
mov r11, rax
lea rax, [rbp - 0x3b8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004633a2
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x4c72b6
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_fclose
mov rax, qword [rbp + 0x10]
mov ecx, 0x38
mov r8, rcx
lea rcx, [rbp - 0x3a8]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4c739a
mov eax, dword [rbp - 0x2c4]
mov r8, rax
mov rax, qword [rbp - 0x2c0]
mov r11, rax
lea rax, [rbp - 0x420]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004672ce
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x420]
mov r11, rax
lea rax, [rbp - 0x410]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x400]
mov r11, rax
lea rax, [rbp - 0x410]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004633a2
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x4c7371
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_fclose
mov rax, qword [rbp + 0x10]
mov ecx, 0x38
mov r8, rcx
lea rcx, [rbp - 0x400]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x4c739a
leave
ret