Function at 0x1800194a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4d8
mov rax, qword [0x1800830b0]
xor rax, rsp
mov qword [rsp + 0x4c8], rax
call fcn.18002cca0
mov qword [rsp + 0x4b8], rax
cmp qword [rsp + 0x500], 0
je 0x1800194f4
mov rax, qword [rsp + 0x500]
mov qword [rax], 0
cmp qword [rsp + 0x4f8], 0
jne 0x180019506
xor eax, eax
jmp 0x180019d07
mov qword [rsp + 0x4a8], 0
mov rax, qword [rsp + 0x4f8]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x58], 0
jmp 0x180019533
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x4f0]
mov rcx, qword [rcx + 0x38]
inc rcx
cmp rax, rcx
jae 0x18001970b
mov rax, qword [rsp + 0x4e8]
cmp dword [rax + 0x108], 0xc
jne 0x180019571
cmp qword [rsp + 0x70], 0xff8
jb 0x180019571
jmp 0x18001970b
mov rax, qword [rsp + 0x4e8]
cmp dword [rax + 0x108], 0x10
jne 0x180019592
cmp qword [rsp + 0x70], 0xfff8
jb 0x180019592
jmp 0x18001970b
mov rax, qword [rsp + 0x4e8]
cmp dword [rax + 0x108], 0x20
jne 0x1800195b3
cmp qword [rsp + 0x70], 0xffffff8
jb 0x1800195b3
jmp 0x18001970b
cmp qword [rsp + 0x70], 2
jae 0x1800195c2
xor eax, eax
jmp 0x180019d07
mov rax, qword [rsp + 0x4f0]
mov rax, qword [rax + 0x38]
inc rax
cmp qword [rsp + 0x70], rax
jbe 0x1800195df
xor eax, eax
jmp 0x180019d07
mov rax, qword [rsp + 0x4f0]
mov rcx, qword [rsp + 0x4f0]
mov rax, qword [rax + 8]
imul rax, qword [rcx]
mov rcx, qword [rsp + 0x4a8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x4a8], rax
mov rax, qword [rsp + 0x4e8]
mov eax, dword [rax + 0x108]
mov dword [rsp + 0x4c0], eax
cmp dword [rsp + 0x4c0], 0xc
je 0x18001964d
cmp dword [rsp + 0x4c0], 0x10
je 0x1800196ca
cmp dword [rsp + 0x4c0], 0x20
je 0x1800196e6
jmp 0x180019706
mov rax, qword [rsp + 0x70]
and rax, 1
cmp rax, 1
jne 0x180019692
xor edx, edx
mov rax, qword [rsp + 0x70]
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x4f0]
mov rcx, qword [rcx + 0x40]
movzx eax, word [rcx + rax]
sar eax, 4
cdqe
mov qword [rsp + 0x70], rax
jmp 0x1800196c8
xor edx, edx
mov rax, qword [rsp + 0x70]
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x4f0]
mov rcx, qword [rcx + 0x40]
movzx eax, word [rcx + rax]
and eax, 0xfff
cdqe
mov qword [rsp + 0x70], rax
jmp 0x180019706
mov rax, qword [rsp + 0x4f0]
mov rax, qword [rax + 0x40]
mov rcx, qword [rsp + 0x70]
movzx eax, word [rax + rcx*2]
mov qword [rsp + 0x70], rax
jmp 0x180019706
mov rax, qword [rsp + 0x4f0]
mov rax, qword [rax + 0x40]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rax + rcx*4]
and eax, 0xfffffff
mov eax, eax
mov qword [rsp + 0x70], rax
jmp 0x180019529
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x4f0]
mov rcx, qword [rcx + 0x38]
inc rcx
cmp rax, rcx
jb 0x180019747
lea r9, str.Infinite_loop_in_FAT_detected__perhaps_the_disk_is_corrupted.
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x4b8]
call fcn.18002bd00
xor eax, eax
jmp 0x180019d07
mov eax, 0xffffffff
cmp qword [rsp + 0x4a8], rax
jbe 0x180019786
mov rax, qword [rsp + 0x4a8]
mov qword [rsp + 0x20], rax
lea r9, str.Directory_is_too_big___I64u_bytes
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x4b8]
call fcn.18002bd00
xor eax, eax
jmp 0x180019d07
mov rcx, qword [rsp + 0x4a8]
call fcn.180004750
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x1800197c9
lea r9, [0x18003bdf8]
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x4b8]
call fcn.18002bd00
xor eax, eax
jmp 0x180019d07
mov qword [rsp + 0x4b0], 0
mov rax, qword [rsp + 0x4f8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x4a0], 0
mov dword [rsp + 0x58], 0
jmp 0x18001980c
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x4f0]
mov rcx, qword [rcx + 0x38]
inc rcx
cmp rax, rcx
jae 0x180019b6f
mov rax, qword [rsp + 0x4e8]
cmp dword [rax + 0x108], 0xc
jne 0x18001984a
cmp qword [rsp + 0x70], 0xff8
jb 0x18001984a
jmp 0x180019b6f
mov rax, qword [rsp + 0x4e8]
cmp dword [rax + 0x108], 0x10
jne 0x18001986b
cmp qword [rsp + 0x70], 0xfff8
jb 0x18001986b
jmp 0x180019b6f
mov rax, qword [rsp + 0x4e8]
cmp dword [rax + 0x108], 0x20
jne 0x18001988c
cmp qword [rsp + 0x70], 0xffffff8
jb 0x18001988c
jmp 0x180019b6f
cmp qword [rsp + 0x70], 2
jae 0x180019899
jmp 0x180019b6f
mov rax, qword [rsp + 0x4f0]
mov rax, qword [rax + 0x38]
inc rax
cmp qword [rsp + 0x70], rax
jbe 0x1800198b4
jmp 0x180019b6f
mov rax, qword [rsp + 0x4a0]
inc rax
cmp qword [rsp + 0x70], rax
je 0x180019a64
cmp qword [rsp + 0x4a0], 0
je 0x180019a64
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x4a0]
sub rcx, rax
mov rax, rcx
inc rax
mov rcx, qword [rsp + 0x4f0]
imul rax, qword [rcx + 8]
mov rcx, qword [rsp + 0x4f0]
imul rax, qword [rcx]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x60]
sub rax, 2
mov rcx, qword [rsp + 0x4f0]
imul rax, qword [rcx + 8]
mov rcx, qword [rsp + 0x4f0]
mov rcx, qword [rcx + 0x20]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x4f0]
imul rax, qword [rcx]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x18003be80]
xor r8d, r8d
mov edx, 6
mov rcx, qword [rsp + 0x4b8]
call fcn.18002bd00
mov rax, qword [rsp + 0x4b0]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x80]
mov r8d, dword [rsp + 0x50]
mov rdx, rax
mov rax, qword [rsp + 0x4e8]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x180019a3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x200
lea r8, [rsp + 0xa0]
mov edx, eax
mov rax, qword [rsp + 0x4e0]
mov rcx, qword [rax]
call sym.JkDefrag.dll_public:_void___cdecl_JKDefragLib::SystemErrorStr_unsigned_long_int__wchar_t____ptr64__unsigned_long_long_unsigned___int64_____ptr64
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [0x18003b3f8]
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x4b8]
call fcn.18002bd00
mov rcx, qword [rsp + 0x88]
call fcn.180004b4c
xor eax, eax
jmp 0x180019d07
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x4b0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x4b0], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x4a0], rax
mov rax, qword [rsp + 0x4e8]
mov eax, dword [rax + 0x108]
mov dword [rsp + 0x4c4], eax
cmp dword [rsp + 0x4c4], 0xc
je 0x180019ab1
cmp dword [rsp + 0x4c4], 0x10
je 0x180019b2e
cmp dword [rsp + 0x4c4], 0x20
je 0x180019b4a
jmp 0x180019b6a
mov rax, qword [rsp + 0x70]
and rax, 1
cmp rax, 1
jne 0x180019af6
xor edx, edx
mov rax, qword [rsp + 0x70]
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x4f0]
mov rcx, qword [rcx + 0x40]
movzx eax, word [rcx + rax]
sar eax, 4
cdqe
mov qword [rsp + 0x70], rax
jmp 0x180019b2c
xor edx, edx
mov rax, qword [rsp + 0x70]
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x4f0]
mov rcx, qword [rcx + 0x40]
movzx eax, word [rcx + rax]
and eax, 0xfff
cdqe
mov qword [rsp + 0x70], rax
jmp 0x180019b6a
mov rax, qword [rsp + 0x4f0]
mov rax, qword [rax + 0x40]
mov rcx, qword [rsp + 0x70]
movzx eax, word [rax + rcx*2]
mov qword [rsp + 0x70], rax
jmp 0x180019b6a
mov rax, qword [rsp + 0x4f0]
mov rax, qword [rax + 0x40]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rax + rcx*4]
and eax, 0xfffffff
mov eax, eax
mov qword [rsp + 0x70], rax
jmp 0x180019802
cmp qword [rsp + 0x4a0], 0
je 0x180019ce1
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x4a0]
sub rcx, rax
mov rax, rcx
inc rax
mov rcx, qword [rsp + 0x4f0]
imul rax, qword [rcx + 8]
mov rcx, qword [rsp + 0x4f0]
imul rax, qword [rcx]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x60]
sub rax, 2
mov rcx, qword [rsp + 0x4f0]
imul rax, qword [rcx + 8]
mov rcx, qword [rsp + 0x4f0]
mov rcx, qword [rcx + 0x20]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x4f0]
imul rax, qword [rcx]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, str.Reading_directory_fragment___I64u_bytes_at_offset_I64u.
xor r8d, r8d
mov edx, 6
mov rcx, qword [rsp + 0x4b8]
call fcn.18002bd00
mov rax, qword [rsp + 0x4b0]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x80]
mov r8d, dword [rsp + 0x50]
mov rdx, rax
mov rax, qword [rsp + 0x4e8]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x180019ce1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x200
lea r8, [rsp + 0xa0]
mov edx, eax
mov rax, qword [rsp + 0x4e0]
mov rcx, qword [rax]
call sym.JkDefrag.dll_public:_void___cdecl_JKDefragLib::SystemErrorStr_unsigned_long_int__wchar_t____ptr64__unsigned_long_long_unsigned___int64_____ptr64
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [0x18003b698]
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x4b8]
call fcn.18002bd00
mov rcx, qword [rsp + 0x88]
call fcn.180004b4c
xor eax, eax
jmp 0x180019d07
cmp qword [rsp + 0x500], 0
je 0x180019cff
mov rax, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x4a8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x4c8]
xor rcx, rsp
call fcn.1800033c0
add rsp, 0x4d8
ret