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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11bc
call fcn.00456b30
mov eax, dword [0x4946a0]
xor eax, esp
mov dword [esp + 0x11b8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x14], ebx
jne 0x409f2b
cmp dword [edi + 0x2480], ebx
jne 0x409f2b
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 0x40a0fa
push 1
call fcn.0040dcf5
pop ecx
test eax, eax
je 0x409f26
mov eax, 0x80070204
jmp 0x40a0fa
call fcn.0040d7bc
push 0x10
call fcn.0040ffe7
pop ecx
call fcn.0041032c
push ebx
lea esi, [edi + 8]
call fcn.0040acaf
cmp eax, ebx
je 0x409f4e
push 2
mov ecx, eax
call fcn.0040b171
push dword [esp + 0x10]
mov eax, dword [edi]
push edi
call dword [eax + 0x20]
mov esi, eax
cmp dword [ebp + 0x10], ebx
je 0x40a111
mov ecx, dword [esp + 0x10]
push ebx
call fcn.0041497e
pop ecx
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x409f7e
cmp esi, ebx
jge 0x40a111
push 0xf
pop eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xa0]
push eax
push ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp dword [esp + 0x1c], 0xfffffffc
push eax
lea eax, [esp + 0x5c]
jne 0x40a00a
push 0x88
push eax
call fcn.00408bf8
mov ecx, eax
call fcn.0042d301
mov esi, eax
lea edi, [esp + 0x34]
call fcn.004030fd
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [esp + 0xa4]
call fcn.004031e0
push ebx
push edi
lea ecx, [esp + 0x78]
call fcn.004031e0
push ebx
push edi
lea ecx, [esp + 0x58]
call fcn.004031e0
push ebx
push edi
lea ecx, [esp + 0x20]
call fcn.004031e0
jmp 0x40a063
push 0x74
push eax
call fcn.00408bf8
mov ecx, eax
call fcn.0042d301
mov esi, eax
lea edi, [esp + 0x34]
call fcn.004030fd
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0xa4]
call fcn.004031e0
push ebx
push esi
lea ecx, [esp + 0x78]
call fcn.004031e0
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.004031e0
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.004031e0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edi, edi
inc edi
push 0xf
pop eax
push ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], 0x10
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x72
mov ecx, eax
lea edx, [esp + 0x54]
call fcn.0042bdf0
push 0xffffffffffffffff
mov esi, eax
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esi + 0x1c]
call fcn.00403147
mov eax, esi
call fcn.0042bf12
push ebx
push edi
lea ecx, [esp + 0x74]
call fcn.004031e0
push ebx
push edi
lea ecx, [esp + 0x58]
call fcn.004031e0
push dword [esp + 0x14]
call fcn.0040dbac
pop ecx
push ebx
push edi
lea ecx, [esp + 0x3c]
mov esi, 0x80004005
call fcn.004031e0
call fcn.004101c5
mov eax, esi
mov ecx, dword [esp + 0x11c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00448f97
mov esp, ebp
pop ebp
ret 0x10
mov esi, 0x7ff
push esi
lea eax, [esp + 0x9c5]
push ebx
push eax
mov byte [esp + 0x9cc], bl
call fcn.0044b040
add esp, 0xc
push esi
lea eax, [esp + 0x1c5]
push ebx
push eax
mov byte [esp + 0x1cc], bl
call fcn.0044b040
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
push dword [esp + 0x10]
call esi
cmp eax, 4
jle 0x40a1f7
push str..msi
push dword [esp + 0x14]
call esi
mov esi, dword [esp + 0x14]
lea eax, [eax + esi - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40a1f7
push 0x103
lea eax, [esp + 0xbd]
push ebx
push eax
mov byte [esp + 0xc4], bl
call fcn.0044b040
add esp, 0xc
lea eax, [esp + 0xb8]
push eax
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x40a237
push esi
lea eax, [esp + 0xbc]
push eax
push str.__smsiexec.exe___i__s
push 0xffffffffffffffff
mov esi, 0x800
lea eax, [esp + 0x9d0]
push esi
push eax
call fcn.004494f8
add edi, 0xff0
push edi
push 0x47811c
push 0xffffffffffffffff
lea eax, [esp + 0x1e4]
push esi
push eax
call fcn.004494f8
add esp, 0x2c
jmp 0x40a237
push dword [esp + 0x10]
mov esi, 0x800
push str.__s_
push 0xffffffffffffffff
lea eax, [esp + 0x9cc]
push esi
push eax
call fcn.004494f8
add esp, 0x14
add edi, 0xff0
push edi
push 0x47811c
push 0xffffffffffffffff
lea eax, [esp + 0x1cc]
push esi
push eax
call fcn.004494f8
add esp, 0x14
push ebx
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0x9c8]
push eax
call fcn.0040a41d
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x40a3fe
cmp eax, 0xbc2
je 0x40a3fe
push 0xf
pop ecx
cmp eax, 0xffffffff
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
push ebx
jne 0x40a2f1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x89
lea eax, [esp + 0x60]
push eax
call fcn.00408bf8
mov ecx, eax
call fcn.0042d301
mov esi, eax
lea edi, [esp + 0x34]
call fcn.004030fd
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0xa4]
call fcn.004031e0
push ebx
push esi
lea ecx, [esp + 0x78]
call fcn.004031e0
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.004031e0
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.004031e0
jmp 0x40a37e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x73
lea eax, [esp + 0x60]
push eax
call fcn.00408bf8
mov ecx, eax
call fcn.0042d301
mov esi, eax
lea edi, [esp + 0x34]
call fcn.004030fd
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0xa4]
call fcn.004031e0
push ebx
push esi
lea ecx, [esp + 0x78]
call fcn.004031e0
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.004031e0
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.004031e0
push ebx
push ebx
lea eax, [esp + 0x18]
push eax
push 0x400
push dword [esp + 0x24]
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x40a37e
push dword [esp + 0x10]
mov eax, edi
push eax
call fcn.004089de
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0xf
pop eax
push ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], 0x10
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x72
mov ecx, eax
lea edx, [esp + 0x54]
call fcn.0042bdf0
push 0xffffffffffffffff
mov esi, eax
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esi + 0x1c]
call fcn.00403147
mov eax, esi
call fcn.0042bf12
push ebx
push 1
lea ecx, [esp + 0x74]
call fcn.004031e0
push ebx
push 1
lea ecx, [esp + 0x58]
call fcn.004031e0
push ebx
push 1
jmp 0x40a0e5
xor esi, esi
jmp 0x40a0f8