Function at 0x40c9d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov edi, dword [0x428520]
xor ebx, ebx
mov byte [esp + 0x16], bl
mov dword [esp + 0x10], edi
mov ebp, 1
mov ecx, dword [0x428764]
push ebx
lea eax, [esp + 0x1a]
push ebp
push eax
push ecx
call sub.WSOCK32.dll_recv
cmp eax, ebp
jge 0x40ca0f
cmp eax, 0xffffffff
je 0x40ca5f
cmp eax, ebx
je 0x40ca8a
mov edx, dword [0x428510]
mov al, byte [esp + 0x16]
inc edx
cmp al, 0xd
mov dword [0x428510], edx
je 0x40ca2f
cmp al, 0xa
je 0x40ca33
mov byte [edi + 0x428540], al
inc edi
cmp al, 0xa
jne 0x40c9ef
cmp edi, ebx
mov dword [esp + 0x10], edi
mov byte [edi + 0x428540], bl
mov dword [0x428520], ebx
je 0x40cab4
call fcn.0040cf50
cmp eax, 0xffffffff
jne 0x40ca9c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10c
ret
mov dword [esp + 0x10], edi
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
call fcn.0040dea0
cmp esi, 0x2733
jne 0x40ca51
mov dword [0x428520], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
mov dword [esp + 0x10], edi
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10c
ret
mov eax, dword [0x428740]
inc eax
mov dword [0x428740], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
mov edx, dword [0x529244]
push str.always
push str.default
mov dword [0x42850c], 4
mov dword [0x52a920], edx
call fcn.00418060
add esp, 8
test eax, eax
jne 0x40cae6
mov dword [0x529244], ebp
push str.never
push str.default
call fcn.00418060
add esp, 8
test eax, eax
jne 0x40cb02
mov dword [0x529244], ebx
push 0x529260
push 0x52a520
push str._source__icy_name:_s___icy_genre:_s_n
call fcn.0040b170
mov eax, dword [0x428888]
mov ecx, dword [0x529244]
push 0x529ea0
push eax
push ecx
push str._source__icy_pub:_d___icy_br:_d___icy_url:_s_n
call fcn.0040b170
push 0x428a20
push 0x528e40
push 0x529660
push str._source__icy_irc:_s___icy_icq:_s___icy_aim:_s_n
call fcn.0040b170
mov eax, dword [0x428888]
mov ecx, dword [0x4242f8]
add esp, 0x2c
cmp ecx, eax
je 0x40cc26
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x4242f8], eax
cmp byte [0x4240e4], bl
je 0x40cbcb
cmp dword [0x4242f0], ebx
je 0x40cbcb
push 0x420fe4
push 0x4240e4
call fcn.004116d0
add esp, 8
test eax, eax
je 0x40cbcb
mov eax, dword [0x42461c]
mov dword [0x4242fc], ebp
cmp eax, ebx
je 0x40cbb0
push 0xc8
call esi
cmp dword [0x42461c], ebx
jne 0x40cba1
mov edx, dword [0x428884]
push edx
call fcn.00411947
add esp, 4
mov dword [0x4242f0], ebx
mov dword [0x4242fc], ebx
cmp byte [0x4241e8], bl
je 0x40cc26
cmp dword [0x4242f4], ebx
je 0x40cc26
push 0x420fe4
push 0x4241e8
call fcn.004116d0
add esp, 8
test eax, eax
je 0x40cc26
mov eax, dword [0x42461c]
mov dword [0x4242fc], ebp
cmp eax, ebx
je 0x40cc0c
push 0x14
call esi
cmp dword [0x42461c], ebx
jne 0x40cc00
mov eax, dword [0x52a92c]
push eax
call fcn.00411947
add esp, 4
mov dword [0x4242f4], ebx
mov dword [0x4242fc], ebx
cmp dword [0x4242f0], ebx
jne 0x40cd4b
cmp byte [0x4240e4], bl
je 0x40cd4b
push 0x420fe4
push 0x4240e4
call fcn.004116d0
add esp, 8
test eax, eax
je 0x40cc6f
mov ecx, dword [0x428888]
push ecx
push 0x4240e4
push 0x529a80
call fcn.00411644
add esp, 0xc
jmp 0x40cc98
mov edi, 0x4240e4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x529a80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
push 0x41a4dc
push 0x529a80
call fcn.004118a7
add esp, 8
cmp eax, ebx
mov dword [0x52a2a4], eax
jne 0x40ccca
push 0x529a80
push str._client:__s__Error_opening_intro_file__n
call fcn.0040b170
add esp, 8
jmp 0x40cd4b
push 2
push ebx
push eax
call fcn.00411b8a
mov eax, dword [0x52a2a4]
push eax
call fcn.00411a07
mov ecx, dword [0x52a2a4]
push ebx
mov esi, eax
push ebx
push ecx
mov dword [0x4242f0], esi
call fcn.00411b8a
lea edx, [esi + 1]
push edx
push ebp
call fcn.004118ba
add esp, 0x24
cmp eax, ebx
mov dword [0x428884], eax
jne 0x40cd1f
push str._source__Unable_to_alloc_memory_for_Intro_Buffer_n
call fcn.0040b170
add esp, 4
mov dword [0x4242f0], ebx
jmp 0x40cd3c
mov ecx, dword [0x52a2a4]
push ecx
push esi
push ebp
push eax
call fcn.00411da9
push esi
push str._source__Read__d_bytes_from_Intro_File_n
call fcn.0040b170
add esp, 0x18
mov edx, dword [0x52a2a4]
push edx
call fcn.00411750
add esp, 4
cmp dword [0x4242f4], ebx
jne 0x40ce8a
cmp byte [0x4241e8], bl
je 0x40ce8a
mov al, byte [0x423790]
mov ecx, 0x40
mov byte [esp + 0x18], al
xor eax, eax
lea edi, [esp + 0x19]
push 0x420fe4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4241e8
stosb byte es:[edi], al
call fcn.004116d0
add esp, 8
test eax, eax
je 0x40cdad
mov ecx, dword [0x428888]
lea edx, [esp + 0x18]
push ecx
push 0x4241e8
push edx
call fcn.00411644
add esp, 0xc
jmp 0x40cdd3
mov edi, 0x4241e8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push 0x41a4dc
push ecx
call fcn.004118a7
add esp, 8
cmp eax, ebx
mov dword [0x4289fc], eax
jne 0x40ce05
lea edx, [esp + 0x18]
push edx
push str._dest:__s__Error_opening_backup_file___s__n
call fcn.0040b170
add esp, 8
jmp 0x40ce86
push 2
push ebx
push eax
call fcn.00411b8a
mov eax, dword [0x4289fc]
push eax
call fcn.00411a07
mov ecx, dword [0x4289fc]
push ebx
mov esi, eax
push ebx
push ecx
mov dword [0x4242f4], esi
call fcn.00411b8a
lea edx, [esi + 1]
push edx
push ebp
call fcn.004118ba
add esp, 0x24
cmp eax, ebx
mov dword [0x52a92c], eax
jne 0x40ce5a
push str._source__Unable_to_alloc_memory_for_Backup_Buffer_n
call fcn.0040b170
add esp, 4
mov dword [0x4242f4], ebx
jmp 0x40ce77
mov ecx, dword [0x4289fc]
push ecx
push esi
push ebp
push eax
call fcn.00411da9
push esi
push str._source__Read__d_bytes_from_Backup_File_n
call fcn.0040b170
add esp, 0x18
mov edx, dword [0x4289fc]
push edx
call fcn.00411750
add esp, 4
mov edi, dword [esp + 0x10]
mov eax, dword [0x424650]
mov dword [0x52a3e4], ebp
mov dword [0x424638], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret