Function at 0x461840
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510e30
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x124], esi
xor ebx, ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], 1
push 0x104
lea eax, [ebp - 0x118]
push eax
call fcn.0049d670
lea eax, [ebp - 0x118]
push eax
call fcn.00488700
add esp, 0xc
lea ecx, [ebp - 0x118]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4618b8
mov eax, dword [str.msnwcfg.ini]
mov dword [ecx], eax
mov eax, dword [0x51dc88]
mov dword [ecx + 4], eax
mov eax, dword [0x51dc8c]
mov dword [ecx + 8], eax
xor edi, edi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x134], edi
lea eax, [ebp - 0x118]
push eax
call fcn.0048b440
add esp, 4
test eax, eax
je 0x461a25
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x60]
mov eax, dword [eax + 0xa5d4]
mov dword [ebp - 0x130], eax
push 1
push edi
lea eax, [ebp - 0x118]
push eax
push str.shellfolder
push 4
call fcn.0049c8a0
add esp, 0x14
mov ebx, eax
mov dword [ebp - 0x120], ebx
test ebx, ebx
je 0x4619e4
mov dword [ebp - 0x128], edi
cmp edi, dword [0x5303b0]
jae 0x4619d8
mov esi, edi
shl esi, 6
add esi, 0x528ff0
mov edx, dword [esi]
test edx, edx
je 0x4619d2
cmp byte [edx], 0
je 0x4619d2
mov ecx, dword [esi + 0x24]
and ecx, 1
xor eax, eax
or eax, ecx
je 0x4619d2
mov eax, dword [ebx]
push 1
push edx
mov ecx, ebx
call dword [eax + 4]
test eax, eax
je 0x4619d2
mov ecx, dword [esi + 0x24]
and ecx, 2
xor eax, eax
or eax, ecx
je 0x461998
push esi
push ebx
mov ecx, dword [ebp - 0x11c]
call fcn.00462890
test eax, eax
jne 0x4619d2
push esi
push ebx
mov ecx, dword [ebp - 0x11c]
call fcn.00462a40
test eax, eax
jne 0x4619d2
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx]
push 1
push dword [esi]
push ebx
call dword [eax + 0x1c]
test eax, eax
je 0x4619d2
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx]
push 1
push dword [esi]
call dword [eax + 0x10]
inc edi
jmp 0x461939
mov esi, dword [ebp - 0x11c]
mov edi, dword [ebp - 0x12c]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x461a05
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0048d3e0
add esp, 8
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x60]
mov edx, 1
mov ecx, dword [ebp - 0x130]
cmp ecx, dword [eax + 0xa5d4]
cmovne edi, edx
mov dword [ebp - 0x134], edi
cmp dword [ebp + 8], 0
je 0x461a4a
test edi, edi
je 0x461a4a
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x461a4a
xor eax, eax
je 0x461a42
push 6
push eax
call fcn.00454480
mov ecx, dword [esi + 0x2c]
call fcn.00453ac0
mov dword [ebp - 4], 0xffffffff
jmp 0x461a7d
mov dword [ebp - 4], 2
test ebx, ebx
je 0x461a90
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x10], 0
jmp 0x461acb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret 4