Function at 0x1400348d0
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x520
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400e71f0]
xor rax, rsp
mov qword [rsp + 0x510], rax
mov r12, rcx
mov qword [rsp + 0x88], rcx
mov esi, 1
mov dword [rsp + 0x48], esi
call fcn.140015a10
movsxd rbx, eax
test r12, r12
jne 0x140034935
xor eax, eax
jmp 0x14003547e
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x300]
call fcn.140080d50
lea rdx, [rsp + 0x300]
mov rcx, qword [r12 + 0x10]
call fcn.140023670
lea rcx, [rsp + 0x58]
call fcn.140067970
nop
or r13, 0xffffffffffffffff
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140067be4
mov rdi, qword [r12 + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1400349c1
nop
mov r8, rdi
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140068584
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
lea rdi, [rdi + rax*2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x140034990
call fcn.1400696cc
mov rcx, rax
xor ebp, ebp
mov eax, ebp
test rcx, rcx
setne al
test eax, eax
jne 0x1400349e2
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rdx, qword [r12 + 0x28]
test rdx, rdx
jne 0x1400349ff
mov ecx, ebp
jmp 0x140034a11
xor eax, eax
mov rcx, r13
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
lea rcx, [rsp + 0x30]
call fcn.140003c40
mov dx, 0x5c
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140080890
test rax, rax
jne 0x140034a39
mov eax, r13d
jmp 0x140034a3f
sub rax, rdi
sar rax, 1
add eax, 1
mov r8d, dword [rdi - 0x10]
sub r8d, eax
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x30]
call fcn.140003710
nop
mov r8, rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140068200
nop
mov rdx, qword [rsp + 0xd8]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140034a93
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [r12 + 0x20]
test rdx, rdx
jne 0x140034aa1
mov ecx, ebp
jmp 0x140034ab3
xor eax, eax
mov rcx, r13
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
lea rcx, [rsp + 0x30]
call fcn.140003c40
mov dx, 0x5c
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140080890
test rax, rax
jne 0x140034adb
mov eax, r13d
jmp 0x140034ae1
sub rax, rdi
sar rax, 1
add eax, 1
mov r8d, dword [rdi - 0x10]
sub r8d, eax
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x30]
call fcn.140003710
nop
mov r8, rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140068200
nop
mov rdx, qword [rsp + 0xd0]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140034b35
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [r12 + 0x30]
test rdx, rdx
jne 0x140034b43
mov ecx, ebp
jmp 0x140034b55
xor eax, eax
mov rcx, r13
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
lea rcx, [rsp + 0x30]
call fcn.140003c40
mov dx, 0x5c
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140080890
test rax, rax
jne 0x140034b7d
mov eax, r13d
jmp 0x140034b83
sub rax, rdi
sar rax, 1
add eax, 1
mov r8d, dword [rdi - 0x10]
sub r8d, eax
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x30]
call fcn.140003710
nop
mov r8, rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140068200
nop
mov rdx, qword [rsp + 0xc8]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140034bd7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [r12 + 0x18]
test rdx, rdx
jne 0x140034be5
mov ecx, ebp
jmp 0x140034bf7
xor eax, eax
mov rcx, r13
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
lea rcx, [rsp + 0x30]
call fcn.140003c40
mov dx, 0x5c
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140080890
test rax, rax
jne 0x140034c1f
mov eax, r13d
jmp 0x140034c25
sub rax, rdi
sar rax, 1
add eax, 1
mov r8d, dword [rdi - 0x10]
sub r8d, eax
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x30]
call fcn.140003710
nop
mov r8, rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140068200
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140034c79
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x4c], ebp
mov qword [rsp + 0x50], rbp
mov r15, rbx
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jle 0x140035450
test rbp, rbp
js 0x14003544a
cmp rbp, rcx
jge 0x14003544a
mov rax, qword [rsp + 0x60]
mov rdi, qword [rax + rbp*8]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x140034cd2
cmp rax, qword [rdi - 0x18]
jne 0x140034cd2
lea rsi, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x140034d0e
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x140035444
mov eax, dword [rdi - 0x10]
mov dword [rsi + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rsi + 0x18]
call fcn.140080540
add rsi, 0x18
mov qword [rsp + 0x40], rsi
mov dx, 0x5c
mov rcx, rsi
call fcn.140080890
mov r14, rax
test rax, rax
jne 0x140034d30
mov r14d, r13d
jmp 0x140034d36
sub r14, rsi
sar r14, 1
add r14d, 1
lea rcx, [rsp + 0x300]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x2fe], 0x5c
jne 0x140034db5
mov r8d, dword [rsi - 0x10]
sub r8d, r14d
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.140003710
mov r9, qword [rax]
lea r8, [rsp + 0x300]
lea rdx, [0x1400a3e50]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140034e12
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140034e12
mov r8d, dword [rsi - 0x10]
sub r8d, r14d
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x40]
call fcn.140003710
mov r9, qword [rax]
lea r8, [rsp + 0x300]
lea rdx, [0x1400a3e08]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0xa8]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140034e12
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, r12
mov rcx, qword [rsp + 0x40]
call fcn.140023770
test eax, eax
jne 0x1400353d0
lea edx, [rax + 0x20]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x48], eax
test eax, eax
jne 0x140034e70
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140034e70
cmp eax, 3
jbe 0x140034e68
cmp eax, 5
je 0x140034e68
cmp eax, 0x20
jne 0x140034e70
mov dword [rsp + 0x48], 1
cmp dword [0x1400e9420], 0xd2
jne 0x140034e90
lea rdx, [rsp + 0xf0]
lea rcx, [0x1400e9440]
call fcn.1400075b0
cmp r15, 5
je 0x140034ea6
cmp r15, 6
je 0x140034ea6
cmp r15, 0xa
jne 0x140034ffd
lea rcx, [rsp + 0x300]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x2fe], 0x5c
je 0x140034f3f
mov edi, dword [r12]
cmp edi, 0x400
mov eax, 0
cmove edi, eax
mov r8d, dword [rsi - 0x10]
sub r8d, r14d
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x40]
call fcn.140003710
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, [rsp + 0x300]
lea rdx, str._s_d_s
lea rcx, [rsp + 0xf0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0xc0]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140034fb6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140034fb6
mov edi, dword [r12]
cmp edi, 0x400
mov eax, 0
cmove edi, eax
mov r8d, dword [rsi - 0x10]
sub r8d, r14d
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x40]
call fcn.140003710
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, [rsp + 0x300]
lea rdx, [0x1400a8de8]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0xb8]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140034fb6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, 0x20
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x1400e9420], 0xd2
jne 0x140034ffd
lea rdx, [rsp + 0xf0]
lea rcx, [0x1400e9440]
call fcn.1400075b0
call fcn.1400696cc
xor ebp, ebp
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
je 0x140035433
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0xf0]
lea rax, [rsp + 0xf0]
test rax, 0xffffffffffff0000
jne 0x14003506b
movzx edi, cx
mov ecx, edi
call fcn.1400696b8
test rax, rax
je 0x140035173
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140003a40
mov rbx, qword [rsp + 0x38]
jmp 0x140035173
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0xf0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x1400350e1
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140035173
cmp dword [rdx + 0x10], eax
jge 0x1400350b2
cmp dword [rbx - 0xc], eax
jl 0x140035417
mov dword [rbx - 0x10], ebp
mov word [rbx], ax
jmp 0x140035173
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400350ca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
jmp 0x140035173
mov ebp, dword [rbx - 0x10]
lea r12, [rsp + 0xf0]
sub r12, rbx
sar r12, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140035114
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140003180
mov rbx, qword [rsp + 0x38]
cmp r12, rbp
ja 0x140035134
movsxd rax, edi
lea rbp, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rbp
mov rdx, rbp
mov rcx, rbx
call fcn.140081c40
jmp 0x140035151
movsxd rax, edi
lea rbp, [rax + rax]
mov r9, rbp
lea r8, [rsp + 0xf0]
mov rdx, rbp
mov rcx, rbx
call fcn.140080540
test edi, edi
js 0x140035428
cmp edi, dword [rbx - 0xc]
jg 0x140035428
mov dword [rbx - 0x10], edi
mov word [rbx + rbp], 0
mov r12, qword [rsp + 0x88]
mov r8d, 3
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x38]
call fcn.140003710
nop
mov rdx, qword [rax]
lea rdi, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rdi, rbx
je 0x140035246
cmp dword [rbx + 0x10], 0
jl 0x140035237
mov rcx, qword [rdi]
cmp rcx, qword [rbx]
jne 0x140035237
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x1400351d4
cmp rax, qword [rdi]
jne 0x1400351d4
mov rbp, rdi
lock add dword [rdi + 0x10], 1
jmp 0x140035211
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi + 8]
call qword [rax]
mov rbp, rax
test rax, rax
je 0x140035422
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 8]
add ecx, 1
movsxd rdx, ecx
lea r9, [rdx + rdx]
lea r8, [rdi + 0x18]
add rdx, rdx
lea rcx, [rax + 0x18]
call fcn.140080540
mov eax, r13d
lock xadd dword [rbx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14003522c
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x140035246
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140003c40
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14003526a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [0x1400a8de0]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.1400807e0
test eax, eax
je 0x140035299
lea rdx, [0x1400a8dd8]
mov rcx, rdi
call fcn.1400807e0
test eax, eax
jne 0x1400353a8
cmp r15, 2
je 0x1400352a9
cmp r15, 3
jne 0x14003539a
lea rcx, [rsp + 0x300]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x2fe], 0x5c
je 0x140035324
mov r8d, dword [rsi - 0x10]
sub r8d, r14d
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.140003710
mov r9, qword [rax]
lea r8, [rsp + 0x300]
lea rdx, str._sCOLOR_s
lea rcx, [rsp + 0xf0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140035381
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140035381
mov r8d, dword [rsi - 0x10]
sub r8d, r14d
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
call fcn.140003710
mov r9, qword [rax]
lea r8, [rsp + 0x300]
lea rdx, [0x1400a8da8]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0xb0]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140035381
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x38]
lea rcx, [rsp + 0xf0]
call fcn.1400344b0
nop
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400353cb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbp, qword [rsp + 0x50]
jmp 0x1400353d0
mov rbp, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400353f1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, dword [rsp + 0x4c]
add edx, 1
mov dword [rsp + 0x4c], edx
add rbp, 1
mov qword [rsp + 0x50], rbp
movsxd rax, edx
mov rcx, qword [rsp + 0x68]
cmp rax, rcx
jge 0x14003543e
jmp 0x140034c93
mov ecx, 0x80070057
call fcn.140001000
nop
call fcn.1400019f0
nop
mov ecx, 0x80070057
call fcn.140001000
nop
mov ecx, 0x80004005
call fcn.140001000
nop
mov esi, dword [rsp + 0x48]
jmp 0x140035450
call fcn.1400019f0
int3
call fcn.14006766c
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r13d
add r13d, 0xffffffff
test r13d, r13d
jg 0x140035472
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x58]
call fcn.140067fc8
mov eax, esi
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.140081050
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret