Function at 0x4ca737
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x5520a0]
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.004a6826
mov esi, dword [ebp - 0x260]
cmp dword [esi - 0xc], ebx
je 0x4caa22
push 0x52cb98
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.004b96f4
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.004a7cf5
cmp dword [ebp - 0x264], 0xffffffff
jne 0x4ca7c2
inc ebx
jmp 0x4caa1b
test byte [ebp - 0x254], 0x10
lea eax, [ebp - 0x228]
je 0x4ca8f6
push 0x528690
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4ca9f1
push 0x52867c
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4ca9f1
cmp dword [ebp + 0x24], 0
je 0x4ca843
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.004b96f4
add esp, 0xc
lea ecx, [ebp + 0x14]
push dword [eax]
call fcn.004c3150
mov byte [ebp - 0x255], bl
test al, al
jne 0x4ca84a
mov byte [ebp - 0x255], 1
mov eax, dword [ebp - 0x25c]
test al, 1
je 0x4ca86b
mov ecx, dword [ebp - 0x26c]
and eax, 0xfffffffe
mov dword [ebp - 0x25c], eax
lea ecx, [ecx - 0x10]
call fcn.004a7cf5
cmp byte [ebp - 0x255], 0
je 0x4ca9eb
sub esp, 0x18
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
call fcn.004cb43e
push 0x53e748
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.004b96f4
add esp, 0xc
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004b96f4
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call fcn.004ca737
mov ecx, dword [ebp - 0x280]
add esp, 0x24
add ecx, 0xfffffff0
mov edi, eax
call fcn.004a7cf5
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
call fcn.004a7cf5
test edi, edi
je 0x4caa0f
jmp 0x4ca9eb
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.004b96f4
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.004a7cf5
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.004b96f4
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.004a7cf5
test edi, edi
jne 0x4ca9eb
call fcn.004a7389
push eax
lea ecx, [ebp - 0x268]
call fcn.004a6766
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x228]
push eax
push esi
lea eax, [ebp - 0x268]
push 0x52cb9c
push eax
call fcn.004a72ac
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.004b96f4
mov edi, dword [ebp - 0x268]
push edi
push dword [eax]
call fcn.004d9c75
mov ecx, dword [ebp - 0x27c]
add esp, 0x28
add ecx, 0xfffffff0
mov ebx, eax
call fcn.004a7cf5
test ebx, ebx
jne 0x4ca9e1
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4ca9e3
xor ebx, ebx
lea ecx, [edi - 0x10]
call fcn.004a7cf5
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 0x4ca7c2
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.004a7cf5
lea ecx, [ebp + 0x14]
call fcn.004cb5ec
lea ecx, [ebp + 0x14]
call fcn.004cb5ec
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d11b3
mov esp, ebp
pop ebp
ret