Function at 0x409150
Capabilities:
Enumerate files on windows
Read .ini file
Read and send data from client to server
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4957a9
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x2a4
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 - 0x2ac], ecx
mov dword [ebp - 0x1fc], 0
mov byte [ebp - 0x201], 0
mov dword [ebp - 4], 0
push 0x50
push 0
lea eax, [ebp - 0x1f8]
push eax
call fcn.00474130
add esp, 0xc
push 0x49a06c
push 0x4e
lea ecx, [ebp - 0x1f8]
push ecx
push 0x49a084
push 0x49a08c
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x49a094
lea eax, [ebp - 0x1f8]
push eax
call fcn.004749a0
add esp, 8
test eax, eax
jne 0x409223
push 0x50
push 0
lea ecx, [ebp - 0x1f8]
push ecx
call fcn.00474130
add esp, 0xc
push 0x49a09c
push 0x4e
lea edx, [ebp - 0x1f8]
push edx
push 0x49a0b4
push 0x49a0c8
push 0x49a0d0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x298], 0
push 0x28
push 0
lea eax, [ebp - 0x290]
push eax
call fcn.00474130
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add ecx, 0x1d
mov dword [ebp - 0x298], ecx
push 0x49a0d8
mov edx, dword [ebp - 0x298]
push edx
call fcn.004049f0
add esp, 8
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x298], eax
mov ecx, dword [ebp - 0x298]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x298]
add edx, 2
push edx
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.00474a28
add esp, 0xc
push 4
push 0
lea ecx, [ebp - 0x290]
push ecx
call fcn.00474a90
add esp, 4
lea edx, [ebp + eax - 0x294]
push edx
call fcn.00474130
add esp, 0xc
lea eax, [ebp - 0x290]
push eax
push 0x49a0dc
push 0x40
lea ecx, [ebp - 0x1f8]
push ecx
call fcn.00474a90
add esp, 4
lea edx, [ebp + eax - 0x1f8]
push edx
call fcn.00476cb6
add esp, 0x10
mov eax, dword [ebp + 0xc]
add eax, 0x1c
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x1c
push ecx
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea edx, [ebp - 0x1f8]
push edx
call fcn.00474a90
add esp, 4
lea eax, [ebp + eax - 0x1f8]
push eax
call fcn.00474a28
add esp, 0xc
push 0xc00
call fcn.0047371f
add esp, 4
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b4]
mov dword [ebp - 0x29c], ecx
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x1fc], edx
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x1f8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0xffffffff
jne 0x409403
mov dword [ebp - 0x208], 0
push 0x100
push 0
mov edx, dword [ebp - 0x1fc]
push edx
call fcn.00474130
add esp, 0xc
push 0x49a0e4
push str.MP3LISTAFAIL
call fcn.00474a90
add esp, 4
add eax, 2
push eax
mov eax, dword [ebp - 0x1fc]
push eax
call fcn.00474a28
add esp, 0xc
push 0
push 0x100
mov ecx, dword [ebp - 0x1fc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll_send
mov dword [ebp - 0x200], eax
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x2a0], eax
mov ecx, dword [ebp - 0x2a0]
push ecx
call fcn.00477380
add esp, 4
mov eax, 1
jmp 0x409648
push 0x100
push 0
mov edx, dword [ebp - 0x1fc]
push edx
call fcn.00474130
add esp, 0xc
push 0x49a104
push str.MP3LISTAOK
call fcn.00474a90
add esp, 4
add eax, 2
push eax
mov eax, dword [ebp - 0x1fc]
push eax
call fcn.00474a28
add esp, 0xc
lea ecx, [ebp - 0x1f8]
push ecx
lea edx, [ebp - 0x1f8]
push edx
call fcn.00474a90
add esp, 4
add eax, 2
push eax
mov eax, dword [ebp - 0x1fc]
add eax, 0x14
push eax
call fcn.00474a28
add esp, 0xc
push 0
push 0x100
mov ecx, dword [ebp - 0x1fc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll_send
mov dword [ebp - 0x200], eax
cmp dword [ebp - 0x200], 0x100
je 0x4094b8
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x2a4]
push ecx
call fcn.00477380
add esp, 4
mov eax, 1
jmp 0x409648
push 0x800
push 0
mov edx, dword [ebp - 0x1fc]
push edx
call fcn.00474130
add esp, 0xc
push 0x320
mov eax, dword [ebp - 0x1fc]
push eax
mov ecx, 0x4d3be8
call fcn.00423950
mov ecx, dword [ebp - 0x1fc]
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x294], 0
movzx edx, byte [ebp - 0x201]
test edx, edx
jne 0x4095cb
push 0x50
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.00474130
add esp, 0xc
lea ecx, [ebp - 0x17c]
push ecx
lea edx, [ebp - 0x17c]
push edx
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00474a90
add esp, 4
lea ecx, [ebp + eax - 0x68]
push ecx
call fcn.00474a28
add esp, 0xc
push 0xa
push 0xc
mov edx, dword [ebp - 0x20c]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x210]
lea ecx, [eax + edx + 0x10]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.00474cdc
add esp, 4
push eax
call fcn.00477239
add esp, 0x10
mov eax, dword [ebp - 0x20c]
add eax, 1
imul eax, eax, 0xc
add eax, 0x10
mov dword [ebp - 0x294], eax
lea ecx, [ebp - 0x1a8]
push ecx
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4095b7
mov byte [ebp - 0x201], 1
mov eax, dword [ebp - 0x20c]
add eax, 1
mov dword [ebp - 0x20c], eax
jmp 0x409504
mov ecx, dword [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x294]
push edx
mov eax, dword [ebp - 0x210]
add eax, 0xc
push eax
mov ecx, 0x4d3be8
call fcn.00423950
push 0
mov ecx, dword [ebp - 0x294]
push ecx
mov edx, dword [ebp - 0x1fc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WS2_32.dll_send
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x1fc]
mov dword [ebp - 0x2a8], ecx
mov edx, dword [ebp - 0x2a8]
push edx
call fcn.00477380
add esp, 4
jmp 0x40963c
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