Function at 0x40cd90
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x2c4
mov eax, dword [0x42482c]
xor eax, esp
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x41fadc
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2d4], eax
mov dword [esp + 0x34], esi
call fcn.004048b0
lea eax, [esp + 0xc8]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0xc8]
push ecx
xor edi, edi
push edi
push 0x41fad8
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [esp + 0x28]
push edi
push edi
lea eax, [esp + 0xd0]
push eax
push ecx
lea ecx, [esi + 4]
call fcn.00404dc0
test eax, eax
jne 0x40d0c3
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x14]
push edx
push 0x41f9b0
push 0x17
push edi
push 0x41fac8
mov dword [esp + 0x24], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x40ce64
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ole32.dll_OleRun]
mov esi, eax
cmp esi, edi
jl 0x40ce56
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x41f9a0
push eax
call dword [ecx]
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, edi
jge 0x40ce6a
mov dword [esp + 0x10], edi
cmp esi, edi
jne 0x40d08b
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x30]
call fcn.004048b0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x2c]
call fcn.0040b930
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
mov word [esp + 0x34], 8
mov esi, dword [esp + 0x34]
jne 0x40cec4
push 0x80004003
call fcn.0041e390
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
sub esp, 0x10
mov edx, esp
mov dword [edx], esi
mov dword [edx + 4], edi
mov dword [edx + 8], ebx
push eax
mov dword [edx + 0xc], ebp
call dword [ecx + 0xe8]
test eax, eax
jne 0x40d062
cmp word [esp + 0x24], 0xffff
jne 0x40d062
mov ecx, dword [esp + 0x10]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x14], eax
jne 0x40cf12
push 0x80004003
call fcn.0041e390
mov eax, dword [esp + 0x14]
cmp eax, edi
mov esi, dword [esp + 0x10]
je 0x40cf20
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x41fab8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
call fcn.0040b740
mov eax, dword [eax]
mov edx, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push eax
push esi
call dword [edx + 0x94]
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, eax
neg ebx
sbb bl, bl
push edx
inc bl
call ebp
test bl, bl
je 0x40d054
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edi
call fcn.0040b610
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
call dword [ecx + 0x68]
test eax, eax
jne 0x40d04b
mov eax, dword [esp + 0x18]
push 0x41fab0
push eax
call fcn.0041e602
add esp, 8
cmp eax, 0xffffffff
je 0x40d04b
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edi
call fcn.0040b610
push 0x41faa4
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.0040b740
mov edi, dword [eax]
mov ebx, dword [esi]
lea ecx, [esp + 0x20]
call fcn.0040b8e0
push eax
push edi
push esi
call dword [ebx + 0x94]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
neg ebx
sbb bl, bl
push ecx
inc bl
call ebp
test bl, bl
je 0x40d03d
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], 0
call fcn.0040b610
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [edx + 0x68]
test eax, eax
jne 0x40d036
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x48]
call fcn.0040b900
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
push eax
add ecx, 0x8c
call fcn.00404770
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x48]
cmp eax, ecx
je 0x40d036
push eax
call fcn.00413af1
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call ebp
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40d04b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x18]
push edx
call ebp
xor edi, edi
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40d062
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d08b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d0a1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
lea edx, [esp + 0xc8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d0c3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d0e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x2d0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004144ff
add esp, 0x2c4
ret