Function at 0x4d10ef
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x260]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ebx
push eax
mov dword [ebp - 0x25c], edi
call fcn.004af026
mov esi, dword [ebp - 0x260]
cmp dword [esi - 0xc], ebx
je 0x4d13da
push 0x548bc8
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.004c1eef
add esp, 0xc
lea ecx, [ebp - 0x254]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x284]
add ecx, 0xfffffff0
mov dword [ebp - 0x264], eax
call fcn.004b04f5
cmp dword [ebp - 0x264], 0xffffffff
jne 0x4d117a
inc ebx
jmp 0x4d13d3
test byte [ebp - 0x254], 0x10
lea eax, [ebp - 0x228]
je 0x4d12ae
push 0x548be0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4d13a9
push 0x548be4
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4d13a9
cmp dword [ebp + 0x24], 0
je 0x4d11fb
lea eax, [ebp - 0x228]
or edi, 1
push eax
lea eax, [ebp - 0x260]
mov dword [ebp - 0x25c], edi
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004c1eef
add esp, 0xc
lea ecx, [ebp + 0x14]
push dword [eax]
call fcn.004caafe
mov byte [ebp - 0x255], bl
test al, al
jne 0x4d1202
mov byte [ebp - 0x255], 1
mov eax, dword [ebp - 0x25c]
test al, 1
je 0x4d1223
mov ecx, dword [ebp - 0x26c]
and eax, 0xfffffffe
mov dword [ebp - 0x25c], eax
lea ecx, [ecx - 0x10]
call fcn.004b04f5
cmp byte [ebp - 0x255], 0
je 0x4d13a3
sub esp, 0x18
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
call fcn.004d1d76
push 0x547988
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.004c1eef
add esp, 0xc
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004c1eef
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call fcn.004d10ef
mov ecx, dword [ebp - 0x280]
add esp, 0x24
add ecx, 0xfffffff0
mov edi, eax
call fcn.004b04f5
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
call fcn.004b04f5
test edi, edi
je 0x4d13c7
jmp 0x4d13a3
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.004c1eef
add esp, 0xc
push 0x80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.004b04f5
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.004c1eef
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x274]
mov edi, eax
add ecx, 0xfffffff0
call fcn.004b04f5
test edi, edi
jne 0x4d13a3
call fcn.004afb89
push eax
lea ecx, [ebp - 0x268]
call fcn.004aef66
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
lea eax, [ebp - 0x268]
push str._s_s_d__x
push eax
call fcn.004afaac
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.004c1eef
mov edi, dword [ebp - 0x268]
push edi
push dword [eax]
call fcn.004e2705
mov ecx, dword [ebp - 0x27c]
add esp, 0x28
add ecx, 0xfffffff0
mov ebx, eax
call fcn.004b04f5
test ebx, ebx
jne 0x4d1399
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4d139b
xor ebx, ebx
lea ecx, [edi - 0x10]
call fcn.004b04f5
mov edi, dword [ebp - 0x25c]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4d117a
xor ebx, ebx
inc ebx
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esi - 0x10]
call fcn.004b04f5
lea ecx, [ebp + 0x14]
call fcn.004d1f24
lea ecx, [ebp + 0x14]
call fcn.004d1f24
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret