Function at 0x50c810
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xfffffffffffffffe
push 0x673270
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 0x214]
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp + 0x21c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 0x224]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x228]
mov dword [ebp - 0x28], edx
test ebx, ebx
je 0x50cdbd
cmp byte [ebx], 0
je 0x50cdbd
mov dword [ebp - 0x1c], 0
push 0xb70
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x50cdbd
lea esi, [edi + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.004e24e0
add esp, 4
push 0x66da58
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 4], 0
lea ebx, [edi + 0xa30]
push ebx
push esi
call fcn.004e0820
add esp, 8
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x50cda3
lea ecx, [ecx]
mov dword [ebp - 0x44], 1
add edi, 0xa5c
cmp byte [edi], 0x2e
jne 0x50c975
mov ecx, 0x66d664
mov eax, edi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x50c930
test dl, dl
je 0x50c92c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x50c930
add eax, 2
add ecx, 2
test dl, dl
jne 0x50c910
xor eax, eax
jmp 0x50c935
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x50c969
mov ecx, 0x66da5c
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x50c960
test dl, dl
je 0x50c95c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x50c960
add eax, 2
add ecx, 2
test dl, dl
jne 0x50c940
xor eax, eax
jmp 0x50c965
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x50c975
mov dword [ebp - 0x44], 0
jmp 0x50cc8e
mov esi, dword [ebp - 0x20]
add esi, 8
mov eax, dword [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.004e24e0
add esp, 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebx]
test al, 0x10
jne 0x50cb81
mov esi, 1
mov dword [ebp - 0x34], esi
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x50c9d6
push edi
push ebx
call fcn.004e1140
mov esi, eax
mov dword [ebp - 0x34], esi
push 0x63275c
push ebx
call fcn.004dd620
add esp, 0x10
test eax, eax
jne 0x50c9d6
mov dword [ebp - 0x34], eax
jmp 0x50cc8e
test esi, esi
je 0x50cc8e
mov ebx, dword [ebp + 0x230]
test ebx, ebx
je 0x50ca66
mov dword [ebp - 0x38], 0
mov byte [ebp + 0x104], 0
push 0x103
push 0
lea ecx, [ebp + 0x105]
push ecx
call fcn.005dfd60
push 1
push 0
push 0x2c
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp + 0x104]
push eax
push ebx
call fcn.004e1380
add esp, 0x24
cmp dword [ebp - 0x38], 0xffffffff
je 0x50ca66
push edi
lea ecx, [ebp + 0x104]
push ecx
call fcn.004e1140
add esp, 8
cmp eax, 1
jne 0x50ca4a
mov dword [ebp - 0x34], 0
jmp 0x50cc8e
push 1
push 0
push 0x2c
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp + 0x104]
push eax
push ebx
call fcn.004e1380
add esp, 0x18
jmp 0x50ca23
test esi, esi
je 0x50cc8e
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x50ca77
inc dword [eax]
cmp dword [ebp + 0x220], 0
je 0x50cc8e
mov ebx, dword [ebp - 0x20]
lea esi, [ebx + 8]
push 0
push esi
call fcn.004da790
add esp, 8
mov edi, eax
test byte [ebx + 0xa30], 7
je 0x50caac
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp + 0x22c], 0
je 0x50caf7
test edi, edi
je 0x50caf7
push 0x627ce8
push edi
call fcn.004dd620
add esp, 8
test eax, eax
je 0x50cadd
push 0x627ce0
push edi
call fcn.004dd620
add esp, 8
test eax, eax
jne 0x50caf7
push esi
call fcn.0051b3b0
add esp, 4
test eax, eax
je 0x50caf7
push 1
push 0
push esi
call fcn.0050c170
add esp, 0xc
push esi
call fcn.004e0670
add esp, 4
mov edi, eax
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x50cb5b
cmp dword [ebp + 0x218], eax
je 0x50cb5b
push esi
call fcn.005016e0
add esp, 4
test eax, eax
jne 0x50cb78
push esi
call fcn.0050c680
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call fcn.004e0670
add esp, 4
mov edi, eax
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x50cb5b
mov dword [ebp - 0x1c], 1
push eax
push esi
call fcn.005010e0
cmp edi, 1
jne 0x50cc8e
cmp dword [ebp - 0x24], 0
je 0x50cc8e
mov eax, dword [ebp - 0x24]
inc dword [eax]
jmp 0x50cc8e
mov dword [ebp - 0x40], 1
jmp 0x50cb64
test eax, 0x400
jne 0x50cc8e
xor esi, esi
mov dword [ebp - 0x48], esi
mov ebx, dword [ebp + 0x230]
cmp ebx, esi
je 0x50cc00
mov dword [ebp - 0x2c], esi
mov byte [ebp], 0
push 0x103
push esi
lea ecx, [ebp + 1]
push ecx
call fcn.005dfd60
push 1
push esi
push 0x2c
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp]
push eax
push ebx
call fcn.004e1380
add esp, 0x24
cmp dword [ebp - 0x2c], 0xffffffff
je 0x50cc00
push edi
lea ecx, [ebp]
push ecx
call fcn.004e1140
add esp, 8
cmp eax, 1
jne 0x50cbe7
mov dword [ebp - 0x48], eax
jmp 0x50cc8e
push 1
push 0
push 0x2c
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp]
push eax
push ebx
call fcn.004e1380
add esp, 0x18
jmp 0x50cbc7
test esi, esi
jne 0x50cc8e
mov esi, dword [ebp - 0x3c]
test esi, esi
jne 0x50cc31
push esi
push esi
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 0x220]
push eax
push esi
mov ecx, dword [ebp + 0x218]
push ecx
mov edx, dword [ebp - 0x20]
add edx, 8
push edx
jmp 0x50cc86
push 0x63275c
push esi
call fcn.004dd620
add esp, 8
push 0
push 0
test eax, eax
jne 0x50cc68
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0x220]
push edx
push 0
mov eax, dword [ebp + 0x218]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 8
push ecx
jmp 0x50cc86
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x220]
push ecx
push esi
mov edx, dword [ebp + 0x218]
push edx
mov eax, dword [ebp - 0x20]
add eax, 8
push eax
call fcn.0050c810
or dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x20]
lea ebx, [edi + 0xa30]
push ebx
mov ecx, dword [edi + 4]
push ecx
call fcn.004d5ad0
add esp, 8
test eax, eax
jne 0x50c8f0
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x50cce5
push 0x66da58
push esi
call fcn.004dd620
add esp, 8
test eax, eax
je 0x50cce5
push 0x63275c
push esi
call fcn.004dd620
add esp, 8
test eax, eax
jne 0x50cda3
cmp dword [ebp + 0x220], 0
je 0x50cda3
mov esi, dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x50cd0b
cmp byte [esi + eax - 1], 0x2e
je 0x50cda3
push 0x80
mov ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call edi
mov esi, eax
test esi, esi
jne 0x50cda3
cmp dword [ebp + 0x218], eax
je 0x50cda3
push ebx
call fcn.005016e0
add esp, 4
test eax, eax
jne 0x50cda3
push eax
push 0x64d0e8
push ebx
call fcn.004f5880
add esp, 0xc
cmp eax, 0xffffffff
je 0x50cd77
push 0x64d0d8
call fcn.0050c680
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x50cda3
mov dword [ebp - 0x1c], 1
push esi
push ebx
call fcn.005010e0
jmp 0x50cda3
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x50cdb8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x1c]
jmp 0x50cdbf
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0x20c
mov esp, ebp
pop ebp
ret 0x20