Function at 0x4086a5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42b94a
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x439030]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
cmp dword [0x43e4a8], 0
jne 0x4086f1
push dword [0x43e4ac]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x408c07
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x1c], ebx
sub esp, 0xc
mov byte [esp + 0xc4], 1
lea ecx, [esp + 0x20]
call fcn.0040418e
test eax, eax
js 0x408bdf
push dword [0x43e4ac]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
call fcn.00409199
mov byte [esp + 0xbc], 2
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x408758
push 0x80004003
call fcn.00417e40
lea eax, [esp + 0x1c]
mov byte [esp + 0xbc], 1
push eax
call fcn.004091f5
push eax
lea ecx, [esp + 0x20]
call fcn.004041f9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408782
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40874e
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push esi
push eax
call fcn.0040915d
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4087a7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
and dword [esp + 0x28], ebx
mov byte [esp + 0xb8], 4
mov edi, dword [0x43e4a8]
mov dword [esp + 0x18], edi
test edi, edi
je 0x408b5a
push 0x16
pop ebx
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Node
call fcn.004042e8
mov byte [esp + 0xbc], 5
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40874e
lea eax, [esp + 0x3c]
mov byte [esp + 0xbc], 4
push eax
call fcn.004091f5
push eax
lea ecx, [esp + 0x30]
call fcn.004041f9
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40881d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi]
mov word [esp + 0x7c], bx
mov dword [esp + 0x84], eax
lea eax, [esp + 0x7c]
mov byte [esp + 0xb8], 6
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x432600
call fcn.004042e8
mov byte [esp + 0xc0], 7
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x40874e
mov ecx, ebx
mov byte [esp + 0xc0], 6
call fcn.00409103
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [edi + 0xcc]
push 0x16
pop ecx
mov word [esp + 0x5c], cx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
mov byte [esp + 0xb8], 8
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.state
call fcn.004042e8
mov byte [esp + 0xc0], 9
mov ecx, ebx
mov byte [esp + 0xc0], 8
call fcn.00409103
lea eax, [esp + 0x5c]
mov byte [esp + 0xb8], 4
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [edi + 4]
push eax
lea ecx, [esp + 0x90]
call fcn.0040443c
push eax
push ecx
mov byte [esp + 0xc0], 0xa
mov ecx, esp
mov dword [esp + 0x18], esp
push str.name
call fcn.004042e8
mov byte [esp + 0xc0], 0xb
mov ecx, ebx
mov byte [esp + 0xc0], 0xa
call fcn.00409103
lea eax, [esp + 0x8c]
mov byte [esp + 0xb8], 4
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
je 0x40874e
push ebx
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.0040915d
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40894b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi + 0xd0]
mov dword [esp + 0x10], eax
test eax, eax
je 0x408b4f
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Item
call fcn.004042e8
mov byte [esp + 0xbc], 0xc
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40874e
lea eax, [esp + 0x34]
mov byte [esp + 0xbc], 4
push eax
call fcn.004091f5
push eax
lea ecx, [esp + 0x2c]
call fcn.004041f9
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4089ac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push 0x16
pop ecx
mov word [esp + 0x3c], cx
mov eax, dword [eax]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x3c]
mov byte [esp + 0xb8], 0xd
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.index
call fcn.004042e8
mov byte [esp + 0xc0], 0xe
mov edi, dword [esp + 0x30]
test edi, edi
je 0x40874e
mov ecx, edi
mov byte [esp + 0xc0], 0xd
call fcn.00409103
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [esp + 0x10]
push 0x16
mov eax, dword [ecx + 0x1114]
pop ecx
mov word [esp + 0x4c], cx
mov dword [esp + 0x54], eax
lea eax, [esp + 0x4c]
mov byte [esp + 0xb8], 0xf
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.state
call fcn.004042e8
mov byte [esp + 0xc0], 0x10
mov ecx, edi
mov byte [esp + 0xc0], 0xf
call fcn.00409103
lea eax, [esp + 0x4c]
mov byte [esp + 0xb8], 4
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x9c]
add eax, 4
push eax
call fcn.0040443c
push eax
push ecx
mov byte [esp + 0xc0], 0x11
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.name
call fcn.004042e8
mov byte [esp + 0xc0], 0x12
mov ecx, edi
mov byte [esp + 0xc0], 0x11
call fcn.00409103
lea eax, [esp + 0x9c]
mov byte [esp + 0xb8], 4
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x6c]
add eax, 0xcc
push eax
call fcn.0040443c
push eax
push ecx
mov byte [esp + 0xc0], 0x13
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x433350
call fcn.004042e8
mov byte [esp + 0xc0], 0x14
mov ecx, edi
mov byte [esp + 0xc0], 0x13
call fcn.00409103
lea eax, [esp + 0x6c]
mov byte [esp + 0xb8], 4
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push edi
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.0040915d
mov eax, dword [esp + 0x20]
test eax, eax
je 0x408b35
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x1118]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x40895d
mov edi, dword [esp + 0x18]
mov edi, dword [edi + 0xd4]
jmp 0x4087bf
push dword [0x43e4ac]
lea ecx, [esp + 0x70]
call fcn.0040443c
mov esi, eax
mov byte [esp + 0xb8], 0x15
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x40874e
mov eax, dword [ecx]
sub esp, 0x10
mov edi, esp
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x108]
test eax, eax
jns 0x408ba8
push 0x43255c
push dword [esp + 0x24]
push eax
call fcn.00417e60
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0xb8], 3
mov eax, dword [esp + 0x28]
test eax, eax
je 0x408bc9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0xb8], 1
test ebx, ebx
je 0x408bdb
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov ebx, dword [esp + 0x1c]
mov byte [esp + 0xb8], 0
test ebx, ebx
je 0x408bf1
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
or dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408c07
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret