Function at 0x46308d
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], ecx
jne 0x4630aa
cmp dword [ebp + 0x10], 0xffffffff
je 0x4631c5
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x4630c8
push esi
push esi
push 0x8049
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4631c5
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x4d1c38
call esi
mov edi, dword [0x4e9e94]
mov ebx, dword fs:[0x2c]
test eax, eax
jne 0x4630f8
mov dword [ebp - 8], 2
jmp 0x4631b9
push dword [ebp + 8]
push str.copy
call esi
test eax, eax
jne 0x463112
mov dword [ebp - 8], 1
jmp 0x4631b9
push dword [ebp + 8]
push str.delete
call esi
test eax, eax
jne 0x46318c
mov dword [ebp - 8], 0x20
mov ecx, dword [ebp - 4]
test byte [ecx + 0x27], 0x40
je 0x4631cc
cmp dword [ecx + 0xc], 3
je 0x4631cc
call fcn.00461390
test eax, eax
je 0x4631cc
mov ecx, dword [ebp - 4]
xor esi, esi
push esi
push 0x20
call fcn.00462e07
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x4631c0
push dword [ebp - 4]
push dword [ebp - 0xc]
push eax
mov eax, dword [ebx + edi*4]
mov ecx, dword [eax + 4]
call fcn.0047adb1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
cmp eax, esi
jl 0x4631ce
jmp 0x4633da
push dword [ebp + 8]
push str.shdel
call esi
test eax, eax
jne 0x4631a3
mov dword [ebp - 0xc], 1
jmp 0x463127
push dword [ebp + 8]
push 0x4d1bf0
call esi
neg eax
sbb eax, eax
and al, 0xc0
add eax, 0x40
mov dword [ebp - 8], eax
xor esi, esi
jmp 0x463282
cmp dword [ebp - 0xc], esi
jne 0x4631d7
xor eax, eax
jmp 0x4633da
xor esi, esi
cmp dword [ebp - 0xc], esi
je 0x463282
mov ecx, dword [ebp - 4]
test byte [ecx + 0x27], 0x40
je 0x463274
cmp dword [ecx + 0xc], 3
je 0x463274
call fcn.00461390
test eax, eax
je 0x463274
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
call fcn.004633e1
mov eax, dword [ebp + 8]
cmp dword [eax - 8], esi
je 0x46326c
push 1
push 1
lea ecx, [ebp - 0x18]
call fcn.004750fa
mov eax, dword [ebx + edi*4]
mov ecx, dword [eax + 4]
call fcn.0047a97a
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
xor eax, eax
lea edi, [ebp - 0x26]
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x28], si
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov esi, eax
lea ecx, [ebp - 0x18]
neg esi
sbb esi, esi
inc esi
call fcn.0047514f
lea ecx, [ebp + 8]
call fcn.004010b4
mov eax, esi
jmp 0x4633da
lea ecx, [ebp + 8]
call fcn.004010b4
mov dword [ebp + 8], str.delete
mov dword [ebp - 8], 0x20
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push dword [ebp - 8]
call fcn.0046301d
cmp eax, esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
je 0x4633d7
cmp dword [ebp + 0x10], 0xffffffff
je 0x4632e4
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push 4
push 0x270f
push 1
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0xc]
push esi
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x4632d6
mov eax, dword [ebp + 0x10]
push esi
inc eax
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetMenuState]
cmp dword [ebp + 0xc], esi
je 0x4632e4
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_DestroyMenu]
xor eax, eax
cmp dword [ebp - 8], 0x20
push 1
lea ecx, [ebp - 0x18]
sete al
push eax
call fcn.004750fa
mov eax, dword [ebx + edi*4]
mov dword [ebp - 0x3c], 0x24
mov dword [ebp - 0x38], esi
mov ecx, dword [eax + 4]
call fcn.0047a97a
cmp dword [ebp + 0x10], 0xffffffff
push 1
pop edi
mov dword [ebp - 0x34], eax
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
jne 0x463332
mov eax, dword [ebp + 8]
push dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov dword [ebp + 0x10], esi
push 0x4d038c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x463392
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, dword [ebp - 0xc]
push edi
mov edi, 0x270f
mov dword [ebp + 0x10], eax
mov ecx, dword [ebx]
push edi
push 1
push esi
push eax
push ebx
call dword [ecx + 0xc]
test eax, eax
jl 0x463395
push esi
push esi
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetMenuDefaultItem]
cmp eax, 1
jl 0x46337f
cmp eax, edi
jle 0x463389
push esi
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetMenuItemID]
dec eax
movzx eax, ax
mov dword [ebp - 0x30], eax
jmp 0x463395
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0xc]
mov eax, dword [ebx]
lea ecx, [ebp - 0x3c]
push ecx
push ebx
call dword [eax + 0x10]
test eax, eax
jne 0x4633b4
mov dword [ebp - 0x10], 1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
cmp dword [ebp + 0x10], esi
je 0x4633c9
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DestroyMenu]
lea ecx, [ebp - 0x18]
call fcn.0047514f
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc