Function at 0x403762
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 0x4037b8
cmp dword [edi + 0x1880], ebx
jne 0x4037b8
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 0x403a8c
push 1
call fcn.0040e8b7
pop ecx
test eax, eax
je 0x4037ad
mov eax, 0x80070204
jmp 0x403a8c
push 0x43649c
call fcn.0040e1c8
pop ecx
push esi
push 0x10
push 0x4364a0
push ebx
call fcn.00417f13
call fcn.004180c2
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x603]
push ebx
push eax
mov byte [ebp - 0x604], bl
call fcn.0041bdb0
push 0xff
lea eax, [ebp - 0xff]
push ebx
push eax
mov byte [ebp - 0x100], bl
call fcn.0041bdb0
add esp, 0x24
push ebx
lea ecx, [edi + 8]
call fcn.00409f41
cmp eax, ebx
je 0x403813
mov ecx, eax
call fcn.0040a85e
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 0x4038b4
push ebx
push dword [ebp + 0xc]
call fcn.00411476
pop ecx
pop ecx
mov dword [ebp + 0x14], eax
cmp eax, ebx
jne 0x40383f
cmp dword [ebp + 8], ebx
jge 0x4038b4
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x100
lea eax, [ebp - 0x100]
push eax
push 0x72
push dword [0x4480d8]
call esi
cmp dword [ebp + 0x14], 0xfffffffc
push 0x400
lea eax, [ebp - 0x604]
push eax
jne 0x40387c
push 0x88
push dword [0x4480d8]
call esi
jmp 0x40388f
push 0x74
push dword [0x4480d8]
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.0040e292
pop ecx
jmp 0x403a7f
push esi
lea eax, [ebp - 0xa03]
push ebx
push eax
mov byte [ebp - 0xa04], bl
call fcn.0041bdb0
push esi
lea eax, [ebp - 0xe03]
push ebx
push eax
mov byte [ebp - 0xe04], bl
call fcn.0041bdb0
add esp, 0x18
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, 0x400
cmp eax, 4
jle 0x403990
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 0x403990
push 0x103
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.0041bdb0
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 0x4039cc
lea eax, [ebp - 0x204]
push eax
push str._smsiexec.exe
push 0xffffffffffffffff
lea eax, [ebp - 0xa04]
push esi
push eax
call fcn.0041becc
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.0041becc
add esp, 0x30
jmp 0x4039cc
push dword [ebp + 0xc]
lea eax, [ebp - 0xa04]
push 0x4364d8
push 0xffffffffffffffff
push esi
push eax
call fcn.0041becc
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.0041becc
add esp, 0x2c
push ebx
lea eax, [ebp - 0xe04]
push eax
lea eax, [ebp - 0xa04]
push eax
mov ecx, edi
call fcn.00403469
mov edi, eax
cmp edi, ebx
je 0x403a89
cmp edi, 0xbc2
je 0x403a89
push esi
lea eax, [ebp - 0x604]
push eax
cmp edi, 0xffffffff
jne 0x403a18
push 0x89
push dword [0x4480d8]
call dword [sym.imp.USER32.dll_LoadStringA]
jmp 0x403a4e
push 0x73
push dword [0x4480d8]
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 0x403a4e
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 [0x4480d8]
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.0041a4ea
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret 0x10