Function at 0x472529
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
mov eax, 0x4e3b25
call fcn.004b0604
sub esp, 0xb8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp + 0xc]
push 1
xor edi, edi
pop eax
cmp ebx, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], eax
je 0x4729d2
cmp dword [0x524bc4], edi
je 0x4729d2
push ecx
mov dword [ebp - 0x1c], edi
mov ecx, esp
mov dword [ebp - 0x14], esp
push str._tu_DATUP
call fcn.004c75d8
mov eax, dword [0x524bc4]
push ecx
add eax, 0x10
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 1
call fcn.004c72df
and byte [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0047313c
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.004c72df
push 0x5c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004c4360
lea eax, [esi + 0xa4]
push eax
lea eax, [ebp - 0x2c]
push 0x511870
push eax
call fcn.004c7873
mov esi, str..ts2
mov byte [ebp - 4], 4
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004c77ff
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.004c7982
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.004c756a
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004c756a
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004c72df
call fcn.0040c99a
cmp eax, edi
pop ecx
jne 0x472631
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004c756a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004c756a
push 1
pop esi
jmp 0x4729d4
push 0x10
call fcn.004c67ee
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, edi
mov byte [ebp - 4], 6
je 0x47264d
mov ecx, eax
call fcn.00480eda
mov edi, eax
push 0x524a50
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 3
mov dword [edi + 4], 1
call fcn.004c76f3
mov eax, dword [ebx + 4]
test eax, eax
jl 0x4727a7
cmp eax, 1
jle 0x472746
cmp eax, 2
je 0x4726e8
cmp eax, 3
jne 0x4727a7
lea eax, [ebx + 8]
lea ecx, [edi + 8]
push eax
call fcn.004c76a3
push 0x5c
lea ecx, [edi + 8]
call fcn.004c4360
mov eax, dword [ebp - 0x18]
add eax, 0xa4
push eax
lea eax, [ebp - 0x28]
push 0x511870
push eax
call fcn.004c7873
push esi
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
push eax
call fcn.004c77ff
push eax
lea ecx, [edi + 8]
mov byte [ebp - 4], 0xc
call fcn.004c7982
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.004c756a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
jmp 0x4727a2
lea eax, [ebx + 8]
lea ecx, [edi + 8]
push eax
call fcn.004c76a3
push 0x2f
lea ecx, [edi + 8]
call fcn.004c4360
mov eax, dword [ebp - 0x18]
add eax, 0xa4
push eax
lea eax, [ebp - 0x34]
push 0x512270
push eax
call fcn.004c7873
push esi
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 9
push eax
call fcn.004c77ff
push eax
lea ecx, [edi + 8]
mov byte [ebp - 4], 0xa
call fcn.004c7982
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 9
call fcn.004c756a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
jmp 0x4727a2
lea eax, [ebx + 8]
lea ecx, [edi + 8]
push eax
call fcn.004c76a3
push 0x2f
lea ecx, [edi + 8]
call fcn.004c4360
mov eax, dword [ebp - 0x18]
add eax, 0xa4
push eax
lea eax, [ebp - 0x14]
push 0x512270
push eax
call fcn.004c7873
push esi
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 7
push eax
call fcn.004c77ff
push eax
lea ecx, [edi + 8]
mov byte [ebp - 4], 8
call fcn.004c7982
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.004c756a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004c756a
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x472810
push ecx
mov dword [eax + 0x38], edi
mov ebx, esp
mov dword [ebp - 0x14], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.MSG_UPDATE_CLIENT_DATA
call fcn.004c75d8
mov eax, dword [0x524bc4]
push ebx
lea ecx, [eax + 0x60]
call fcn.0047d27e
push ecx
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x524a50
call fcn.004c75d8
mov ebx, dword [ebp + 0x10]
xor eax, eax
push eax
push ecx
mov edx, dword [ebx]
push ecx
fldz
mov ecx, ebx
mov byte [ebp - 4], 3
fstp qword [esp]
push eax
push eax
call dword [edx + 4]
cmp dword [ebx + 0xc], 0
jne 0x4728f1
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
sub eax, 0
je 0x4728bf
dec eax
je 0x47288e
dec eax
je 0x47285d
dec eax
jne 0x4728f1
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push ebx
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.004c72df
push ecx
mov byte [ebp - 4], 0x11
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.004c75d8
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00473007
jmp 0x4728ee
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push ebx
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.004c72df
push ecx
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.004c75d8
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00472dfb
jmp 0x4728ee
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push ebx
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.004c72df
push ecx
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.004c75d8
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00472bf6
jmp 0x4728ee
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push ebx
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.004c72df
push ecx
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.004c75d8
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004729f3
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x4728fd
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x472908
and dword [eax + 0x38], 0
cmp dword [ebp - 0x1c], 0
je 0x4729b5
lea ecx, [ebp - 0xc4]
call fcn.0040ada5
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 0x12
call fcn.004c76a3
lea eax, [ebp + 8]
lea ecx, [ebp - 0xbc]
push eax
call fcn.004c76a3
push 1
xor esi, esi
pop eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x9c], esi
call fcn.0040aef8
test eax, eax
jne 0x4729a6
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x30], esi
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 3
call fcn.0040ae71
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004c756a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004c756a
mov esi, dword [ebp - 0x30]
jmp 0x4729d4
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c756a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc