Function at 0x401617
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x41d018]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.00401b20
test al, al
jne 0x401652
mov ecx, edi
call fcn.00401baa
test al, al
jne 0x401652
or eax, 0xffffffff
jmp 0x401885
mov ecx, edi
call fcn.00401c29
mov esi, eax
lea eax, [esi + 1]
neg eax
sbb eax, eax
and eax, fcn.00401382
jne 0x401671
or edi, 0xffffffff
jmp 0x401877
mov ecx, dword [edi + 0x1c]
sub ecx, 0x10
mov dword [esp + 0x1c], esi
call fcn.0040295d
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], 0x401fba
mov dword [esp + 0x38], edi
mov byte [esp + 0xf], bl
lea eax, [esp + 0xf]
push eax
lea ecx, [esp + 0x20]
call fcn.00402ee1
test al, al
je 0x401843
cmp byte [esp + 0xf], bl
je 0x4016aa
mov ecx, edi
call fcn.00401d39
test al, al
je 0x401843
mov ecx, dword [edi + 8]
lea eax, [edi + 0xc]
or dword [eax], 0xffffffff
mov dword [esp + 0x18], eax
cmp dword [ecx - 0xc], ebx
je 0x40183f
add ecx, 0xfffffff0
call fcn.0040295d
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.004025b2
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
lea ecx, [esp + 0x3c]
call fcn.0040258c
push 0x208
lea eax, [esp + 0x4c]
push ebx
push eax
call fcn.00405970
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 0x401768
cmp eax, 0x104
jae 0x401768
lea ecx, [esp + 0x48]
call fcn.00401548
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x40176e
mov ecx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], ebx
jne 0x4017be
test ecx, ecx
jne 0x40179b
mov edi, 0x80040750
mov ecx, edi
call fcn.004021d4
push ebx
call fcn.00413022
pop ecx
lea ecx, [esp + 0x10]
call fcn.00402919
jmp 0x401846
push str.install
push str.taggedmi
push str.installsource
lea eax, [esp + 0x1c]
push str.___s__s___s
push eax
call fcn.00401435
add esp, 0x14
jmp 0x4017dd
push eax
lea eax, [esp + 0x14]
push 0x41b8b4
push eax
call fcn.00401435
add esp, 0xc
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.0040189a
lea eax, [esp + 0x10]
push eax
call fcn.004019ae
mov edi, dword [esp + 0x14]
test al, al
jne 0x40181a
test edi, edi
je 0x40181a
push edi
lea ecx, [esp + 0x18]
call fcn.00402517
push dword [eax]
lea eax, [esp + 0x14]
push str.___s_
push eax
call fcn.00401435
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00402919
mov edx, dword [esp + 0x18]
push ecx
push ecx
lea ecx, [esp + 0x18]
call fcn.0040315f
push edi
call fcn.00413022
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00402919
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
jmp 0x401846
or edi, 0xffffffff
cmp dword [esp + 0x2c], ebx
je 0x401865
push ebx
lea ecx, [esp + 0x2c]
call fcn.00402356
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebx
cmp ebx, dword [esp + 0x2c]
jne 0x40184c
lea ecx, [esp + 0x28]
call fcn.00402380
lea ecx, [esp + 0x20]
call fcn.00402919
cmp esi, 0xffffffff
je 0x401883
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.00405641
mov esp, ebp
pop ebp
ret