Function at 0x14018d530
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0xd8
mov r8, qword [rsp + 0xe8]
mov edx, dword [rsp + 0xe0]
lea rcx, [rsp + 0x68]
call fcn.14018cef0
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x14018d56e
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x14018d5ac
mov rcx, qword [rsp + 0xf0]
call fcn.1401023f0
mov qword [rsp + 0x88], rax
mov edx, SafeArrayGetElement
mov rcx, qword [rsp + 0x88]
call fcn.14015af00
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x68]
call fcn.14018cf70
mov eax, dword [rsp + 0x40]
jmp 0x14018d896
cmp qword [rsp + 0x78], 0
jle 0x14018d78b
mov dword [rsp + 0x20], 0x53
lea r9, str.minkernelcrtsucrt_src_appcrtlowiochsize.cpp
mov r8d, 2
mov edx, 1
mov ecx, 0x1000
call fcn.14014ab20
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400c6b50
lea rcx, [rsp + 0x38]
call fcn.1400c6bd0
movzx eax, al
test eax, eax
jne 0x14018d642
mov rcx, qword [rsp + 0xf0]
call fcn.1401023f0
mov qword [rsp + 0x90], rax
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, qword [rsp + 0x90]
call fcn.140106e50
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x38]
call fcn.1400c6b90
lea rcx, [rsp + 0x68]
call fcn.14018cf70
mov eax, dword [rsp + 0x44]
jmp 0x14018d896
mov edx, 0x8000
mov ecx, dword [rsp + 0xe0]
call fcn.14014ce50
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0x78], 0x1000
jl 0x14018d66c
mov dword [rsp + 0x30], 0x1000
jmp 0x14018d674
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x38]
call fcn.1400c6cc0
mov r9, qword [rsp + 0xf0]
mov r8d, dword [rsp + 0x48]
mov rdx, rax
mov ecx, dword [rsp + 0xe0]
call fcn.14016a040
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
jne 0x14018d74b
mov rcx, qword [rsp + 0xf0]
call fcn.1401232a0
mov qword [rsp + 0x98], rax
mov edx, 5
mov rcx, qword [rsp + 0x98]
call fcn.14018d460
movzx eax, al
test eax, eax
je 0x14018d706
mov rcx, qword [rsp + 0xf0]
call fcn.1401023f0
mov qword [rsp + 0xa0], rax
mov edx, SafeArrayDestroy
mov rcx, qword [rsp + 0xa0]
call fcn.140106e50
mov rcx, qword [rsp + 0xf0]
call fcn.1401023f0
mov qword [rsp + 0xa8], rax
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call fcn.14015af00
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.1400c6b90
lea rcx, [rsp + 0x68]
call fcn.14018cf70
mov eax, dword [rsp + 0x4c]
jmp 0x14018d896
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jg 0x14018d657
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0xe0]
call fcn.14014ce50
lea rcx, [rsp + 0x38]
call fcn.1400c6b90
jmp 0x14018d880
cmp qword [rsp + 0x78], 0
jge 0x14018d880
xor r8d, r8d
mov rdx, qword [rsp + 0xe8]
mov ecx, dword [rsp + 0xe0]
call fcn.140168390
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0xffffffffffffffff
jne 0x14018d7fc
mov rcx, qword [rsp + 0xf0]
call fcn.1401023f0
mov qword [rsp + 0xb8], rax
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call fcn.14015af00
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x68]
call fcn.14018cf70
mov eax, dword [rsp + 0x54]
jmp 0x14018d896
mov ecx, dword [rsp + 0xe0]
call fcn.140177500
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14018d880
mov rcx, qword [rsp + 0xf0]
call fcn.1401232a0
mov qword [rsp + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xc0]
call fcn.1401232b0
mov rcx, qword [rsp + 0xf0]
call fcn.1401023f0
mov qword [rsp + 0xc8], rax
mov edx, SafeArrayDestroy
mov rcx, qword [rsp + 0xc8]
call fcn.140106e50
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x68]
call fcn.14018cf70
mov eax, dword [rsp + 0x5c]
jmp 0x14018d896
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x68]
call fcn.14018cf70
mov eax, dword [rsp + 0x60]
add rsp, 0xd8
ret