Function at 0x4ce970
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56716d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [ebp + 8]
push 0x2e
push dword [ebx]
call fcn.00523c99
add esp, 8
test eax, eax
je 0x4cebe9
sub eax, dword [ebx]
sar eax, 1
test eax, eax
jle 0x4cebe9
push eax
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.0040d0a0
mov dword [ebp - 4], 0
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4cebff
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
push dword [ebx]
push dword [esi]
push str.__verbose___log_file__s____remove_pack_file___s____s_
push eax
call fcn.004087a0
mov ecx, dword [edi + 0x10]
add esp, 0x14
test ecx, ecx
je 0x4cea19
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
push ecx
lea eax, [ebp - 0x28]
push eax
push 0x8000008
push 1
push 0
lea ecx, [edi + 0xc]
lea edx, [ebp - 0x18]
call fcn.004bd120
add esp, 0x14
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x10]
call fcn.00493400
or edi, 0xffffffff
test al, al
je 0x4cea55
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4ceb7a
call fcn.004092f0
test eax, eax
je 0x4cebff
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
lea edx, [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.004be110
add esp, 4
call fcn.004092f0
test eax, eax
je 0x4cebff
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 6
mov edx, 0xca
lea ecx, [ebp - 0x20]
call fcn.004bb7b0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x10]
push 0x5c
push eax
mov esi, dword [eax - 0xc]
call fcn.00523c99
add esp, 8
test eax, eax
jne 0x4ceaca
or eax, 0xffffffff
jmp 0x4ceacf
sub eax, dword [ebp - 0x10]
sar eax, 1
sub esi, eax
lea ecx, [ebp - 0x10]
push esi
lea eax, [ebp + 8]
push eax
call fcn.0040d160
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x1c]
push esi
push dword [eax]
lea eax, [ebp - 0x14]
push dword [ebp - 0x20]
push eax
call fcn.004087a0
add esp, 0x10
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ceb15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor dl, dl
lea ecx, [ebp - 0x14]
call fcn.0049d070
mov byte [ebp + 0xb], 0
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ceb41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ceb5f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4ceb7a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4ceb95
mov eax, dword [ecx]
push ebx
call dword [eax + 0x18]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4cebb3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4cebd2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00408fc0
int3