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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11bc
call fcn.00456f60
mov eax, dword [0x4956a0]
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 0x40a3eb
cmp dword [edi + 0x2480], ebx
jne 0x40a3eb
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 0x40a5ba
push 1
call fcn.0040e455
pop ecx
test eax, eax
je 0x40a3e6
mov eax, 0x80070204
jmp 0x40a5ba
call fcn.0040df1c
push 0x10
call fcn.0041070c
pop ecx
call fcn.00410a51
push ebx
lea esi, [edi + 8]
call fcn.0040b41c
cmp eax, ebx
je 0x40a40e
push 2
mov ecx, eax
call fcn.0040b8de
push dword [esp + 0x10]
mov eax, dword [edi]
push edi
call dword [eax + 0x20]
mov esi, eax
cmp dword [ebp + 0x10], ebx
je 0x40a5d1
mov ecx, dword [esp + 0x10]
push ebx
call fcn.004150a2
pop ecx
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x40a43e
cmp esi, ebx
jge 0x40a5d1
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 0x40a4ca
push 0x88
push eax
call fcn.00408cde
mov ecx, eax
call fcn.0042d92d
mov esi, eax
lea edi, [esp + 0x34]
call fcn.0040319c
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [esp + 0xa4]
call fcn.00403353
push ebx
push edi
lea ecx, [esp + 0x78]
call fcn.00403353
push ebx
push edi
lea ecx, [esp + 0x58]
call fcn.00403353
push ebx
push edi
lea ecx, [esp + 0x20]
call fcn.00403353
jmp 0x40a523
push 0x74
push eax
call fcn.00408cde
mov ecx, eax
call fcn.0042d92d
mov esi, eax
lea edi, [esp + 0x34]
call fcn.0040319c
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0xa4]
call fcn.00403353
push ebx
push esi
lea ecx, [esp + 0x78]
call fcn.00403353
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.00403353
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.00403353
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.0042c409
push 0xffffffffffffffff
mov esi, eax
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esi + 0x1c]
call fcn.00403244
mov eax, esi
call fcn.0042c52b
push ebx
push edi
lea ecx, [esp + 0x74]
call fcn.00403353
push ebx
push edi
lea ecx, [esp + 0x58]
call fcn.00403353
push dword [esp + 0x14]
call fcn.0040e30c
pop ecx
push ebx
push edi
lea ecx, [esp + 0x3c]
mov esi, 0x80004005
call fcn.00403353
call fcn.004108ea
mov eax, esi
mov ecx, dword [esp + 0x11c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00449589
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.0044b630
add esp, 0xc
push esi
lea eax, [esp + 0x1c5]
push ebx
push eax
mov byte [esp + 0x1cc], bl
call fcn.0044b630
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
push dword [esp + 0x10]
call esi
cmp eax, 4
jle 0x40a6b7
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 0x40a6b7
push 0x103
lea eax, [esp + 0xbd]
push ebx
push eax
mov byte [esp + 0xc4], bl
call fcn.0044b630
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 0x40a6f7
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.00449ae8
add edi, 0xff0
push edi
push 0x4790d4
push 0xffffffffffffffff
lea eax, [esp + 0x1e4]
push esi
push eax
call fcn.00449ae8
add esp, 0x2c
jmp 0x40a6f7
push dword [esp + 0x10]
mov esi, 0x800
push str.__s_
push 0xffffffffffffffff
lea eax, [esp + 0x9cc]
push esi
push eax
call fcn.00449ae8
add esp, 0x14
add edi, 0xff0
push edi
push 0x4790d4
push 0xffffffffffffffff
lea eax, [esp + 0x1cc]
push esi
push eax
call fcn.00449ae8
add esp, 0x14
push ebx
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0x9c8]
push eax
call fcn.0040a8dd
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x40a8be
cmp eax, 0xbc2
je 0x40a8be
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 0x40a7b1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x89
lea eax, [esp + 0x60]
push eax
call fcn.00408cde
mov ecx, eax
call fcn.0042d92d
mov esi, eax
lea edi, [esp + 0x34]
call fcn.0040319c
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0xa4]
call fcn.00403353
push ebx
push esi
lea ecx, [esp + 0x78]
call fcn.00403353
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.00403353
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.00403353
jmp 0x40a83e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x73
lea eax, [esp + 0x60]
push eax
call fcn.00408cde
mov ecx, eax
call fcn.0042d92d
mov esi, eax
lea edi, [esp + 0x34]
call fcn.0040319c
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0xa4]
call fcn.00403353
push ebx
push esi
lea ecx, [esp + 0x78]
call fcn.00403353
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.00403353
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.00403353
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 0x40a83e
push dword [esp + 0x10]
mov eax, edi
push eax
call fcn.00408a68
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.0042c409
push 0xffffffffffffffff
mov esi, eax
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esi + 0x1c]
call fcn.00403244
mov eax, esi
call fcn.0042c52b
push ebx
push 1
lea ecx, [esp + 0x74]
call fcn.00403353
push ebx
push 1
lea ecx, [esp + 0x58]
call fcn.00403353
push ebx
push 1
jmp 0x40a5a5
xor esi, esi
jmp 0x40a5b8