Function at 0x4018b4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x41ace0]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.00401dba
test al, al
jne 0x4018ef
mov ecx, edi
call fcn.00401e47
test al, al
jne 0x4018ef
or eax, 0xffffffff
jmp 0x401b30
mov ecx, edi
call fcn.00401ec9
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
cmovne eax, dword [0x4188f0]
test eax, eax
jne 0x401910
or edi, 0xffffffff
jmp 0x401b22
mov ecx, dword [edi + 0x1c]
sub ecx, 0x10
mov dword [esp + 0x1c], esi
call fcn.00402e6c
add eax, 0x10
mov byte [esp + 0x24], 1
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x402271
mov dword [esp + 0x38], edi
mov byte [esp + 0xf], bl
lea eax, [esp + 0xf]
push eax
lea ecx, [esp + 0x20]
call fcn.00403797
test al, al
je 0x401aeb
cmp byte [esp + 0xf], bl
je 0x401949
mov ecx, edi
call fcn.00401fe5
test al, al
je 0x401aeb
mov ecx, dword [edi + 8]
lea eax, [edi + 0xc]
or dword [eax], 0xffffffff
mov dword [esp + 0x18], eax
cmp dword [ecx - 0xc], ebx
je 0x401ae7
add ecx, 0xfffffff0
call fcn.00402e6c
or dword [esp + 0x44], 0xffffffff
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0x104
mov ecx, eax
mov dword [esp + 0x40], eax
call fcn.00402cac
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
lea ecx, [esp + 0x3c]
call fcn.0040293d
push 0x208
lea eax, [esp + 0x4c]
push ebx
push eax
call fcn.00409490
add esp, 0xc
lea eax, [esp + 0x48]
push 0x104
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401a07
cmp eax, 0x104
jae 0x401a07
lea ecx, [esp + 0x48]
call fcn.004017da
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x401a0d
mov ecx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], ebx
jne 0x401a60
test ecx, ecx
jne 0x401a3d
mov edi, 0x80040750
mov ecx, edi
call fcn.0040251c
push ebx
call fcn.00410f0e
pop ecx
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040125d
jmp 0x401aee
push str.install
push str.taggedmi
push str.installsource
lea eax, [esp + 0x1c]
push 0x418894
push eax
call fcn.004014c0
add esp, 0x14
jmp 0x401a7f
push eax
lea eax, [esp + 0x14]
push 0x4188ac
push eax
call fcn.004014c0
add esp, 0xc
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00401b45
lea eax, [esp + 0x10]
push eax
call fcn.00401c4d
mov edi, dword [esp + 0x14]
test al, al
jne 0x401abf
test edi, edi
je 0x401abf
push edi
lea ecx, [esp + 0x18]
call fcn.004027a2
push dword [eax]
lea eax, [esp + 0x14]
push str.___s_
push eax
call fcn.004014c0
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040125d
mov edx, dword [esp + 0x18]
push ecx
push ecx
lea ecx, [esp + 0x18]
call fcn.00403403
push edi
call fcn.00410f0e
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.0040125d
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
jmp 0x401aee
or edi, 0xffffffff
cmp dword [esp + 0x2c], ebx
je 0x401b0d
push ebx
lea ecx, [esp + 0x2c]
call fcn.00402913
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebx
cmp ebx, dword [esp + 0x2c]
jne 0x401af4
lea ecx, [esp + 0x28]
call fcn.004028da
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.0040125d
cmp esi, 0xffffffff
je 0x401b2e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408990
mov esp, ebp
pop ebp
ret