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

Disassembly:
push ebp
lea ebp, [esp - 0x1128]
mov eax, 0x11a8
call fcn.00457f40
mov eax, dword [0x4976a0]
xor eax, ebp
mov dword [ebp + 0x1124], eax
mov eax, dword [ebp + 0x1134]
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x1130]
mov dword [ebp - 0x60], eax
cmp dword [ebp + 0x113c], ebx
jne 0x40a52d
cmp dword [edi + 0x247c], ebx
jne 0x40a52d
mov eax, dword [edi]
push ebx
push ebx
push edi
call dword [eax + 0x10]
cmp eax, ebx
jne 0x40a69a
push 1
call fcn.0043614f
pop ecx
test eax, eax
je 0x40a52d
mov eax, 0x80070204
jmp 0x40a69a
push esi
push 0x10
call fcn.0040f1ce
pop ecx
call fcn.0043614f
push ebx
lea esi, [edi + 8]
call fcn.0043614f
cmp eax, ebx
je 0x40a551
push 2
mov ecx, eax
call fcn.0040b904
push dword [ebp - 0x60]
mov eax, dword [edi]
push edi
call dword [eax + 0x20]
mov esi, eax
cmp dword [ebp + 0x1138], ebx
je 0x40a6b3
push ebx
push dword [ebp - 0x60]
call fcn.0043614f
pop ecx
pop ecx
cmp eax, ebx
jne 0x40a57f
cmp esi, ebx
jge 0x40a6b3
push 0xf
pop ecx
cmp eax, 0xfffffffc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
push ebx
jne 0x40a5e8
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
push 0x88
lea eax, [ebp - 0x5c]
push eax
call fcn.00408c5e
mov ecx, eax
call fcn.0042c25d
mov esi, eax
lea edi, [ebp + 4]
call fcn.00403068
push ebx
push 1
lea ecx, [ebp - 0x18]
call fcn.0040321f
lea esi, [ebp - 0x5c]
call fcn.00408ca1
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.0040321f
jmp 0x40a632
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
push 0x74
lea eax, [ebp - 0x5c]
push eax
call fcn.00408c5e
mov ecx, eax
call fcn.0042c25d
mov esi, eax
lea edi, [ebp + 4]
call fcn.00403068
push ebx
push 1
lea ecx, [ebp - 0x18]
call fcn.0040321f
lea esi, [ebp - 0x5c]
call fcn.00408ca1
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.0040321f
push dword [ebp - 0x60]
call dword [sym.imp.kernel32.dll_DeleteFileA]
lea eax, [ebp - 0x5c]
call fcn.0042a9c8
push ebx
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push 0x72
mov ecx, eax
lea edx, [ebp - 0x5c]
call fcn.0042a9e8
push 0xffffffffffffffff
mov esi, eax
push ebx
lea eax, [ebp + 4]
push eax
lea ecx, [esi + 0x1c]
call fcn.0043614f
mov eax, esi
call fcn.0042ab17
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.0040321f
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.0040321f
push ebx
push 1
lea ecx, [ebp + 4]
mov esi, 0x80004005
call fcn.0040321f
call fcn.0043614f
mov eax, esi
pop esi
mov ecx, dword [ebp + 0x1124]
pop edi
xor ecx, ebp
pop ebx
call fcn.0044a628
add ebp, 0x1128
leave
ret 0x10
mov esi, 0x7ff
push esi
lea eax, [ebp + 0x821]
push ebx
push eax
mov byte [ebp + 0x820], bl
call fcn.0044c6d0
push esi
lea eax, [ebp + 0x21]
push ebx
push eax
mov byte [ebp + 0x20], bl
call fcn.0044c6d0
mov esi, dword [sym.imp.kernel32.dll_lstrlenA]
add esp, 0x18
push dword [ebp - 0x60]
call esi
cmp eax, 4
jle 0x40a77c
push str..msi
push dword [ebp - 0x60]
call esi
mov esi, dword [ebp - 0x60]
lea eax, [eax + esi - 4]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x40a77c
push 0x103
lea eax, [ebp + 0x1021]
push ebx
push eax
mov byte [ebp + 0x1020], bl
call fcn.0044c6d0
add esp, 0xc
lea eax, [ebp + 0x1020]
push eax
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.shell32.dll_SHGetFolderPathA]
test eax, eax
js 0x40a7b3
push esi
lea eax, [ebp + 0x1020]
push eax
push str.__smsiexec.exe___i__s
push 0xffffffffffffffff
mov esi, 0x800
lea eax, [ebp + 0x820]
push esi
push eax
call fcn.0043614f
add edi, 0xfec
push edi
push 0x47a1cc
push 0xffffffffffffffff
lea eax, [ebp + 0x20]
push esi
push eax
call fcn.0043614f
add esp, 0x2c
jmp 0x40a7b3
push dword [ebp - 0x60]
mov esi, 0x800
push str.__s_
push 0xffffffffffffffff
lea eax, [ebp + 0x820]
push esi
push eax
call fcn.0043614f
add edi, 0xfec
push edi
push 0x47a1cc
push 0xffffffffffffffff
lea eax, [ebp + 0x20]
push esi
push eax
call fcn.0043614f
add esp, 0x28
push ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x820]
push eax
call fcn.0043614f
mov dword [ebp - 0x80], eax
cmp eax, ebx
je 0x40a88a
cmp eax, 0xbc2
je 0x40a88a
push 0xf
pop ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
push ebx
jne 0x40a80e
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
push 0x89
jmp 0x40a5ae
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
push 0x73
lea eax, [ebp - 0x5c]
push eax
call fcn.00408c5e
mov ecx, eax
call fcn.0042c25d
mov esi, eax
lea edi, [ebp + 4]
call fcn.00403068
push ebx
push 1
lea ecx, [ebp - 0x18]
call fcn.0040321f
lea esi, [ebp - 0x5c]
call fcn.00408ca1
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.0040321f
push ebx
push ebx
lea eax, [ebp - 0x60]
push eax
push 0x400
push dword [ebp - 0x80]
push ebx
push 0x1300
call dword [sym.imp.kernel32.dll_FormatMessageA]
test eax, eax
je 0x40a632
push dword [ebp - 0x60]
mov eax, edi
push eax
call fcn.004089e8
push dword [ebp - 0x60]
call dword [sym.imp.kernel32.dll_LocalFree]
jmp 0x40a632
xor esi, esi
jmp 0x40a697