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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe04
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [ebp + 0x14], ebx
jne 0x402dbc
cmp dword [edi + 0x1880], ebx
jne 0x402dbc
mov ecx, dword [edi]
xor edx, edx
cmp dword [edi + 0x58], ebx
push ebx
sete dl
push edx
push edi
call dword [ecx + 0x10]
cmp eax, ebx
jne 0x403090
push 1
call fcn.0040e083
pop ecx
test eax, eax
je 0x402db1
mov eax, 0x80070204
jmp 0x403090
push 0x434ee4
call fcn.0040d994
pop ecx
push esi
push 0x10
push 0x434ee8
push ebx
call fcn.00417639
call fcn.004177e8
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x603]
push ebx
push eax
mov byte [ebp - 0x604], bl
call fcn.0041b5c0
push 0xff
lea eax, [ebp - 0xff]
push ebx
push eax
mov byte [ebp - 0x100], bl
call fcn.0041b5c0
add esp, 0x24
push ebx
lea ecx, [edi + 8]
call fcn.0040950e
cmp eax, ebx
je 0x402e17
mov ecx, eax
call fcn.00409e2b
push dword [ebp + 0xc]
mov eax, dword [edi]
push edi
call dword [eax + 0x2c]
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], ebx
je 0x402eb8
push ebx
push dword [ebp + 0xc]
call fcn.00410c3f
pop ecx
pop ecx
mov dword [ebp + 0x14], eax
cmp eax, ebx
jne 0x402e43
cmp dword [ebp + 8], ebx
jge 0x402eb8
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 0x402e80
push 0x88
push dword [0x4470b0]
call esi
jmp 0x402e93
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.0040da5e
pop ecx
jmp 0x403083
push esi
lea eax, [ebp - 0xa03]
push ebx
push eax
mov byte [ebp - 0xa04], bl
call fcn.0041b5c0
push esi
lea eax, [ebp - 0xe03]
push ebx
push eax
mov byte [ebp - 0xe04], bl
call fcn.0041b5c0
add esp, 0x18
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, 0x400
cmp eax, 4
jle 0x402f94
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 0x402f94
push 0x103
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.0041b5c0
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 0x402fd0
lea eax, [ebp - 0x204]
push eax
push str._smsiexec.exe
push 0xffffffffffffffff
lea eax, [ebp - 0xa04]
push esi
push eax
call fcn.0041b6dc
lea eax, [edi + 0xbf0]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xa04]
push eax
push str.__s___i__s__s
push 0xffffffffffffffff
lea eax, [ebp - 0xe04]
push esi
push eax
call fcn.0041b6dc
add esp, 0x30
jmp 0x402fd0
push dword [ebp + 0xc]
lea eax, [ebp - 0xa04]
push 0x434f20
push 0xffffffffffffffff
push esi
push eax
call fcn.0041b6dc
lea eax, [edi + 0xbf0]
push eax
lea eax, [ebp - 0xa04]
push eax
push str.__s___s
push 0xffffffffffffffff
lea eax, [ebp - 0xe04]
push esi
push eax
call fcn.0041b6dc
add esp, 0x2c
push ebx
lea eax, [ebp - 0xe04]
push eax
lea eax, [ebp - 0xa04]
push eax
mov ecx, edi
call fcn.00402a6d
mov edi, eax
cmp edi, ebx
je 0x40308d
cmp edi, 0xbc2
je 0x40308d
push esi
lea eax, [ebp - 0x604]
push eax
cmp edi, 0xffffffff
jne 0x40301c
push 0x89
push dword [0x4470b0]
call dword [sym.imp.USER32.dll_LoadStringA]
jmp 0x403052
push 0x73
push dword [0x4470b0]
call dword [sym.imp.USER32.dll_LoadStringA]
push ebx
push ebx
lea eax, [ebp + 0xc]
push eax
push esi
push edi
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x403052
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.00419d01
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret 0x10