Function at 0x180015800
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, 0x508
mov rax, qword [0x1800830b0]
xor rax, rsp
mov qword [rsp + 0x4f8], rax
call fcn.18002cca0
mov qword [rsp + 0x4e0], rax
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x540]
mov qword [rsp + 0x20], rax
lea r9, str.____Reading__I64u_bytes_from_offset__I64u
xor r8d, r8d
mov edx, 6
mov rcx, qword [rsp + 0x4e0]
call fcn.18002bd00
cmp qword [rsp + 0x528], 0
je 0x180015885
cmp dword [rsp + 0x530], 0
jne 0x18001588c
xor eax, eax
jmp 0x180015ef4
cmp qword [rsp + 0x540], 0x7fffffff
jb 0x1800158d2
mov dword [rsp + 0x28], 0x7fffffff
mov rax, qword [rsp + 0x540]
mov qword [rsp + 0x20], rax
lea r9, str.____Cannot_read__I64u_bytes__maximum_is__lu.
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x4e0]
call fcn.18002bd00
xor eax, eax
jmp 0x180015ef4
xor edx, edx
mov rax, qword [rsp + 0x540]
mov rcx, qword [rsp + 0x520]
div qword [rcx]
mov rax, rdx
test rax, rax
jbe 0x18001593e
mov rax, qword [rsp + 0x520]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x540]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x4e8], rax
xor edx, edx
mov rax, qword [rsp + 0x540]
mov rcx, qword [rsp + 0x520]
div qword [rcx]
mov rax, rdx
mov rcx, qword [rsp + 0x4e8]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x540], rax
mov rcx, qword [rsp + 0x540]
call fcn.180004750
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
jne 0x180015981
lea r9, [0x180039c48]
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x4e0]
call fcn.18002bd00
xor eax, eax
jmp 0x180015ef4
mov r8, qword [rsp + 0x540]
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call fcn.1800038a0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xb0], 0
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x528]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x180015eec
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x528]
movzx eax, byte [rcx + rax]
and eax, 0xf
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x528]
movzx eax, byte [rcx + rax]
and eax, 0xf0
sar eax, 4
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x530]
cmp dword [rsp + 0x60], eax
jb 0x180015a40
lea r9, [0x180039fd0]
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x4e0]
call fcn.18002bd00
xor eax, eax
jmp 0x180015ef4
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0x64], 0
jmp 0x180015a60
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x64], eax
jge 0x180015ac5
mov eax, dword [rsp + 0x60]
movsxd rcx, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x528]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 0xa8], al
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x530]
cmp dword [rsp + 0x60], eax
jb 0x180015ac3
lea r9, [0x18003a050]
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x4e0]
call fcn.18002bd00
xor eax, eax
jmp 0x180015ef4
jmp 0x180015a56
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x64], 0
jmp 0x180015ae2
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x64], eax
jge 0x180015b41
mov eax, dword [rsp + 0x60]
movsxd rcx, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x528]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 0x70], al
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x530]
cmp dword [rsp + 0x60], eax
jb 0x180015b3f
lea r9, [0x18003a0d0]
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x4e0]
call fcn.18002bd00
xor eax, eax
jmp 0x180015ef4
jmp 0x180015ad8
mov eax, dword [rsp + 0x64]
dec eax
cdqe
movzx eax, byte [rsp + rax + 0x70]
cmp eax, 0x80
jl 0x180015b72
cmp dword [rsp + 0x64], 8
jge 0x180015b72
movsxd rax, dword [rsp + 0x64]
mov byte [rsp + rax + 0x70], 0xff
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
jmp 0x180015b55
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0x70], 0
jne 0x180015bb8
jmp 0x1800159b8
cmp qword [rsp + 0xa8], 0
jne 0x180015bc8
jmp 0x1800159b8
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x520]
imul rax, qword [rcx]
mov rcx, qword [rsp + 0x520]
imul rax, qword [rcx + 8]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x520]
mov rcx, qword [rsp + 0x98]
imul rcx, qword [rax]
mov rax, rcx
mov rcx, qword [rsp + 0x520]
imul rax, qword [rcx + 8]
mov qword [rsp + 0x4d0], rax
mov rax, qword [rsp + 0x520]
mov rcx, qword [rsp + 0xa8]
imul rcx, qword [rax]
mov rax, rcx
mov rcx, qword [rsp + 0x520]
imul rax, qword [rcx + 8]
mov qword [rsp + 0x4d8], rax
mov rax, qword [rsp + 0x4d8]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x538], rax
jb 0x180015c7c
jmp 0x1800159b8
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x538], rax
jbe 0x180015cf0
mov rax, qword [rsp + 0x538]
mov rcx, qword [rsp + 0x4d0]
add rcx, rax
mov rax, rcx
sub rax, qword [rsp + 0x80]
mov qword [rsp + 0x4d0], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x538]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x4d8]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x4d8], rax
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x540]
mov rcx, qword [rsp + 0x538]
add rcx, rax
mov rax, rcx
cmp rax, qword [rsp + 0x80]
ja 0x180015d15
jmp 0x1800159b8
mov rax, qword [rsp + 0x540]
mov rcx, qword [rsp + 0x538]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x4d8]
mov rdx, qword [rsp + 0x80]
add rdx, rcx
mov rcx, rdx
cmp rax, rcx
jae 0x180015d6c
mov rax, qword [rsp + 0x540]
mov rcx, qword [rsp + 0x538]
add rcx, rax
mov rax, rcx
sub rax, qword [rsp + 0x80]
mov qword [rsp + 0x4d8], rax
cmp qword [rsp + 0x4d8], 0
jne 0x180015d7c
jmp 0x1800159b8
mov rax, qword [rsp + 0x538]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x4f0], rax
mov rcx, qword [rsp + 0x520]
mov rdx, qword [rsp + 0x520]
mov rcx, qword [rcx]
imul rcx, qword [rdx + 8]
xor edx, edx
mov rax, qword [rsp + 0x4d0]
div rcx
mov rcx, qword [rsp + 0x4f0]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x4d8]
mov qword [rsp + 0x20], rax
lea r9, str.____Reading__I64u_bytes_from_Lcn_I64u_into_offset_I64u
xor r8d, r8d
mov edx, 6
mov rcx, qword [rsp + 0x4e0]
call fcn.18002bd00
mov rax, qword [rsp + 0x4d0]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x54], eax
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x538]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0xa0]
mov r8d, dword [rsp + 0x4d8]
mov rdx, rax
mov rax, qword [rsp + 0x518]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x180015ee7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x200
lea r8, [rsp + 0xd0]
mov edx, eax
mov rax, qword [rsp + 0x510]
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 + 0xd0]
mov qword [rsp + 0x20], rax
lea r9, str.Error_while_reading_disk:__s
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x4e0]
call fcn.18002bd00
mov rcx, qword [rsp + 0xb8]
call fcn.180004b4c
xor eax, eax
jmp 0x180015ef4
jmp 0x1800159b8
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x4f8]
xor rcx, rsp
call fcn.1800033c0
add rsp, 0x508
ret