Function at 0x402700
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c290
push 0x41e2f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x128], esi
mov byte [ebp - 0x11c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
cmp edi, esi
mov eax, 0x43177c
jne 0x402767
mov eax, 0x431784
push eax
push str._Do__s_desktop_icon
call fcn.00402470
add esp, 8
cmp edi, esi
je 0x40279f
call fcn.00402f90
test eax, eax
je 0x4027c4
push str.desktop_auto_range
call fcn.00402470
add esp, 4
push 0x4317b4
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x402ae4
push 0x4317d8
call fcn.00402f70
test eax, eax
jne 0x4027c4
push 0x4317fc
push str.file_:__s_not_exist
call fcn.00402470
add esp, 8
jmp 0x402ae4
push esi
call fcn.00402fd0
test eax, eax
je 0x4027d8
mov esi, 0xfffffff6
jmp 0x402ae4
call fcn.00402540
mov edi, eax
mov dword [ebp - 0x160], edi
cmp edi, esi
jne 0x4027f1
or esi, 0xffffffff
jmp 0x402ae4
cmp dword [ebp + 8], esi
jne 0x402816
cmp dword [0x436c20], esi
jne 0x402816
push 0x431834
call fcn.00402d20
test eax, eax
je 0x402816
mov esi, 0xfffffffe
jmp 0x402ae4
push 0x431858
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push esi
push 0x1004
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x124], eax
cmp eax, esi
jle 0x402ae4
push edi
call fcn.00402680
mov dword [ebp - 0x164], eax
cmp eax, esi
jne 0x402857
mov esi, 0xfffffffc
jmp 0x402ae4
mov dword [ebp - 4], esi
push 4
push 0x1000
push 0x104
push esi
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call ebx
mov dword [ebp - 0x120], eax
cmp eax, esi
jne 0x402891
mov esi, 0xfffffffb
mov dword [ebp - 0x178], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x402ae4
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x144], 0x104
mov dword [ebp - 0x148], eax
push 4
push 0x1000
push 0x34
push esi
mov eax, dword [ebp - 0x164]
push eax
call ebx
mov ebx, eax
mov dword [ebp - 0x168], ebx
cmp ebx, esi
jne 0x4028dd
mov esi, 0xfffffffa
mov dword [ebp - 0x178], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x402aea
lea ecx, [ebp - 0x128]
push ecx
push 0x34
lea edx, [ebp - 0x15c]
push edx
push ebx
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x402916
mov esi, 0xfffffff9
mov dword [ebp - 0x178], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x402aea
cmp dword [ebp + 8], esi
jne 0x402926
push esi
push esi
push 0xb
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x16c], esi
cmp esi, dword [ebp - 0x124]
jge 0x402aa7
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
push ebx
push esi
push 0x102d
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jl 0x402a95
mov dword [ebp - 0x128], 0
lea edx, [ebp - 0x128]
push edx
push 0x104
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
mov edi, dword [ebp - 0x164]
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x402a95
mov eax, dword [ebp - 0x128]
test eax, eax
jbe 0x402a95
mov eax, dword [ebp + 8]
test eax, eax
je 0x402a65
xor edx, edx
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x170], edx
lea eax, [ebp - 0x128]
push eax
push 8
lea ecx, [ebp - 0x174]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x402a95
push ebx
push esi
push 0x1010
mov edx, dword [ebp - 0x160]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x402a95
lea eax, [ebp - 0x128]
push eax
push 8
lea ecx, [ebp - 0x174]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x402a95
mov eax, dword [ebp - 0x128]
test eax, eax
jbe 0x402a95
mov edx, dword [ebp - 0x170]
and edx, 0xffff
shl edx, 0x10
mov eax, dword [ebp - 0x174]
and eax, 0xffff
or edx, eax
push edx
lea ecx, [ebp - 0x11c]
push ecx
push 0x43187c
call fcn.00402c80
inc esi
mov dword [ebp - 0x16c], esi
mov edi, dword [ebp - 0x160]
jmp 0x40292c
lea edx, [ebp - 0x11c]
push edx
call fcn.00402bb0
mov dword [ebp - 0x17c], eax
test eax, eax
je 0x402a95
mov eax, dword [eax + 0x104]
push eax
push esi
push 0x100f
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
inc esi
mov dword [ebp - 0x16c], esi
mov edi, dword [ebp - 0x160]
jmp 0x40292c
mov eax, dword [ebp + 8]
test eax, eax
jne 0x402abb
push 0
push 1
push 0xb
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
mov dword [ebp - 0x178], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x402aea
mov ebx, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x164]
test ecx, ecx
je 0x402b33
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x402b0d
push 0x8000
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test ebx, ebx
je 0x402b26
push 0x8000
push 0
push ebx
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x402b45
call fcn.00402c50
test esi, esi
mov ecx, str.success
je 0x402b4a
mov ecx, str.failed
mov eax, dword [ebp + 8]
test eax, eax
mov eax, 0x4318b0
jne 0x402b5b
mov eax, 0x4318b8
push ecx
push eax
push esi
push str.do__d___s_desktop_icons__s
call fcn.00402470
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4