Function at 0x14022c2ac
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x230
mov qword [rax - 0x1a8], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x68], rcx
lea rcx, [rsp + 0x70]
call fcn.140239154
nop
xor edi, edi
mov qword [rsp + 0xf8], rdi
lea r15d, [rdi + 7]
mov qword [rsp + 0x100], r15
mov word [rsp + 0xe8], di
lea rdx, str.:Zone.Identifier:_DATA
lea rcx, [rsp + 0xe8]
call fcn.140055574
nop
mov rdx, r14
lea rcx, [rsp + 0x108]
call fcn.14005da24
nop
lea r8, [rsp + 0xe8]
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.1400b1768
nop
lea rcx, [rsp + 0x108]
call fcn.140055f70
nop
lea rcx, [rsp + 0xe8]
call fcn.140055f70
mov byte [rsp + 0x28], dil
lea r9, [rsp + 0x70]
mov r8d, r15d
mov r14d, 0x80000000
mov edx, r14d
lea rcx, [rsp + 0xc8]
call fcn.14022bc24
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x14022c4f0
cmp eax, 0x80070005
je 0x14022c3ad
cmp eax, 0xd0000022
jne 0x14022c3fa
cmp qword [rbx], rdi
je 0x14022c3fa
call fcn.1402422fc
mov r8, qword [rbx]
mov r8, qword [r8 + 0x58]
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.1402426f4
mov byte [rsp + 0x28], dil
lea r9, [rsp + 0x70]
mov r8d, r15d
mov edx, r14d
lea rcx, [rsp + 0xc8]
call fcn.14022bc24
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x60]
call fcn.1402422bc
mov eax, dword [rsp + 0x34]
test eax, eax
jns 0x14022c4f0
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x14022c4c9
lea rax, str.Failed_to_open_file._Cant_retrieve_the_MarkOfWebInformation
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x158], 0x7a
lea rcx, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae rcx, qword [rsp + 0xc8]
lea rax, [0x1403cb630]
mov rbx, rdi
test rcx, rcx
je 0x14022c469
mov rax, rcx
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rcx + rbx*2], di
jne 0x14022c460
mov qword [rsp + 0x160], rax
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x168], eax
mov dword [rsp + 0x16c], edi
lea rax, [rsp + 0x34]
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x178], 4
lea rax, [rsp + 0x130]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14048474e]
mov rcx, r10
call fcn.140001208
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
lea rcx, [rsp + 0xc8]
call fcn.140055f70
nop
lea rcx, [rsp + 0x70]
call fcn.140239264
mov rax, rsi
jmp 0x14022c95e
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
nop dword [rax + rax]
mov al, byte [rsp + 0x88]
test al, al
je 0x14022c54c
mov rax, qword [rsp + 0x98]
mov ecx, 1
lock xadd qword [rax + 0x38], rcx
mov ecx, 0x323
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
jmp 0x14022c848
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov r14d, eax
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
lea ecx, [r14 - 1]
cmp ecx, 0xfffffffd
ja 0x14022c848
mov edx, r14d
cmp dword [0x140542444], r14d
cmovb edx, dword [0x140542444]
mov ebx, edx
mov qword [rsp + 0x58], rdi
mov byte [rsp + 0x30], dil
inc rdx
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14008dbf8
nop
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ebx
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.1402392f0
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x14022c71f
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x14022c6a5
lea rax, str.Failed_to_read_from_MoW_stream._Cant_retrieve_the_MarkOfWebInformation
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x1a8], SysAllocStringByteLen
lea rcx, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae rcx, qword [rsp + 0xc8]
lea rax, [0x1403cb630]
mov rbx, rdi
test rcx, rcx
je 0x14022c645
mov rax, rcx
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rcx + rbx*2], di
jne 0x14022c63c
mov qword [rsp + 0x1b0], rax
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x1b8], eax
mov dword [rsp + 0x1bc], edi
lea rax, [rsp + 0x34]
mov qword [rsp + 0x1c0], rax
mov qword [rsp + 0x1c8], 4
lea rax, [rsp + 0x180]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1404846d1]
mov rcx, r10
call fcn.140001208
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14022c6ff
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14022c6ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14022c6ec
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop dword [rax + rax]
int3
call fcn.140356b5c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0xc8]
call fcn.140055f70
nop
lea rcx, [rsp + 0x70]
call fcn.140239264
mov rax, rsi
jmp 0x14022c95e
cmp qword [rsp + 0x58], rbx
je 0x14022c72b
call fcn.140329e68
mov ecx, 0x38
call fcn.140356b9c
mov r15, rax
mov ecx, 1
mov dword [rax + 8], ecx
mov dword [rax + 0xc], ecx
lea rax, vtable.std::_Ref_count_obj_struct_sense::cyberData::MowInformation_.0
mov qword [r15], rax
xor edx, edx
lea r8d, [rcx + 0x27]
lea rcx, [r15 + 0x10]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [r15 + 0x28], rdi
mov qword [r15 + 0x30], SafeArrayLock
mov byte [r15 + 0x18], dil
lea r12, [r15 + 0x10]
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0xc0], r15
mov dword [r12], r14d
mov r9, qword [rsp + 0x40]
lea rcx, [r12 + 8]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [r9 + rbx], dil
jne 0x14022c792
cmp rbx, qword [rcx + 0x18]
ja 0x14022c7c6
mov r14, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x14022c7ae
mov r14, qword [rcx]
mov qword [rcx + 0x10], rbx
mov r8, rbx
mov rdx, r9
mov rcx, r14
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov byte [r14 + rbx], dil
jmp 0x14022c7ce
mov rdx, rbx
call fcn.140072704
mov qword [rsi], r12
mov qword [rsi + 8], r15
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14022c828
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14022c815
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14022c815
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop dword [rax + rax]
int3
call fcn.140356b5c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0xc8]
call fcn.140055f70
nop
lea rcx, [rsp + 0x70]
call fcn.140239264
mov rax, rsi
jmp 0x14022c95e
call fcn.1400550c0
mov r14, qword [rax + 8]
cmp dword [r14], 4
jbe 0x14022c91f
lea rax, str.Failed_to_retrieve_the_MarOfWeb_stream_size.
mov qword [rsp + 0x1f0], rax
mov qword [rsp + 0x1f8], 0x5a
lea rcx, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae rcx, qword [rsp + 0xc8]
lea rax, [0x1403cb630]
mov rbx, rdi
test rcx, rcx
je 0x14022c8af
mov rax, rcx
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rcx + rbx*2], di
jne 0x14022c8a6
mov qword [rsp + 0x200], rax
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x208], eax
mov dword [rsp + 0x20c], edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x210], rax
mov qword [rsp + 0x218], 4
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140484983]
mov rcx, r14
call fcn.140001208
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
lea rcx, [rsp + 0xc8]
call fcn.140055f70
nop
lea rcx, [rsp + 0x70]
call fcn.140239264
mov rax, rsi
jmp 0x14022c95e
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140356560
mov rbx, qword [rsp + 0x278]
add rsp, 0x230
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret