Function at 0x4e41a2
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x57a120]
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.004c6681
mov esi, dword [ebp - 0x260]
cmp dword [esi - 0xc], ebx
je 0x4e448d
push 0x563188
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.004dca78
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.004c77e2
cmp dword [ebp - 0x264], 0xffffffff
jne 0x4e422d
inc ebx
jmp 0x4e4486
test byte [ebp - 0x254], 0x10
lea eax, [ebp - 0x228]
je 0x4e4361
push 0x5631a0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4e445c
push 0x5631a4
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4e445c
cmp dword [ebp + 0x24], 0
je 0x4e42ae
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.004dca78
add esp, 0xc
lea ecx, [ebp + 0x14]
push dword [eax]
call fcn.004dcb94
mov byte [ebp - 0x255], bl
test al, al
jne 0x4e42b5
mov byte [ebp - 0x255], 1
mov eax, dword [ebp - 0x25c]
test al, 1
je 0x4e42d6
mov ecx, dword [ebp - 0x26c]
and eax, 0xfffffffe
mov dword [ebp - 0x25c], eax
lea ecx, [ecx - 0x10]
call fcn.004c77e2
cmp byte [ebp - 0x255], 0
je 0x4e4456
sub esp, 0x18
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
call fcn.004e4fe9
push 0x561a58
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.004dca78
add esp, 0xc
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004dca78
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call fcn.004e41a2
mov ecx, dword [ebp - 0x280]
add esp, 0x24
add ecx, 0xfffffff0
mov edi, eax
call fcn.004c77e2
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
call fcn.004c77e2
test edi, edi
je 0x4e447a
jmp 0x4e4456
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.004dca78
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.004c77e2
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.004dca78
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.004c77e2
test edi, edi
jne 0x4e4456
call fcn.004c5a90
push eax
lea ecx, [ebp - 0x268]
call fcn.004c65c1
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.004c6f31
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.004dca78
mov edi, dword [ebp - 0x268]
push edi
push dword [eax]
call fcn.004fbfec
mov ecx, dword [ebp - 0x27c]
add esp, 0x28
add ecx, 0xfffffff0
mov ebx, eax
call fcn.004c77e2
test ebx, ebx
jne 0x4e444c
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4e444e
xor ebx, ebx
lea ecx, [edi - 0x10]
call fcn.004c77e2
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 0x4e422d
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.004c77e2
lea ecx, [ebp + 0x14]
call fcn.004e5197
lea ecx, [ebp + 0x14]
call fcn.004e5197
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f3b66
mov esp, ebp
pop ebp
ret