Function at 0x409de0
Capabilities:
Create directory
Download and write a file
Read .ini file
Read and send data from client to server
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495821
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x264
mov eax, dword [0x4cf0c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 4], 0
push 0x50
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.00474130
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add ecx, 0x1d
mov dword [ebp - 0x250], ecx
push 0x49a258
mov edx, dword [ebp - 0x250]
push edx
call fcn.004049f0
add esp, 8
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
jne 0x409f10
push 0x49a260
push 0x4e
lea ecx, [ebp - 0x240]
push ecx
push 0x49a278
push 0x49a280
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x49a288
lea eax, [ebp - 0x240]
push eax
call fcn.004749a0
add esp, 8
test eax, eax
jne 0x409eff
push 0x50
push 0
lea ecx, [ebp - 0x240]
push ecx
call fcn.00474130
add esp, 0xc
push 0x49a290
push 0x4e
lea edx, [ebp - 0x240]
push edx
push 0x49a2a8
push 0x49a2bc
push 0x49a2c4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x409f35
push 0x49a2cc
push str.d:cacheRing
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea ecx, [ebp - 0x240]
push ecx
call fcn.00474a28
add esp, 0xc
push 0x28
push 0
lea edx, [ebp - 0x98]
push edx
call fcn.00474130
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, 0xe
mov dword [ebp - 0x250], eax
push 0x49a2ec
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004049f0
add esp, 8
mov dword [ebp - 0x268], eax
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x250], edx
cmp dword [ebp - 0x250], 0
je 0x40a0d3
mov eax, dword [ebp - 0x250]
add eax, 2
push eax
mov ecx, dword [ebp - 0x250]
add ecx, 2
push ecx
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea edx, [ebp - 0x98]
push edx
call fcn.00474a28
add esp, 0xc
push 4
push 0
lea eax, [ebp - 0x98]
push eax
call fcn.00474a90
add esp, 4
lea ecx, [ebp + eax - 0x9c]
push ecx
call fcn.00474130
add esp, 0xc
lea edx, [ebp - 0x98]
push edx
push 0x49a2f0
push 0x40
lea eax, [ebp - 0x240]
push eax
call fcn.00474a90
add esp, 4
lea ecx, [ebp + eax - 0x240]
push ecx
call fcn.00476cb6
add esp, 0x10
push 0
lea edx, [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 4
push 0
mov eax, dword [ebp - 0x250]
push eax
call fcn.00474130
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add ecx, 0xe
mov dword [ebp - 0x250], ecx
push 0x49a2f8
mov edx, dword [ebp - 0x250]
push edx
call fcn.004049f0
add esp, 8
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x250]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x250]
add edx, 4
push edx
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00474a90
add esp, 4
lea ecx, [ebp + eax - 0x240]
push ecx
call fcn.00474a28
add esp, 0xc
push 0x49a2fc
push 0x49a304
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea edx, [ebp - 0x240]
push edx
call fcn.00474a90
add esp, 4
lea eax, [ebp + eax - 0x240]
push eax
call fcn.00474a28
add esp, 0xc
jmp 0x40a1cc
mov ecx, dword [ebp + 0xc]
add ecx, 0x1d
mov dword [ebp - 0x250], ecx
push str.Ring
mov edx, dword [ebp - 0x250]
push edx
call fcn.004049f0
add esp, 8
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x250]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x250]
add edx, 4
push edx
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00474a28
add esp, 0xc
push 4
push 0
lea ecx, [ebp - 0x98]
push ecx
call fcn.00474a90
add esp, 4
lea edx, [ebp + eax - 0x9c]
push edx
call fcn.00474130
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push str._s_
push 0x40
lea ecx, [ebp - 0x240]
push ecx
call fcn.00474a90
add esp, 4
lea edx, [ebp + eax - 0x240]
push edx
call fcn.00476cb6
add esp, 0x10
push 0
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp + 0xc]
add ecx, 0x1c
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x1c
push edx
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00474a90
add esp, 4
lea ecx, [ebp + eax - 0x240]
push ecx
call fcn.00474a28
add esp, 0xc
push 0xa0
push 0
lea edx, [ebp - 0x138]
push edx
call fcn.00474130
add esp, 0xc
push 0x50
lea eax, [ebp - 0x138]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x240]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 2
push 0
push 7
push 0x40000000
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0x40a240
mov dword [ebp - 0x244], 0
mov eax, 1
jmp 0x40a3c3
push 0x8400
call fcn.0047371f
add esp, 4
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x248], ecx
push 0x100
push 0
mov edx, dword [ebp - 0x248]
push edx
call fcn.00474130
add esp, 0xc
push 0x49a31c
push str.MP3SAVEDATAOK
call fcn.00474a90
add esp, 4
add eax, 2
push eax
mov eax, dword [ebp - 0x248]
push eax
call fcn.00474a28
add esp, 0xc
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x240]
push edx
call fcn.00474a90
add esp, 4
add eax, 2
push eax
mov eax, dword [ebp - 0x248]
add eax, 0x14
push eax
call fcn.00474a28
add esp, 0xc
push 0
push 0x100
mov ecx, dword [ebp - 0x248]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll_send
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0x100
je 0x40a320
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
push ecx
call fcn.00477380
add esp, 4
mov eax, 1
jmp 0x40a3c3
cmp dword [ebp - 0x24c], 0
jle 0x40a380
push 0
push 0x8000
mov edx, dword [ebp - 0x248]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WS2_32.dll_recv
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jle 0x40a37e
push 0
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x13c], 0
ja 0x40a37e
jmp 0x40a380
jmp 0x40a320
mov edx, dword [ebp - 0x248]
mov dword [ebp - 0x25c], edx
mov eax, dword [ebp - 0x25c]
push eax
call fcn.004766e5
add esp, 4
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a3b7
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00474590
mov esp, ebp
pop ebp
ret 0xc