Function at 0x409670
Capabilities:
Delete file
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 0x4957d1
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x100
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 - 0x108], ecx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0
push 0x50
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.00474130
add esp, 0xc
push 0x49a11c
push 0x4e
lea ecx, [ebp - 0x68]
push ecx
push 0x49a134
push 0x49a13c
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x49a144
lea eax, [ebp - 0x68]
push eax
call fcn.004749a0
add esp, 8
test eax, eax
jne 0x409731
push 0x50
push 0
lea ecx, [ebp - 0x68]
push ecx
call fcn.00474130
add esp, 0xc
push 0x49a14c
push 0x4e
lea edx, [ebp - 0x68]
push edx
push 0x49a164
push 0x49a178
push 0x49a180
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0xfc], 0
push 0x28
push 0
lea eax, [ebp - 0xf8]
push eax
call fcn.00474130
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add ecx, 0x1d
mov dword [ebp - 0xfc], ecx
push 0x49a188
mov edx, dword [ebp - 0xfc]
push edx
call fcn.004049f0
add esp, 8
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
add ecx, 2
push ecx
mov edx, dword [ebp - 0xfc]
add edx, 2
push edx
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00474a28
add esp, 0xc
push 4
push 0
lea ecx, [ebp - 0xf8]
push ecx
call fcn.00474a90
add esp, 4
lea edx, [ebp + eax - 0xfc]
push edx
call fcn.00474130
add esp, 0xc
lea eax, [ebp - 0xf8]
push eax
push 0x49a18c
push 0x40
lea ecx, [ebp - 0x68]
push ecx
call fcn.00474a90
add esp, 4
lea edx, [ebp + eax - 0x68]
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 - 0x68]
push edx
call fcn.00474a90
add esp, 4
lea eax, [ebp + eax - 0x68]
push eax
call fcn.00474a28
add esp, 0xc
push 0xc00
call fcn.0047371f
add esp, 4
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x100], ecx
mov edx, dword [ebp - 0x100]
mov dword [ebp - 0x70], edx
push 0
push 0
push 3
push 0
push 7
push accept
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x6c], eax
push 0x100
push 0
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.00474130
add esp, 0xc
push 0x49a194
push str.DELETEMP3OK
call fcn.00474a90
add esp, 4
add eax, 2
push eax
mov edx, dword [ebp - 0x70]
push edx
call fcn.00474a28
add esp, 0xc
push 0
push 0x100
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll_send
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x6c], 0xffffffff
je 0x4098d6
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x104], ecx
mov edx, dword [ebp - 0x104]
push edx
call fcn.00477380
add esp, 4
jmp 0x4098fd
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