Function at 0x51fac4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51fd8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x354]
mov eax, dword [eax + 0x22c]
call fcn.00451fa0
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x370]
mov eax, dword [eax + 0x22c]
call fcn.00452094
mov eax, dword [ebx + 0x354]
mov eax, dword [eax + 0x22c]
call fcn.00451fa0
dec eax
test eax, eax
jl 0x51fca3
inc eax
mov dword [ebp - 0x18], eax
xor esi, esi
cmp byte [ebx + 0x3ec], 5
je 0x51fca3
mov eax, dword [0x533210]
mov eax, dword [eax]
call fcn.0048e660
mov eax, dword [ebx + 0x354]
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.00451fd0
call fcn.0045192c
test al, al
je 0x51fc99
inc dword [ebp - 0xc]
mov eax, dword [ebx + 0x354]
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.00451fd0
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x3c]
mov edx, 3
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebx + 0x354]
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.00451fd0
mov ecx, dword [eax + 0x24]
lea eax, [ebp - 4]
pop edx
call fcn.00404ad8
mov eax, dword [ebx + 0x370]
mov eax, dword [eax + 0x22c]
call fcn.00451f38
mov edi, eax
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004519d8
mov eax, dword [ebx + 0x394]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x51fc59
xor eax, eax
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], 3
lea eax, [ebp - 0x40]
mov ecx, 0x51fda8
mov edx, dword [ebp - 4]
call fcn.00404ad8
mov eax, dword [ebp - 0x40]
call fcn.00404c8c
mov dword [ebp - 0x2e], eax
xor eax, eax
mov dword [ebp - 0x2a], eax
mov word [ebp - 0x26], 0x450
lea eax, [ebp - 0x36]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
jne 0x51fc47
inc dword [ebp - 0x10]
mov eax, dword [edi + 8]
mov edx, 0x51fdb4
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x51fc99
inc dword [ebp - 0x14]
mov eax, dword [edi + 8]
mov edx, 0x51fdcc
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x51fc99
mov eax, dword [ebx + 0x390]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x51fc99
mov eax, dword [ebp - 4]
call fcn.004098bc
test al, al
je 0x51fc89
inc dword [ebp - 0x10]
mov eax, dword [edi + 8]
mov edx, 0x51fdb4
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x51fc99
inc dword [ebp - 0x14]
mov eax, dword [edi + 8]
mov edx, 0x51fdcc
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec dword [ebp - 0x18]
jne 0x51fb45
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0
lea edx, [ebp - 0x54]
mov ecx, 1
mov eax, 0x51fde4
call fcn.0040a2dc
mov edx, dword [ebp - 0x44]
mov eax, dword [ebx + 0x378]
call fcn.0046dddc
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, 0x51fe30
call fcn.0040a2dc
mov edx, dword [ebp - 0x58]
mov eax, dword [ebx + 0x37c]
call fcn.0046dddc
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, 0x51fe60
call fcn.0040a2dc
mov edx, dword [ebp - 0x64]
mov eax, dword [ebx + 0x380]
call fcn.0046dddc
cmp dword [ebp - 0x14], 0
jle 0x51fd4c
mov eax, dword [ebx + 0x380]
mov eax, dword [eax + 0x68]
mov edx, 0xff
call fcn.004275b4
jmp 0x51fd5c
mov eax, dword [ebx + 0x380]
mov eax, dword [eax + 0x68]
xor edx, edx
call fcn.004275b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51fd96
lea eax, [ebp - 0x64]
call fcn.004047cc
lea eax, [ebp - 0x58]
call fcn.004047cc
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.004047f0
lea eax, [ebp - 4]
call fcn.004047cc
ret