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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4957f9
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x238
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 - 0x23c], ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 4], 0
push 0x50
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00474130
add esp, 0xc
push 0x49a1ac
push 0x4e
lea ecx, [ebp - 0x218]
push ecx
push 0x49a1c4
push 0x49a1cc
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x49a1d4
lea eax, [ebp - 0x218]
push eax
call fcn.004749a0
add esp, 8
test eax, eax
jne 0x409a10
push 0x50
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.00474130
add esp, 0xc
push 0x49a1dc
push 0x4e
lea edx, [ebp - 0x218]
push edx
push 0x49a1f4
push 0x49a208
push 0x49a210
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x28
push 0
lea eax, [ebp - 0x98]
push eax
call fcn.00474130
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add ecx, 0xe
mov dword [ebp - 0x22c], ecx
push 0x49a218
mov edx, dword [ebp - 0x22c]
push edx
call fcn.004049f0
add esp, 8
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x409a65
xor eax, eax
jmp 0x409dba
mov ecx, dword [ebp - 0x22c]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x22c]
add edx, 2
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 0x49a21c
push 0x40
lea ecx, [ebp - 0x218]
push ecx
call fcn.00474a90
add esp, 4
lea edx, [ebp + eax - 0x218]
push edx
call fcn.00476cb6
add esp, 0x10
push 4
push 0
mov eax, dword [ebp - 0x22c]
push eax
call fcn.00474130
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add ecx, 0xe
mov dword [ebp - 0x22c], ecx
push 0x49a224
mov edx, dword [ebp - 0x22c]
push edx
call fcn.004049f0
add esp, 8
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x22c]
add edx, 4
push edx
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00474a90
add esp, 4
lea ecx, [ebp + eax - 0x218]
push ecx
call fcn.00474a28
add esp, 0xc
push 0x49a228
push 0x49a230
call fcn.00474a90
add esp, 4
add eax, 2
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.00474a90
add esp, 4
lea eax, [ebp + eax - 0x218]
push eax
call fcn.00474a28
add esp, 0xc
push 0xa0
push 0
lea ecx, [ebp - 0x198]
push ecx
call fcn.00474130
add esp, 0xc
push 0x50
lea edx, [ebp - 0x198]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 3
push 0
push 7
push accept
lea ecx, [ebp - 0x198]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x409c11
mov dword [ebp - 0x21c], 0
mov eax, 1
jmp 0x409dba
push 0x8400
call fcn.0047371f
add esp, 4
mov dword [ebp - 0x248], eax
mov edx, dword [ebp - 0x248]
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x224], eax
push 0x100
push 0
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.00474130
add esp, 0xc
push 0x49a238
push str.MP3SENDDATAOK
call fcn.00474a90
add esp, 4
add eax, 2
push eax
mov edx, dword [ebp - 0x224]
push edx
call fcn.00474a28
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00474a90
add esp, 4
add eax, 2
push eax
mov edx, dword [ebp - 0x224]
add edx, 0x14
push edx
call fcn.00474a28
add esp, 0xc
push 0
push 0x100
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll_send
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0x100
je 0x409cf1
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x234]
push eax
call fcn.00477380
add esp, 4
mov eax, 1
jmp 0x409dba
cmp dword [ebp - 0x228], 0
jle 0x409d77
cmp dword [ebp - 0x228], 0
jle 0x409d40
mov dword [ebp - 0x220], 0
push 0
lea ecx, [ebp - 0x220]
push ecx
push 0x8000
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409d35
jmp 0x409d77
cmp dword [ebp - 0x220], 0
ja 0x409d40
jmp 0x409d77
push 0
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WS2_32.dll_send
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jg 0x409d72
mov dword [ebp - 0x228], 0
jmp 0x409cf1
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x238]
push edx
call fcn.004766e5
add esp, 4
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409dae
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