Function at 0x1401f697c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r11, rsp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x270
mov qword [r11 - 0x218], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, r8
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x78], rcx
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [r11 - 0x1b0], rsi
lea r15d, [rsi + 7]
mov qword [r11 - 0x1a8], r15
mov word [rsp + 0xd8], si
lea rdx, str.:Zone.Identifier:_DATA
lea rcx, [r11 - 0x1c0]
call fcn.14004d5c4
nop
mov rdx, rdi
lea rcx, [rsp + 0xf8]
call fcn.14004cf4c
nop
lea r8, [rsp + 0xd8]
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.1400a13a8
nop
lea rcx, [rsp + 0xf8]
call fcn.14004e0f0
nop
lea rcx, [rsp + 0xd8]
call fcn.14004e0f0
mov byte [rsp + 0x20], sil
lea r9, [rsp + 0x40]
mov r8d, r15d
mov edi, 0x80000000
mov edx, edi
lea rcx, [rsp + 0xb8]
call fcn.1401f662c
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x1401f6bc4
cmp eax, 0x80070005
je 0x1401f6a72
cmp eax, 0xd0000022
jne 0x1401f6abe
cmp qword [rbx], rsi
je 0x1401f6abe
call fcn.140207ba4
mov r8, qword [rbx]
mov r8, qword [r8 + 0x58]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140207f10
mov byte [rsp + 0x20], sil
lea r9, [rsp + 0x40]
mov r8d, r15d
mov edx, edi
lea rcx, [rsp + 0xb8]
call fcn.1401f662c
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x70]
call fcn.140207b70
mov eax, dword [rsp + 0x34]
test eax, eax
jns 0x1401f6bc4
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401f6b8d
lea rax, str.Failed_to_open_file._Cant_retrieve_the_MarkOfWebInformation
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x148], 0x7a
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae rdx, qword [rsp + 0xb8]
lea rcx, [0x140344690]
mov rax, rsi
test rdx, rdx
je 0x1401f6b2d
mov rcx, rdx
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], si
jne 0x1401f6b24
mov qword [rsp + 0x150], rcx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x158], eax
mov dword [rsp + 0x15c], esi
lea rax, [rsp + 0x34]
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], 4
lea rax, [rsp + 0x120]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403e01c6]
mov rcx, r10
call fcn.140001158
mov qword [r14], rsi
mov qword [r14 + 8], rsi
lea rcx, [rsp + 0xb8]
call fcn.14004e0f0
nop
mov rcx, qword [rsp + 0x40]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
setbe dl
test dl, dl
je 0x1401f6bbc
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rax, r14
jmp 0x1401f7165
xor edx, edx
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r13d, eax
lea ecx, [rax - 1]
cmp ecx, 0xfffffffd
ja 0x1401f7038
mov edi, eax
cmp dword [0x14049e884], eax
cmovb edi, dword [0x14049e884]
mov dword [rsp + 0x38], esi
mov byte [rsp + 0x30], sil
lea edx, [rdi + 1]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.1400817d8
nop
xor edx, edx
lea r8d, [rdx + 0x20]
lea rcx, [rsp + 0x98]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov r8d, edi
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r15d, eax
test eax, eax
je 0x1401f6db3
cmp eax, 0x3e5
je 0x1401f6db3
call fcn.14004d8a4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401f6d2c
lea rcx, str.Failed_to_read_from_MoW_stream._Cant_retrieve_the_MarkOfWebInformation
mov qword [rsp + 0x190], rcx
mov qword [rsp + 0x198], DllRegisterServer
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae rdx, qword [rsp + 0xb8]
lea rcx, [0x140344690]
mov rax, rsi
test rdx, rdx
je 0x1401f6cc7
mov rcx, rdx
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], si
jne 0x1401f6cbe
mov qword [rsp + 0x1a0], rcx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x1a8], eax
mov dword [rsp + 0x1ac], esi
mov dword [rsp + 0x60], r15d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x1b0], rax
mov qword [rsp + 0x1b8], 4
lea rax, [rsp + 0x170]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403dff72]
mov rcx, r10
call fcn.140001158
mov qword [r14], rsi
mov qword [r14 + 8], rsi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401f6d85
mov rax, qword [rsp + 0x58]
sub rax, rcx
mov rdx, rcx
cmp rax, 0x1000
jb 0x1401f6d72
test dl, 0x1f
jne 0x1401f6d6b
mov rcx, qword [rcx - 8]
cmp rcx, rdx
jae 0x1401f6d6b
sub rdx, rcx
sub rdx, 8
cmp rdx, 0x1f
jbe 0x1401f6d72
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402e0278
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0xb8]
call fcn.14004e0f0
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
setbe al
test al, al
je 0x1401f6dab
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rax, r14
jmp 0x1401f7165
call fcn.1401fac88
mov r9d, dword [rax + 0x10]
mov dword [rsp + 0x20], esi
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x98]
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetOverlappedResultEx]
test eax, eax
jne 0x1401f6f3a
call fcn.14004d8a4
mov rdi, qword [rax + 8]
cmp dword [rdi], 4
jbe 0x1401f6eb3
lea rcx, str.Failed_to_read_from_MoW_stream._Cant_retrieve_the_MarkOfWebInformation
mov qword [rsp + 0x1e0], rcx
mov qword [rsp + 0x1e8], DllRegisterServer
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae rdx, qword [rsp + 0xb8]
lea rcx, [0x140344690]
mov rax, rsi
test rdx, rdx
je 0x1401f6e49
mov rcx, rdx
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], si
jne 0x1401f6e40
mov qword [rsp + 0x1f0], rcx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x1f8], eax
mov dword [rsp + 0x1fc], esi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x64], eax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x200], rax
mov qword [rsp + 0x208], 4
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403dff72]
mov rcx, rdi
call fcn.140001158
mov qword [r14], rsi
mov qword [r14 + 8], rsi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401f6f0c
mov rax, qword [rsp + 0x58]
sub rax, rcx
mov rdx, rcx
cmp rax, 0x1000
jb 0x1401f6ef9
test dl, 0x1f
jne 0x1401f6ef2
mov rcx, qword [rcx - 8]
cmp rcx, rdx
jae 0x1401f6ef2
sub rdx, rcx
sub rdx, 8
cmp rdx, 0x1f
jbe 0x1401f6ef9
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402e0278
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0xb8]
call fcn.14004e0f0
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
setbe al
test al, al
je 0x1401f6f32
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rax, r14
jmp 0x1401f7165
cmp dword [rsp + 0x38], edi
je 0x1401f6f45
call fcn.1402b9bb8
mov ecx, 0x38
call fcn.1402e0358
mov r15, rax
mov eax, 1
mov dword [r15 + 8], eax
mov dword [r15 + 0xc], eax
lea rax, vtable.std::_Ref_count_obj_struct_sense::cyberData::MowInformation_.0
mov qword [r15], rax
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [r15 + 0x10]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [r15 + 0x10], esi
mov qword [r15 + 0x28], rsi
mov qword [r15 + 0x30], SafeArrayUnlock
mov byte [r15 + 0x18], sil
lea rdi, [r15 + 0x10]
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x90], r15
mov dword [rdi], r13d
lea rcx, [rdi + 8]
mov rdx, qword [rsp + 0x48]
call fcn.140066bc4
mov qword [r14], rdi
mov qword [r14 + 8], r15
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401f700a
mov rax, qword [rsp + 0x58]
sub rax, rcx
mov rdx, rcx
cmp rax, 0x1000
jb 0x1401f6ff7
test dl, 0x1f
jne 0x1401f6ff0
mov rcx, qword [rcx - 8]
cmp rcx, rdx
jae 0x1401f6ff0
sub rdx, rcx
sub rdx, 8
cmp rdx, 0x1f
jbe 0x1401f6ff7
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402e0278
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0xb8]
call fcn.14004e0f0
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
setbe al
test al, al
je 0x1401f7030
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rax, r14
jmp 0x1401f7165
call fcn.14004d8a4
mov rdi, qword [rax + 8]
cmp dword [rdi], 4
jbe 0x1401f7108
lea rax, str.Failed_to_retrieve_the_MarOfWeb_stream_size.
mov qword [rsp + 0x230], rax
mov qword [rsp + 0x238], 0x5a
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae rdx, qword [rsp + 0xb8]
lea rcx, [0x140344690]
mov rax, rsi
test rdx, rdx
je 0x1401f709e
mov rcx, rdx
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], si
jne 0x1401f7095
mov qword [rsp + 0x240], rcx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x248], eax
mov dword [rsp + 0x24c], esi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x258], 4
lea rax, [rsp + 0x210]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403dff72]
mov rcx, rdi
call fcn.140001158
mov qword [r14], rsi
mov qword [r14 + 8], rsi
lea rcx, [rsp + 0xb8]
call fcn.14004e0f0
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
setbe al
test al, al
je 0x1401f7135
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rax, r14
jmp 0x1401f7165
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1402dfdb0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x270
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret