Function at 0x475449
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, [0x0050c5bf]
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.00476fc1
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 0x47557b
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 0x475bf1
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.00474ab9
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 0x47564f
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x4755fa
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 0x475bf1
mov eax, dword [rbp - 0xd0]
mov dword [rbp - 0x164], eax
mov eax, dword [rbp - 0x164]
cmp eax, 0
jne 0x475840
mov rax, qword [rbp - 0x10]
mov r11, rax
lea rax, [rbp - 0x1f8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0047518a
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 0x47572e
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x4756d9
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 0x475bf1
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.00407f50
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.00408143
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.0042c0a5
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x475817
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 0x475bf1
mov eax, dword [rbp - 0x164]
add eax, 1
movsxd rax, eax
mov r10, rax
mov rcx, r10
call fcn.00422be9
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 0x475a5b
mov eax, dword [rbp - 0x2cc]
cmp eax, 0
je 0x475a5b
mov rax, qword [rbp - 0x2c0]
mov r10, rax
mov rcx, r10
call fcn.00423c1b
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.0042be7a
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 0x475a32
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 0x475bf1
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 0x475b36
mov rax, qword [rbp - 0x2c0]
mov r11, rax
lea rax, [rbp - 0x3c8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0042ff5a
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.0042c0a5
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x475b0d
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 0x475bf1
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.0042ffd1
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.0042c0a5
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x475bc8
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 0x475bf1
leave
ret