Function at 0x4d8531
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x2bc
mov eax, 0x699a59
call fcn.0056e23b
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c0]
call fcn.004c321d
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2b8]
call fcn.004173bc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2b8]
push esi
call fcn.004179fb
and dword [ebp - 0x29c], 0
jmp 0x4d87f1
mov eax, dword [ebp - 0x2c0]
mov eax, dword [eax + 4]
cmp dword [eax + 0x24], 0
jne 0x4d86da
add eax, 8
lea ecx, [ebp - 0x2c]
push eax
call fcn.0041736d
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4d85d1
dec esi
lea ecx, [ebp - 0x28]
push esi
call fcn.00404220
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x5c
cmovae eax, dword [ebp - 0x28]
pop ecx
cmp word [eax + esi*2], cx
je 0x4d85d1
push 0x6d6794
lea ecx, [ebp - 0x2c]
call fcn.00419c79
push 0x6d67e8
lea ecx, [ebp - 0x2c]
call fcn.00419c79
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x298]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.00565625
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c0]
mov ecx, dword [ecx + 4]
mov dword [ecx + 0x24], eax
cmp eax, 0xffffffff
jne 0x4d8635
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2c0]
push dword [eax + 4]
lea eax, [ebp - 0x2c4]
push eax
call fcn.004a8156
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041786a
jmp 0x4d8747
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041786a
push 0x6d67ec
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4d86d1
push 0x6d67f0
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4d86d1
test byte [ebp - 0x298], 0x10
jne 0x4d877c
lea ecx, [ebp - 0x48]
call fcn.004173bc
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2c0]
mov eax, dword [eax + 4]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x4d869a
mov eax, dword [eax]
lea ecx, [ebp - 0x26c]
push ecx
push eax
lea eax, [ebp - 0x48]
push 0x6d67fc
push eax
call fcn.0041ccda
add esp, 0x10
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.0041786a
mov eax, dword [ebp - 0x2c0]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x298]
push ecx
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4d8641
mov eax, dword [ebp - 0x2c0]
mov eax, dword [eax + 4]
push dword [eax + 0x24]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x2c0]
mov eax, dword [eax + 4]
and dword [eax + 0x24], 0
mov eax, dword [ebp - 0x2c0]
mov eax, dword [eax + 4]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x4d8725
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2c0]
push dword [eax + 4]
lea eax, [ebp - 0x2c8]
push eax
call fcn.004a8156
cmp dword [ebp - 0x2bc], 0
jne 0x4d857c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b8]
call fcn.0041786a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c0]
call fcn.004a487d
xor eax, eax
call fcn.0056e1e5
ret 4
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2b8]
and dword [ebp - 0x29c], 0
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004248f3
mov esi, dword [ebp - 0x2a4]
test esi, esi
je 0x4d87df
dec esi
lea ecx, [ebp - 0x2b4]
push esi
call fcn.00404220
cmp dword [ebp - 0x2a0], 8
lea eax, [ebp - 0x2b4]
push 0x5c
cmovae eax, dword [ebp - 0x2b4]
pop ecx
cmp word [eax + esi*2], cx
je 0x4d87df
push 0x6d67f8
lea ecx, [ebp - 0x2b8]
call fcn.00419c79
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00419c79
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2c0]
call fcn.004d82ab
jmp 0x4d8747