Function at 0x401605
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x420018]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov ecx, edi
test eax, eax
je 0x401637
call fcn.00401b0a
jmp 0x40163c
call fcn.00401bcf
test al, al
jne 0x401648
or eax, 0xffffffff
jmp 0x401877
mov ecx, edi
call fcn.00401c4c
mov esi, eax
lea eax, [esi + 1]
neg eax
sbb eax, eax
and eax, fcn.00401426
jne 0x401667
or edi, 0xffffffff
jmp 0x401869
mov ecx, dword [edi + 0x1c]
sub ecx, 0x10
call fcn.0040298e
add eax, 0x10
mov dword [esp + 0x20], esi
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x24], 1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x401faf
mov dword [esp + 0x38], edi
mov byte [esp + 0xf], bl
lea eax, [esp + 0xf]
push eax
lea ecx, [esp + 0x20]
call fcn.00402ef3
test al, al
je 0x401835
cmp byte [esp + 0xf], bl
je 0x4016a0
mov ecx, edi
call fcn.00401d5a
test al, al
je 0x401835
mov ecx, dword [edi + 8]
or dword [edi + 0xc], 0xffffffff
cmp dword [ecx - 0xc], ebx
je 0x401830
add ecx, 0xfffffff0
call fcn.0040298e
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.004025e9
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
lea ecx, [esp + 0x3c]
call fcn.004025c3
push 0x208
lea eax, [esp + 0x4c]
push ebx
push eax
call fcn.00405a60
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 0x401758
cmp eax, 0x104
jae 0x401758
lea ecx, [esp + 0x48]
call fcn.0040153b
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x40175e
mov ecx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], ebx
jne 0x4017a7
test ecx, ecx
jne 0x401784
mov edi, 0x80040750
mov ecx, edi
call fcn.004021cf
lea ecx, [esp + 0x10]
call fcn.0040294a
jmp 0x401838
push str.install
push str.taggedmi
push str.installsource
lea eax, [esp + 0x1c]
push str.___s__s___s
push eax
call fcn.00401427
add esp, 0x14
jmp 0x4017c6
push eax
lea eax, [esp + 0x14]
push 0x41e874
push eax
call fcn.00401427
add esp, 0xc
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.0040188c
lea eax, [esp + 0x10]
push eax
call fcn.004019a1
test al, al
jne 0x401803
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401803
push eax
lea ecx, [esp + 0x1c]
call fcn.0040254e
push dword [eax]
lea eax, [esp + 0x14]
push str.___s_
push eax
call fcn.00401427
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.0040294a
push ecx
push ecx
lea edx, [edi + 0xc]
lea ecx, [esp + 0x18]
call fcn.00403170
mov eax, dword [esp + 0x1c]
pop ecx
pop ecx
test eax, eax
je 0x401822
push eax
call fcn.00416cda
pop ecx
lea ecx, [esp + 0x10]
call fcn.0040294a
mov edi, dword [edi + 0xc]
jmp 0x401838
or edi, 0xffffffff
jmp 0x401838
or edi, 0xffffffff
cmp dword [esp + 0x2c], ebx
je 0x401857
push ebx
lea ecx, [esp + 0x2c]
call fcn.00402341
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebx
cmp ebx, dword [esp + 0x2c]
jne 0x40183e
lea ecx, [esp + 0x28]
call fcn.00402366
lea ecx, [esp + 0x1c]
call fcn.0040294a
cmp esi, 0xffffffff
je 0x401875
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.004056fe
mov esp, ebp
pop ebp
ret