Function at 0x3000cbdb
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
jbe 0x3000cc10
lea eax, [edi + ebx*2]
cmp word [eax - 2], 0x5c
je 0x3000cc10
lea ecx, [ebx + 1]
cmp ecx, dword [ebp + 0x14]
jae 0x3000cc35
mov word [eax], 0x5c
mov dword [ebp + 0x10], ecx
mov ebx, ecx
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.3000684e
test eax, eax
mov dword [ebp - 4], eax
jbe 0x3000cc78
test ebx, ebx
jne 0x3000cc5c
mov eax, 0x800000
test dword [esi + 0x64], eax
je 0x3000cc3f
and dword [ebp - 4], ebx
jmp 0x3000cc78
mov eax, 0x80070057
jmp 0x3000cebe
mov ecx, dword [esi]
test dword [ecx + 0x64], eax
je 0x3000cc35
mov eax, dword [esi + 0x4c]
cmp eax, dword [ebp + 0x14]
jae 0x3000cc35
mov dword [ebp - 4], eax
lea eax, [eax + eax + 2]
push eax
push dword [esi + 0x78]
push edi
jmp 0x3000cc70
lea ecx, [eax + ebx]
cmp ecx, dword [ebp + 0x14]
jae 0x3000cc35
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0xc]
lea eax, [edi + ebx*2]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
test byte [esi + 0x1c], 0x10
je 0x3000cde6
mov eax, dword [esi + 8]
test eax, eax
jne 0x3000cc9b
test dword [esi + 0x64], 0x800000
je 0x3000cc99
mov dword [ebp - 8], 1
test eax, eax
jbe 0x3000cce2
mov ecx, dword [ebp - 4]
add ebx, ecx
lea edi, [eax - 1]
lea eax, [ebp - 0xc]
push eax
push edi
mov ecx, esi
call fcn.300079f2
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.3000cbdb
test eax, eax
jl 0x3000cccf
cmp eax, 1
jne 0x3000ccd6
mov dword [ebp - 8], 1
mov eax, edi
test eax, eax
ja 0x3000cca2
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 8], 0
jne 0x3000cdd7
test dword [esi + 0x64], 0x800000
push edi
je 0x3000cd11
call dword [sym.imp.MSO.dll_Ordinal_295]
test eax, eax
jbe 0x3000cd21
cmp word [edi + eax*2], 0x5c
je 0x3000cd0a
dec eax
jne 0x3000cd00
test eax, eax
jbe 0x3000cd21
push edi
jmp 0x3000cd16
mov eax, dword [ebp - 4]
add eax, ebx
and word [edi + eax*2], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi], 0
je 0x3000cdd7
mov edi, dword [esi + 8]
jmp 0x3000cd7f
lea eax, [ebp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.300079f2
mov ecx, dword [ebp + 0x14]
push 0
push dword [ebp + 8]
call fcn.3000cb0e
test eax, eax
jl 0x3000cdd1
lea eax, [ebp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.300078c0
mov ecx, dword [ebp + 0x14]
add ecx, 4
call fcn.300076c9
mov ecx, dword [ebp + 8]
push 0
push dword [ebp + 0x14]
call fcn.30009b20
push dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.3000af00
dec edi
jns 0x3000cd2f
mov ecx, dword [esi]
xor edi, edi
cmp dword [ecx + 8], edi
jbe 0x3000cdd1
lea eax, [ebp + 0x14]
push eax
push edi
call fcn.300079f2
cmp dword [ebp + 0x14], esi
mov ecx, dword [esi]
je 0x3000cda4
inc edi
cmp edi, dword [ecx + 8]
jb 0x3000cd8b
jmp 0x3000cdd1
lea eax, [ebp + 0x14]
push eax
push edi
call fcn.300078c0
mov ecx, dword [ebp + 0x14]
add ecx, 4
call fcn.300076c9
mov ecx, dword [ebp + 8]
push 0
push dword [ebp + 0x14]
call fcn.30009b20
push dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.3000af00
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
add eax, ebx
and word [edi + eax*2], 0
jmp 0x3000cebb
push dword [ebp + 0x18]
mov ecx, esi
push edi
call fcn.30006c4d
test eax, eax
mov dword [ebp - 8], eax
jne 0x3000cebb
lea eax, [esi + 0x50]
push eax
call fcn.30006560
push esi
call fcn.3000741f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi], 0
je 0x3000cebb
mov edi, dword [esi + 8]
mov ebx, dword [ebp + 8]
jmp 0x3000ce6b
lea eax, [ebp + 0x10]
push eax
push edi
mov ecx, esi
call fcn.300079f2
mov ecx, dword [ebp + 0x10]
push 0
push ebx
call fcn.3000cb0e
test eax, eax
jl 0x3000cebb
lea eax, [ebp + 0x10]
push eax
push edi
mov ecx, esi
call fcn.300078c0
mov ecx, dword [ebp + 0x10]
add ecx, 4
call fcn.300076c9
push 0
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.30009b20
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.3000af00
dec edi
jns 0x3000ce23
mov ecx, dword [esi]
xor edi, edi
cmp dword [ecx + 8], edi
jbe 0x3000cebb
lea eax, [ebp + 0x10]
push eax
push edi
call fcn.300079f2
cmp dword [ebp + 0x10], esi
mov ecx, dword [esi]
je 0x3000ce90
inc edi
cmp edi, dword [ecx + 8]
jb 0x3000ce77
jmp 0x3000cebb
lea eax, [ebp + 0x10]
push eax
push edi
call fcn.300078c0
mov ecx, dword [ebp + 0x10]
add ecx, 4
call fcn.300076c9
push 0
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.30009b20
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.3000af00
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x14