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

Disassembly:
mov eax, 0x4e233d
call fcn.004aef44
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 0x4713c7
cmp dword [0x523ba4], edi
je 0x4713c7
push ecx
mov dword [ebp - 0x1c], edi
mov ecx, esp
mov dword [ebp - 0x14], esp
push str._tu_DATUP
call fcn.004c5f18
mov eax, dword [0x523ba4]
push ecx
add eax, 0x10
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 1
call fcn.004c5c1f
and byte [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00471b31
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.004c5c1f
push 0x5c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004c2ca0
lea eax, [esi + 0xa4]
push eax
lea eax, [ebp - 0x2c]
push 0x510870
push eax
call fcn.004c61b3
mov esi, str..ts2
mov byte [ebp - 4], 4
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004c613f
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.004c62c2
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.004c5eaa
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004c5eaa
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004c5c1f
call fcn.0040ca76
cmp eax, edi
pop ecx
jne 0x471026
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004c5eaa
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004c5eaa
push 1
pop esi
jmp 0x4713c9
push 0x10
call fcn.004c512e
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, edi
mov byte [ebp - 4], 6
je 0x471042
mov ecx, eax
call fcn.0047f81c
mov edi, eax
push 0x523a30
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 3
mov dword [edi + 4], 1
call fcn.004c6033
mov eax, dword [ebx + 4]
test eax, eax
jl 0x47119c
cmp eax, 1
jle 0x47113b
cmp eax, 2
je 0x4710dd
cmp eax, 3
jne 0x47119c
lea eax, [ebx + 8]
lea ecx, [edi + 8]
push eax
call fcn.004c5fe3
push 0x5c
lea ecx, [edi + 8]
call fcn.004c2ca0
mov eax, dword [ebp - 0x18]
add eax, 0xa4
push eax
lea eax, [ebp - 0x28]
push 0x510870
push eax
call fcn.004c61b3
push esi
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
push eax
call fcn.004c613f
push eax
lea ecx, [edi + 8]
mov byte [ebp - 4], 0xc
call fcn.004c62c2
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.004c5eaa
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
jmp 0x471197
lea eax, [ebx + 8]
lea ecx, [edi + 8]
push eax
call fcn.004c5fe3
push 0x2f
lea ecx, [edi + 8]
call fcn.004c2ca0
mov eax, dword [ebp - 0x18]
add eax, 0xa4
push eax
lea eax, [ebp - 0x34]
push 0x511270
push eax
call fcn.004c61b3
push esi
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 9
push eax
call fcn.004c613f
push eax
lea ecx, [edi + 8]
mov byte [ebp - 4], 0xa
call fcn.004c62c2
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 9
call fcn.004c5eaa
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
jmp 0x471197
lea eax, [ebx + 8]
lea ecx, [edi + 8]
push eax
call fcn.004c5fe3
push 0x2f
lea ecx, [edi + 8]
call fcn.004c2ca0
mov eax, dword [ebp - 0x18]
add eax, 0xa4
push eax
lea eax, [ebp - 0x14]
push 0x511270
push eax
call fcn.004c61b3
push esi
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 7
push eax
call fcn.004c613f
push eax
lea ecx, [edi + 8]
mov byte [ebp - 4], 8
call fcn.004c62c2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.004c5eaa
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004c5eaa
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x471205
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.004c5f18
mov eax, dword [0x523ba4]
push ebx
lea ecx, [eax + 0x60]
call fcn.0047bc73
push ecx
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x523a30
call fcn.004c5f18
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 0x4712e6
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
sub eax, 0
je 0x4712b4
dec eax
je 0x471283
dec eax
je 0x471252
dec eax
jne 0x4712e6
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push ebx
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.004c5c1f
push ecx
mov byte [ebp - 4], 0x11
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.004c5f18
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004719fc
jmp 0x4712e3
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push ebx
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.004c5c1f
push ecx
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.004c5f18
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004717f0
jmp 0x4712e3
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push ebx
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.004c5c1f
push ecx
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.004c5f18
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004715eb
jmp 0x4712e3
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push ebx
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.004c5c1f
push ecx
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.004c5f18
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004713e8
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x4712f2
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4712fd
and dword [eax + 0x38], 0
cmp dword [ebp - 0x1c], 0
je 0x4713aa
lea ecx, [ebp - 0xc4]
call fcn.0040ae8e
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 0x12
call fcn.004c5fe3
lea eax, [ebp + 8]
lea ecx, [ebp - 0xbc]
push eax
call fcn.004c5fe3
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.0040afe1
test eax, eax
jne 0x47139b
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.0040af5a
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004c5eaa
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004c5eaa
mov esi, dword [ebp - 0x30]
jmp 0x4713c9
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004c5eaa
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc