Function at 0x4cbea0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x577018]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 0x80]
lea esi, [ebx + 0xa4]
cmp eax, dword [ebx + 0x84]
jne 0x4cbf05
cmp dword [esi + 0x14], 8
jb 0x4cbed9
mov esi, dword [esi]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
add ebx, 0xbc
cmp dword [ebx + 0x14], 8
jb 0x4cbef0
mov ebx, dword [ebx]
push ebx
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret
lea edx, [ebx + 0xbc]
mov ecx, esi
call fcn.00408c90
cmp dword [esi + 0x14], 8
jb 0x4cbf1a
mov esi, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
mov ecx, dword [ebx + 0x9c]
push 0x104
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebx + 0x84]
xor esi, esi
mov edx, dword [ebx + 0x80]
sub eax, edx
sar eax, 2
mov dword [esp + 0x10], esi
test eax, eax
je 0x4cc0c0
nop dword [eax]
nop word [eax + eax]
cmp dword [ebx + 0xa0], 1
movzx edi, si
jne 0x4cc031
mov ecx, dword [edx + edi*4]
lea eax, [esp + 0x20]
push eax
call fcn.004ca400
cmp dword [eax + 0x14], 8
jb 0x4cbf85
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x34]
cmp ecx, 8
jb 0x4cbfc8
mov edx, dword [esp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4cbfbe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cc10a
push ecx
push edx
call fcn.00517162
add esp, 8
mov esi, dword [ebx + 0x80]
xor eax, eax
mov ecx, 0xa00
mov esi, dword [esi + edi*4]
sub eax, dword [esi + 0x28]
mov dword [esi + 0x38], 0xffffffff
sbb ecx, dword [esi + 0x2c]
mov dword [esi + 0x3c], 0x9ff
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
cmp dword [esi + 0x34], ecx
jl 0x4cc01d
jg 0x4cbffe
cmp dword [esi + 0x30], eax
jb 0x4cc01d
cmp dword [esi + 0x50], 2
je 0x4cc01d
push ecx
mov ecx, dword [esi + 0x54]
push eax
mov dword [esi + 0x50], 2
call fcn.004cab50
mov ecx, dword [esi + 0x54]
call fcn.004cd070
mov ecx, dword [ebx + 0x80]
push 1
push 0
push 0
mov ecx, dword [ecx + edi*4]
call fcn.004ca020
mov eax, dword [ebx + 0x80]
push 0x18
mov eax, dword [eax + edi*4]
mov esi, dword [eax + 0x28]
movzx ecx, word [eax + 0x48]
mov edx, dword [eax + 0x4c]
mov ebx, dword [eax + 0x38]
mov edi, dword [eax + 0x2c]
mov dword [esp + 0x18], esi
mov esi, dword [eax + 0x3c]
mov ax, word [eax + 0x4a]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x20]
mov word [esp + 0x3e], cx
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x9c]
mov word [esp + 0x3c], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x84]
inc esi
mov edx, dword [ebx + 0x80]
sub eax, edx
movzx ecx, si
sar eax, 2
mov dword [esp + 0x10], esi
cmp ecx, eax
jb 0x4cbf60
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
cmp dword [eax + 0xa0], 1
jne 0x4cc0d9
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov ecx, dword [ebx + 0x9c]
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp dword [ebx + 0xd0], 8
lea eax, [ebx + 0xbc]
jb 0x4cc0f5
mov eax, dword [eax]
push eax
call edi
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret
call fcn.0051eb64
int3