Function at 0x180004470
Capabilities:
Read file on windows

Disassembly:
push rbp
push r12
push r13
lea rbp, [rsp - 0x4d90]
mov eax, 0x4e90
call fcn.180025e10
sub rsp, rax
mov rax, qword [0x180038010]
xor rax, rsp
mov qword [rbp + 0x4d60], rax
mov qword [rsp + 0x38], r8
mov r12, rcx
mov qword [rsp + 0x30], rdx
lea rcx, [rbp + 0x960]
xor edx, edx
mov r8d, 0x4400
mov r13, r9
call fcn.1800115d0
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x800
call fcn.1800115d0
xor r9d, r9d
mov dword [rsp + 0x50], 0xebd0a0a2
xor r8d, r8d
mov dword [rsp + 0x54], 0x4433b9e5
xor edx, edx
mov dword [rsp + 0x58], 0xb668c087
mov rcx, r12
mov dword [rsp + 0x5c], 0xc79926b7
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, 0x4400
lea rdx, [rbp + 0x960]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180004538
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800045c4
mov rdx, qword [str.RDV5]
xor ecx, ecx
mov qword [rsp + 0x4e88], rsi
mov qword [rsp + 0x4e80], rdi
mov qword [rsp + 0x4e78], r14
mov r14, qword [rsp + 0x58]
mov qword [rsp + 0x4e70], r15
mov r15, qword [rsp + 0x50]
nop dword [rax + rax]
movsxd rsi, ecx
lea rdi, [rbp + 0xd60]
mov rax, rsi
shl rax, 7
add rdi, rax
cmp qword [rdi], r15
jne 0x180004595
cmp qword [rdi + 8], r14
jne 0x180004595
cmp qword [rdi + 0x38], rdx
je 0x1800045e0
inc ecx
cmp ecx, 0x80
jl 0x180004570
mov eax, 0x490
mov r14, qword [rsp + 0x4e78]
mov rdi, qword [rsp + 0x4e80]
mov rsi, qword [rsp + 0x4e88]
mov r15, qword [rsp + 0x4e70]
mov rcx, qword [rbp + 0x4d60]
xor rcx, rsp
call fcn.18000ed70
add rsp, 0x4e90
pop r13
pop r12
pop rbp
ret
mov rdx, qword [rdi + 0x20]
xor r9d, r9d
shl rdx, 9
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, 0x800
lea rdx, [rbp + 0x160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800046d4
cmp dword [rbp + 0x16c], 0x35564452
je 0x180004645
lea rcx, str.SSD_Cache_Header_is_invalid__n
call fcn.180003280
mov eax, 0x22
jmp 0x1800045a4
cmp word [rdi + 0x40], 0x31
jne 0x18000473e
shl rsi, 7
cmp qword [rbp + rsi + 0xde0], r15
jne 0x180004728
cmp qword [rbp + rsi + 0xde8], r14
jne 0x180004728
mov r14, qword [rbp + rsi + 0xe00]
lea rcx, [rsp + 0x60]
mov rdi, qword [rbp + rsi + 0xe08]
xor edx, edx
sub rdi, r14
mov r8d, 0x200
inc rdi
call fcn.1800115d0
mov rdx, r14
xor r9d, r9d
shl rdx, 9
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, 0x200
lea rdx, [rsp + 0x60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800046df
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800045a4
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x44], 0x4e9052eb
mov word [rsp + 0x48], 0x4654
cmp eax, dword [rsp + 0x44]
jne 0x180004721
movzx eax, word [rsp + 0x64]
cmp ax, word [rsp + 0x48]
jne 0x180004721
cmp byte [rsp + 0x66], 0x53
jne 0x180004721
lea rcx, str.SSD_User_Data_Partition_is_already_NTFS__n
call fcn.180003280
mov eax, 0xb7
jmp 0x1800045a4
mov eax, 1
jmp 0x180004745
lea rcx, str.SSD_User_Data_Partition_is_not_found__n
call fcn.180003280
mov eax, 0x574
jmp 0x1800045a4
xor eax, eax
xor edi, edi
xor r14d, r14d
mov rcx, qword [rsp + 0x30]
mov qword [rcx], r14
mov rcx, qword [rsp + 0x38]
mov qword [rcx], rdi
mov dword [r13], eax
xor eax, eax
jmp 0x1800045a4