Function at 0x40aaf8
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x416030]
push ebx
push esi
push edi
mov edi, 0x41e7e0
mov dword [ebp - 4], eax
push str.cdn.dll
mov esi, 0x41d00c
push edi
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
mov ebx, 0x41e8e4
mov dword [ebp - 0x28], eax
push str.cdnvers.dat
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
mov dword [ebp - 0x24], eax
push str.src.dat
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
mov dword [ebp - 0x14], eax
push str.cdnaux.dll
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
add esp, 0x4c
push dword [ebp - 4]
call fcn.0040b19c
mov dword [ebp - 0x2c], eax
mov dword [esp], str.idnconv.dll
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
mov dword [ebp - 0x1c], eax
push str.idnconvs.dll
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
mov dword [ebp - 8], eax
push str.cdnup.exe
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
mov dword [ebp - 0xc], eax
push str.cdnuplib.dll
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
add esp, 0x4c
push dword [ebp - 4]
call fcn.0040b19c
mov dword [esp], str.cdnsign.dll
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
push str.cdnuc.exe
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
mov dword [ebp - 0x10], eax
push str.client.dll
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
mov dword [ebp - 0x18], eax
push str.CdnCli.exe
push edi
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
add esp, 0x4c
push dword [ebp - 4]
call fcn.0040b19c
mov dword [ebp - 0x20], eax
mov dword [esp], str.cdnload.exe
push edi
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
push 0x41d3a0
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
push str.cdnrepl.dat
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
push str.cdnrereg.dat
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
add esp, 0x4c
push dword [ebp - 4]
call fcn.0040b19c
mov dword [esp], str.cdnnews.dat
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
push str.cdncol.dll
push ebx
push esi
lea eax, [ebp - 4]
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
push str.cdnbl.dat
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
push str.cdnswp.exe
push ebx
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
add esp, 0x4c
push dword [ebp - 4]
call fcn.0040b19c
and byte [ebp - 0x130], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12f]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x130]
push eax
call fcn.0040c770
lea eax, [ebp - 0x130]
push str.Images_
push eax
call fcn.0040c780
lea eax, [ebp - 0x130]
push str.popup.bmp
push eax
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
lea eax, [ebp - 0x130]
push str.news.ico
push eax
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
lea eax, [ebp - 0x130]
push str.soft.ico
push eax
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
add esp, 0x4c
push dword [ebp - 4]
call fcn.0040b19c
lea eax, [ebp - 0x130]
mov dword [esp], str.enter.ico
push eax
lea eax, [ebp - 4]
push esi
push eax
call fcn.00409ba7
push dword [ebp - 4]
call fcn.0040b19c
add esp, 0x14
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
and byte [ebp - 0x234], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x233]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.0040c770
lea eax, [ebp - 0x234]
push str.Update_
push eax
call fcn.0040c780
lea eax, [ebp - 0x234]
push eax
call fcn.0040bac2
xor esi, esi
add esp, 0x14
cmp dword [0x41e9f0], esi
jne 0x40aea2
and byte [ebp - 0x338], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x337]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040c620
mov edi, eax
lea eax, [ebp - 0x338]
push ebx
push eax
call fcn.0040c770
and byte [ebp + edi - 0x339], 0
and byte [ebp + edi - 0x33a], 0
and byte [ebp + edi - 0x33b], 0
and byte [ebp + edi - 0x33c], 0
lea eax, [ebp + edi - 0x338]
lea eax, [ebp - 0x338]
push eax
call fcn.0040b874
add esp, 0x10
cmp dword [ebp - 0x28], esi
je 0x40aed7
cmp dword [ebp - 0x24], esi
je 0x40aed7
cmp dword [ebp - 0x14], esi
je 0x40aed7
cmp dword [ebp - 0x2c], esi
je 0x40aed7
cmp dword [ebp - 0x1c], esi
je 0x40aed7
cmp dword [ebp - 8], esi
je 0x40aed7
cmp dword [ebp - 0xc], esi
je 0x40aed7
cmp dword [ebp - 0x10], esi
je 0x40aed7
cmp dword [ebp - 0x18], esi
je 0x40aed7
cmp dword [ebp - 0x20], esi
je 0x40aed7
push 1
pop esi
lea ecx, [ebp - 4]
call fcn.00401dbd
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret