Function at 0x10029950
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10045438
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1005a4a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, 0x10
mov dword [ebp - 4], edi
cmp dword [ebp + 0x1c], esi
jae 0x10029996
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100299b3
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x100299ac
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov dword [ebp - 0x28], edi
cmp dword [0x1005dc7c], 8
mov byte [ebp - 4], 2
jb 0x100299df
mov eax, dword [0x1005dc68]
cmp eax, edi
je 0x10029a0b
cmp word [eax], 0x7b
jne 0x100299e6
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
jmp 0x100299f1
mov eax, 0x1005dc68
jmp 0x100299cc
lea edx, [ebp - 0x24]
push edx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
cmp eax, edi
jl 0x10029a04
push 0x17
push edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
call fcn.10028d60
mov eax, dword [ebp - 0x28]
cmp eax, edi
jne 0x10029a25
cmp dword [ebp + 0x1c], esi
jb 0x10029c45
mov ecx, dword [ebp + 8]
push ecx
call fcn.1002eeea
add esp, 4
jmp 0x10029c45
mov edx, dword [eax]
mov ebx, 3
push ebx
mov esi, eax
push eax
mov eax, dword [edx + 0x44]
call eax
cmp eax, edi
jge 0x10029a45
push 0x10048714
push esi
push eax
call fcn.100150c0
mov ecx, 0xa
mov word [ebp - 0x44], cx
mov dword [ebp - 0x3c], 0x80020004
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x10047a54
mov byte [ebp - 4], bl
call fcn.1000186f
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x10047a54
mov byte [ebp - 4], 4
call fcn.1000186f
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 5
cmp ecx, edi
jne 0x10029a91
push 0x80004003
call fcn.100150a0
push 0xffffffffffffffff
push edi
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], bl
call fcn.100293a0
mov eax, dword [ebp - 0x28]
cmp eax, edi
jne 0x10029ab1
push 0x80004003
call fcn.100150a0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push edi
push eax
mov esi, eax
call edx
cmp eax, edi
jge 0x10029acc
push 0x10048714
push esi
push eax
call fcn.100150c0
mov eax, dword [ebp - 0x28]
cmp eax, edi
jne 0x10029add
push 0x80004003
call fcn.100150a0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
push 1
push eax
mov esi, eax
call edx
cmp eax, edi
jge 0x10029af9
push 0x10048714
push esi
push eax
call fcn.100150c0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x28]
lea edx, [ebp - 0x24]
push edx
call fcn.10028a00
mov edx, dword [ebp - 0x28]
mov byte [ebp - 4], 6
cmp edx, edi
jne 0x10029b1d
push 0x80004003
call fcn.100150a0
mov ebx, dword [eax]
mov edi, dword [edx]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [eax + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov ecx, dword [edi + 0x60]
push edx
mov esi, edx
call ecx
test eax, eax
jns 0x10029b52
push 0x10048714
push esi
push eax
call fcn.100150c0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x24]
mov bl, 3
push edx
mov byte [ebp - 4], bl
call edi
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10029b74
push 0x80004003
call fcn.100150a0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push 0
push eax
mov esi, eax
call edx
test eax, eax
jns 0x10029b90
push 0x10048714
push esi
push eax
call fcn.100150c0
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
push 1
jae 0x10029b9e
lea eax, [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.1000186f
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 7
test ecx, ecx
jne 0x10029bbf
push 0x80004003
call fcn.100150a0
mov byte [ebp - 4], bl
call fcn.100294d0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10029bd8
push 0x80004003
call fcn.100150a0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x58]
push eax
mov esi, eax
call edx
test eax, eax
jns 0x10029bf2
push 0x10048714
push esi
push eax
call fcn.100150c0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10029c08
mov dword [ebp - 0x28], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x44]
push eax
call edi
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 1
test eax, eax
je 0x10029c21
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp + 0x1c], 0x10
jb 0x10029c33
mov eax, dword [ebp + 8]
push eax
call fcn.1002eeea
add esp, 4
mov al, 1
jmp 0x10029c47
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10030fba
mov esp, ebp
pop ebp
ret 0x1c