Function at 0x401600
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.00401b01
test al, al
jne 0x40163b
mov ecx, edi
call fcn.00401b89
test al, al
jne 0x40163b
or eax, 0xffffffff
jmp 0x40186c
mov ecx, edi
call fcn.00401c06
mov esi, eax
lea eax, [esi + 1]
neg eax
sbb eax, eax
and eax, fcn.00401382
jne 0x40165a
or edi, 0xffffffff
jmp 0x40185e
mov ecx, dword [edi + 0x1c]
sub ecx, 0x10
call fcn.00402927
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], 0x401f92
mov dword [esp + 0x38], edi
mov byte [esp + 0xf], bl
lea eax, [esp + 0xf]
push eax
lea ecx, [esp + 0x20]
call fcn.00402e8a
test al, al
je 0x40182a
cmp byte [esp + 0xf], bl
je 0x401693
mov ecx, edi
call fcn.00401d14
test al, al
je 0x40182a
mov ecx, dword [edi + 8]
or dword [edi + 0xc], 0xffffffff
cmp dword [ecx - 0xc], ebx
je 0x401825
add ecx, 0xfffffff0
call fcn.00402927
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.00402582
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
lea ecx, [esp + 0x3c]
call fcn.0040255c
push 0x208
lea eax, [esp + 0x4c]
push ebx
push eax
call fcn.004059c0
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 0x40174b
cmp eax, 0x104
jae 0x40174b
lea ecx, [esp + 0x48]
call fcn.00401536
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x401751
mov ecx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 4]
cmp dword [eax - 0xc], ebx
jne 0x4017a1
test ecx, ecx
jne 0x40177e
mov edi, 0x80040750
mov ecx, edi
call fcn.004021aa
push ebx
call fcn.00413f22
pop ecx
lea ecx, [esp + 0x10]
call fcn.004028e3
jmp 0x40182d
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 0x4017c0
push eax
lea eax, [esp + 0x14]
push 0x41b9f0
push eax
call fcn.00401427
add esp, 0xc
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00401881
lea eax, [esp + 0x10]
push eax
call fcn.00401993
test al, al
jne 0x4017fd
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4017fd
push eax
lea ecx, [esp + 0x1c]
call fcn.004024e7
push dword [eax]
lea eax, [esp + 0x14]
push 0x41b9f8
push eax
call fcn.00401427
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.004028e3
push ecx
push ecx
lea edx, [edi + 0xc]
lea ecx, [esp + 0x18]
call fcn.00403107
push dword [esp + 0x1c]
call fcn.00413f22
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004028e3
mov edi, dword [edi + 0xc]
jmp 0x40182d
or edi, 0xffffffff
jmp 0x40182d
or edi, 0xffffffff
cmp dword [esp + 0x2c], ebx
je 0x40184c
push ebx
lea ecx, [esp + 0x2c]
call fcn.0040231c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebx
cmp ebx, dword [esp + 0x2c]
jne 0x401833
lea ecx, [esp + 0x28]
call fcn.00402341
lea ecx, [esp + 0x1c]
call fcn.004028e3
cmp esi, 0xffffffff
je 0x40186a
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.0040569e
mov esp, ebp
pop ebp
ret