Function at 0x4a017b
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, [0x0051de33]
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.004a1cfe
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 0x4a02b8
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 0x4a092e
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.0049f7f6
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 0x4a038c
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x4a0337
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 0x4a092e
mov eax, dword [rbp - 0xd0]
mov dword [rbp - 0x164], eax
mov eax, dword [rbp - 0x164]
cmp eax, 0
jne 0x4a057d
mov rax, qword [rbp - 0x10]
mov r11, rax
lea rax, [rbp - 0x1f8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0049fec7
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 0x4a046b
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x4a0416
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 0x4a092e
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.0042f261
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.0042f454
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.004533f0
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x4a0554
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 0x4a092e
mov eax, dword [rbp - 0x164]
add eax, 1
movsxd rax, eax
mov r10, rax
mov rcx, r10
call fcn.00449f3d
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 0x4a0798
mov eax, dword [rbp - 0x2cc]
cmp eax, 0
je 0x4a0798
mov rax, qword [rbp - 0x2c0]
mov r10, rax
mov rcx, r10
call fcn.0044af6f
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.004531c5
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 0x4a076f
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 0x4a092e
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 0x4a0873
mov rax, qword [rbp - 0x2c0]
mov r11, rax
lea rax, [rbp - 0x3c8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004572a5
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.004533f0
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x4a084a
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 0x4a092e
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.0045731c
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.004533f0
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x4a0905
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 0x4a092e
leave
ret