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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa04
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x14], ebx
jne 0x402ce3
cmp dword [esi + 0x1850], ebx
jne 0x402ce3
mov ecx, dword [esi]
xor edx, edx
cmp dword [esi + 0x58], ebx
push ebx
sete dl
push edx
push esi
call dword [ecx + 0x10]
cmp eax, ebx
jne 0x402f5a
push 1
call fcn.0040de64
pop ecx
test eax, eax
je 0x402cd8
mov eax, 0x80070204
jmp 0x402f5a
push 0x434de0
call fcn.0040d775
pop ecx
push edi
push 0x10
push 0x434de4
push ebx
call fcn.004173e7
call fcn.00417596
mov edi, 0x3ff
push edi
lea eax, [ebp - 0x603]
push ebx
push eax
mov byte [ebp - 0x604], bl
call fcn.0041b010
push 0xff
lea eax, [ebp - 0xff]
push ebx
push eax
mov byte [ebp - 0x100], bl
call fcn.0041b010
add esp, 0x24
push ebx
lea ecx, [esi + 8]
call fcn.00409339
cmp eax, ebx
je 0x402d3e
mov ecx, eax
call fcn.00409c56
push dword [ebp + 0xc]
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], ebx
je 0x402ddf
push ebx
push dword [ebp + 0xc]
call fcn.004109ed
pop ecx
pop ecx
mov dword [ebp + 0x14], eax
cmp eax, ebx
jne 0x402d6a
cmp dword [ebp + 8], ebx
jge 0x402ddf
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x100
lea eax, [ebp - 0x100]
push eax
push 0x72
push dword [0x4470b0]
call esi
cmp dword [ebp + 0x14], 0xfffffffc
push 0x400
lea eax, [ebp - 0x604]
push eax
jne 0x402da7
push 0x88
push dword [0x4470b0]
call esi
jmp 0x402dba
push 0x74
push dword [0x4470b0]
call esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x10
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x604]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp + 0x14]
call fcn.0040d83f
pop ecx
jmp 0x402f4d
push edi
lea eax, [ebp - 0xa03]
push ebx
push eax
mov byte [ebp - 0xa04], bl
call fcn.0041b010
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x400
cmp eax, 4
jle 0x402e82
push str..msi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + ecx - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402e82
push 0x103
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.0041b010
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x402ea1
lea eax, [esi + 0xbf0]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
push str._smsiexec__i__s__s
lea eax, [ebp - 0xa04]
push edi
push eax
call fcn.0041abae
add esp, 0x18
jmp 0x402ea1
lea eax, [esi + 0xbf0]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xa04]
push str._s__s
push edi
push eax
call fcn.0041abae
add esp, 0x14
push ebx
lea eax, [ebp - 0xa04]
push eax
mov ecx, esi
call fcn.00402995
mov esi, eax
cmp esi, ebx
je 0x402f57
cmp esi, 0xbc2
je 0x402f57
push edi
lea eax, [ebp - 0x604]
push eax
cmp esi, 0xffffffff
jne 0x402ee6
push 0x89
push dword [0x4470b0]
call dword [sym.imp.USER32.dll_LoadStringA]
jmp 0x402f1c
push 0x73
push dword [0x4470b0]
call dword [sym.imp.USER32.dll_LoadStringA]
push ebx
push ebx
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x402f1c
push dword [ebp + 0xc]
lea eax, [ebp - 0x604]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x100
lea eax, [ebp - 0x100]
push eax
push 0x72
push dword [0x4470b0]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x604]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, 0x80004005
call fcn.0041974f
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10