Function at 0x4d2dc6
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x55e0a0]
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.004af106
mov esi, dword [ebp - 0x260]
cmp dword [esi - 0xc], ebx
je 0x4d30b1
push 0x54ade8
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.004c1fd0
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.004b05d5
cmp dword [ebp - 0x264], 0xffffffff
jne 0x4d2e51
inc ebx
jmp 0x4d30aa
test byte [ebp - 0x254], 0x10
lea eax, [ebp - 0x228]
je 0x4d2f85
push 0x54ae00
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4d3080
push 0x54ae04
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4d3080
cmp dword [ebp + 0x24], 0
je 0x4d2ed2
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.004c1fd0
add esp, 0xc
lea ecx, [ebp + 0x14]
push dword [eax]
call fcn.004cb7dd
mov byte [ebp - 0x255], bl
test al, al
jne 0x4d2ed9
mov byte [ebp - 0x255], 1
mov eax, dword [ebp - 0x25c]
test al, 1
je 0x4d2efa
mov ecx, dword [ebp - 0x26c]
and eax, 0xfffffffe
mov dword [ebp - 0x25c], eax
lea ecx, [ecx - 0x10]
call fcn.004b05d5
cmp byte [ebp - 0x255], 0
je 0x4d307a
sub esp, 0x18
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
call fcn.004d3acd
push 0x549ba8
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.004c1fd0
add esp, 0xc
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004c1fd0
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call fcn.004d2dc6
mov ecx, dword [ebp - 0x280]
add esp, 0x24
add ecx, 0xfffffff0
mov edi, eax
call fcn.004b05d5
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
call fcn.004b05d5
test edi, edi
je 0x4d309e
jmp 0x4d307a
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.004c1fd0
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.004b05d5
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.004c1fd0
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.004b05d5
test edi, edi
jne 0x4d307a
call fcn.004afc69
push eax
lea ecx, [ebp - 0x268]
call fcn.004af046
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.004afb8c
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.004c1fd0
mov edi, dword [ebp - 0x268]
push edi
push dword [eax]
call fcn.004e46a5
mov ecx, dword [ebp - 0x27c]
add esp, 0x28
add ecx, 0xfffffff0
mov ebx, eax
call fcn.004b05d5
test ebx, ebx
jne 0x4d3070
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4d3072
xor ebx, ebx
lea ecx, [edi - 0x10]
call fcn.004b05d5
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 0x4d2e51
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.004b05d5
lea ecx, [ebp + 0x14]
call fcn.004d3c7b
lea ecx, [ebp + 0x14]
call fcn.004d3c7b
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dbbe3
mov esp, ebp
pop ebp
ret