Function at 0x140058510
Capabilities:
Delete file
Get common file path
Get session user name

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x107a0]
mov eax, 0x108a0
call fcn.1400e2af0
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x108d8], rbx
mov qword [rsp + 0x108e0], rsi
mov qword [rsp + 0x108e8], rdi
movaps xmmword [rsp + 0x10890], xmm6
mov rax, qword [0x14017c430]
xor rax, rsp
mov qword [rbp + 0x10780], rax
mov rbx, rcx
xor esi, esi
mov rdi, qword [0x1401835e0]
mov qword [rsp + 0x58], rdi
test rdi, rdi
jne 0x1400585ac
lea ecx, [rsi + 0x70]
call fcn.1400d5224
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14005859d
mov rcx, rax
call fcn.140038950
mov rdi, rax
jmp 0x1400585a0
mov rdi, rsi
mov qword [rsp + 0x58], rdi
mov qword [0x1401835e0], rdi
xor edx, edx
lea rcx, [rbp + 0x180]
call fcn.14009ee70
nop
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov word [rbp + 0x13e], si
mov qword [rbp + 0x130], rsi
movaps xmm0, xmmword [rbp + 0x130]
movdqa xmmword [rbp + 0x140], xmm0
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x140]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
movsd xmm6, qword [0x140132ba8]
movsd xmm1, qword [rsp + 0x60]
test eax, eax
je 0x140058626
movzx eax, word [rbp + 0x14e]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm6
addsd xmm1, xmm0
movsd qword [rsp + 0x60], xmm1
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140058d38
cmp rcx, 0xffffffffffffffff
je 0x140058d38
cmp byte [rcx + 0x2bc], 0
je 0x140058d38
cmp byte [rcx + 0xc1d], 0
je 0x140058d38
comisd xmm1, xmmword [rcx + 0xc00]
jb 0x140058d38
movsd xmm0, qword [rcx + 0xc08]
comisd xmm0, xmm1
jb 0x140058d38
lea rdx, [rbp + 0x180]
call fcn.140067100
test eax, eax
je 0x140058d38
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov word [rbp + 0x17e], si
movaps xmm0, xmmword [rbp + 0x170]
movdqa xmmword [rbp + 0x160], xmm0
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x160]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x140058703
movzx eax, word [rbp + 0x16e]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm6
movsd xmm6, qword [rsp + 0x48]
addsd xmm6, xmm0
movsd qword [rsp + 0x48], xmm6
jmp 0x140058709
movsd xmm6, qword [rsp + 0x48]
lea rdx, [rbp + 0x150]
movapd xmm0, xmm6
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x140058731
mov r8d, eax
lea rdx, [rbp + 0x150]
movapd xmm0, xmm6
call fcn.140016470
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov r8d, 0xa
lea rdx, [rbp + 0x570]
mov ecx, dword [rsp + 0x50]
call fcn.1400da6c8
xor eax, eax
or r12, 0xffffffffffffffff
mov rcx, r12
lea rdi, [rbp + 0x570]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x1400587d7
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14005885a
cmp dword [rdx + 0x10], eax
jge 0x1400587a9
cmp dword [rbx - 0xc], eax
jge 0x14005879e
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x14005885a
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400587c0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
jmp 0x14005885a
mov r14d, dword [rbx - 0x10]
lea r13, [rbp + 0x570]
sub r13, rbx
sar r13, 1
test ecx, ecx
jns 0x1400587f7
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140058819
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400020c0
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r13, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14005883d
lea r8, [rbx + r13*2]
call fcn.1400d4ebc
jmp 0x140058849
lea r8, [rbp + 0x570]
call fcn.1400d4e34
cmp edi, dword [rbx - 0xc]
jg 0x140058d2d
mov dword [rbx - 0x10], edi
mov word [r14 + rbx], si
mov r8d, 1
lea rdx, [0x14012ffcc]
lea rcx, [rsp + 0x30]
call fcn.14003bd50
mov r8d, 0xa
lea rdx, [rbp + 0x570]
mov ecx, dword [rsp + 0x54]
call fcn.1400da6c8
xor eax, eax
mov rcx, r12
lea rdi, [rbp + 0x570]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp + 0x570]
lea rcx, [rsp + 0x30]
call fcn.14003bd50
mov r8d, 1
lea rdx, [0x14012ffcc]
lea rcx, [rsp + 0x30]
call fcn.14003bd50
mov r8d, 3
lea rdx, [0x14012c120]
lea rcx, [rsp + 0x30]
call fcn.14003bd50
mov word [rbp + 0x360], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x362]
call fcn.1400dd9f0
lea rdx, [rbp + 0x360]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x200
jbe 0x140058918
test eax, eax
je 0x140058d00
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rcx, [rbp + 0x360]
lea rax, [rbp + 0x360]
test rax, 0xffffffffffff0000
jne 0x140058970
movzx edi, cx
mov ecx, edi
call fcn.140002830
test rax, rax
je 0x140058a6d
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400029f0
jmp 0x140058a6d
xor eax, eax
mov rcx, r12
lea rdi, [rbp + 0x360]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x1400589ea
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140058a6d
cmp dword [rdx + 0x10], eax
jge 0x1400589bc
cmp dword [rbx - 0xc], eax
jge 0x1400589b1
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x140058a6d
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400589d3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
jmp 0x140058a6d
mov r14d, dword [rbx - 0x10]
lea r13, [rbp + 0x360]
sub r13, rbx
sar r13, 1
test ecx, ecx
jns 0x140058a0a
mov ecx, 0x80070057
call fcn.1400022b0
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140058a2c
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.1400020c0
mov rbx, qword [rsp + 0x38]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r13, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x140058a50
lea r8, [rbx + r13*2]
call fcn.1400d4ebc
jmp 0x140058a5c
lea r8, [rbp + 0x360]
call fcn.1400d4e34
cmp edi, dword [rbx - 0xc]
jg 0x140058d22
mov dword [rbx - 0x10], edi
mov word [r14 + rbx], si
mov r8, qword [rsp + 0x30]
lea rdx, [0x14012f530]
lea rcx, [rsp + 0x38]
call fcn.140045040
mov r15, qword [rsp + 0x38]
lea rcx, [r15 - 0x18]
call fcn.140001d80
lea rdi, [rax + 0x18]
mov qword [rbp - 0x78], rdi
mov r8d, 2
mov rdx, rdi
lea rcx, [rbp + 0x180]
call fcn.14009fb70
nop
lea rdx, [rdi - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140058aca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
lea r8, [0x14012fdf0]
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400d9d30
test eax, eax
jne 0x140058cd8
xor edx, edx
lea r8d, [rax + 2]
mov rcx, qword [rsp + 0x40]
call fcn.1400d9ee4
mov rcx, qword [rsp + 0x40]
call fcn.1400da118
mov edi, eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.1400d9ee4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x140058cce
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, edi
mov r8d, 1
mov edx, edi
mov rcx, rax
call fcn.1400d8b5c
mov r13, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp r13d, edi
jne 0x140058cba
xor r8d, r8d
mov edx, edi
mov rcx, r14
call fcn.14009c130
lea rcx, [rbp - 0x70]
call fcn.140022590
nop
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], r13d
mov rdx, qword [rsp + 0x30]
lea rcx, [rdx - 0x18]
mov rdi, qword [rbp + 0xd8]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140058bfe
cmp dword [rdi + 0x10], 0
jl 0x140058bee
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140058bee
call fcn.140001d80
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140058bdc
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + VariantCopy]
lea rax, [rbx + 0x18]
mov qword [rbp + 0xd8], rax
mov rbx, qword [rsp + 0x38]
jmp 0x140058bfe
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0xd8]
call fcn.140002120
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x140058c1f
call fcn.1400d6134
mov qword [rbp + 0xc8], rsi
mov qword [rbp + 0xd0], rsi
jmp 0x140058c25
mov esi, dword [rbp + 0xd0]
test r13d, r13d
je 0x140058c62
mov edi, r13d
mov ecx, r13d
call fcn.1400d886c
mov qword [rbp + 0xc8], rax
test rax, rax
je 0x140058c52
mov dword [rbp + 0xd4], r13d
mov esi, r13d
mov dword [rbp + 0xd0], r13d
mov edx, esi
mov r9, rdi
mov r8, r14
mov rcx, rax
call fcn.1400d4e34
mov dword [rsp + 0x68], 0x7fff
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x780]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov rcx, r12
lea rdi, [rbp + 0x780]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp + 0x780]
lea rcx, [rbp + 8]
call fcn.140002120
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x58]
call fcn.140038c90
nop
lea rcx, [rbp - 0x70]
call fcn.140022640
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x40]
call fcn.1400d79b4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov eax, r12d
lock xadd dword [r15 - 8], eax
dec eax
test eax, eax
jg 0x140058d00
mov rcx, qword [r15 - 0x18]
mov rax, qword [rcx]
lea rdx, [r15 - 0x18]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
test r12d, r12d
jg 0x140058d38
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
jmp 0x140058d38
mov ecx, 0x80070057
call fcn.1400022b0
nop
mov ecx, 0x80070057
call fcn.1400022b0
nop
lea rax, vtable.CxImage.0
mov qword [rbp + 0x180], rax
lea rcx, [rbp + 0x180]
call fcn.14009eea0
mov rcx, qword [rbp + 0x10780]
xor rcx, rsp
call fcn.1400d4d90
lea r11, [rsp + 0x108a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret