Function at 0x465ce4
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, 0x54d463
mov esi, 0x54d07c
mov edx, eax
shr edx, 0x10
test dx, 0xffff
jne 0x465d08
cmp eax, 0x20
jne 0x465d53
cmp dword [0x52e30c], 0
je 0x465d47
cmp byte [0x54d4e3], 0
je 0x465d47
push 0x54d4e3
push 0
push 0x92f
call fcn.00415c87
push eax
push esi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push dword [0x52a390]
push esi
push dword [0x537430]
call fcn.004c8c63
push 2
call fcn.00465ac4
jmp 0x466060
push 0
push 0x7f
push ebx
push dword [0x52e304]
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x465d74
push 1
call fcn.00465ac4
jmp 0x466060
cmp eax, 1
jg 0x465d85
push 1
call fcn.00465ac4
jmp 0x466060
cmp eax, 0x78
jle 0x465d8f
mov eax, 0x78
mov byte [ebx + eax], 0
push 0xd
push ebx
call fcn.0051833c
add esp, 8
test eax, eax
je 0x465da5
mov byte [eax], 0
push 0xa
push ebx
call fcn.0051833c
add esp, 8
test eax, eax
je 0x465db7
mov byte [eax], 0
cmp byte [ebx], 0
jne 0x465dcd
push esi
mov esi, 0x52e324
mov edi, ebx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x465dff
push ebx
push 0x52e32f
push esi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push esi
mov edi, esi
mov esi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0
push 0
push dword [0x537420]
push dword [0x52e304]
call sub.WSOCK32.dll_WSAAsyncSelect
push ebx
push 0
push 0x930
call fcn.00415c87
push eax
push esi
call sub.USER32.dll_wsprintfA
add esp, 0xc
cmp byte [0x54d4e3], 0
je 0x465e66
push 0x52e335
push esi
call fcn.00518300
add esp, 8
push 0x54d4e3
push 0
push 0x931
call fcn.00415c87
push eax
push esi
call fcn.005183dc
pop ecx
add eax, esi
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
mov dword [0x534c34], eax
push 0
push 0x52e339
push 0x54cf78
call fcn.0051e654
add esp, 0xc
mov edi, eax
mov dword [0x52e310], edi
test edi, edi
jne 0x465ef0
push 0x54cf78
push 0
push 0x932
call fcn.00415c87
push eax
push esi
call fcn.005183dc
pop ecx
add eax, esi
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push dword [0x52a390]
push esi
push dword [0x537430]
call fcn.004c8c63
push ebx
push 0x933
call fcn.00415c87
push 0
push ebx
call fcn.005183dc
pop ecx
push eax
push ebx
push dword [0x52e304]
call sub.WSOCK32.dll_send
push 2
call fcn.00465ac4
jmp 0x466060
cmp dword [0x52e30c], 0
je 0x465f0b
push dword [0x52a390]
push esi
push dword [0x537430]
call fcn.004c8c63
xor edi, edi
jmp 0x465f2c
push ebx
call fcn.005183dc
pop ecx
push eax
push ebx
push esi
call fcn.00518638
add esp, 0xc
test eax, eax
jne 0x465f2c
mov edi, 1
jmp 0x465f44
push dword [0x52e310]
push 0x3e7
push esi
call fcn.0051b93c
add esp, 0xc
test eax, eax
jne 0x465f0f
test edi, edi
jne 0x465fa7
push 0x52e33c
push ebx
call fcn.005185a0
add esp, 8
test eax, eax
jne 0x465f87
push ebx
push 0x934
call fcn.00415c87
push 0
push ebx
call fcn.005183dc
pop ecx
push eax
push ebx
push dword [0x52e304]
call sub.WSOCK32.dll_send
push 2
call fcn.00465ac4
jmp 0x466060
push dword [0x52e310]
call fcn.0051c6ec
pop ecx
push esi
mov esi, str._default_
mov edi, ebx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x465f0b
push 0x22
push 0x430
push dword [0x537420]
push dword [0x52e304]
call sub.WSOCK32.dll_WSAAsyncSelect
push dword [0x52e310]
push 0x3e7
push esi
call fcn.0051b93c
add esp, 0xc
test eax, eax
je 0x466060
push esi
call fcn.00486dd7
test eax, eax
je 0x465fee
push 2
call fcn.00465ac4
jmp 0x466060
call fcn.00465c71
test eax, eax
je 0x46605d
push 0xa
push esi
call fcn.0051833c
add esp, 8
test eax, eax
jne 0x466014
push 0x52e352
push esi
call fcn.00518300
add esp, 8
push 0
push esi
call fcn.005183dc
pop ecx
push eax
push esi
push dword [0x52e304]
call sub.WSOCK32.dll_send
test eax, eax
jge 0x46605d
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x466054
push 0x22
push 0x430
push dword [0x537420]
push dword [0x52e304]
call sub.WSOCK32.dll_WSAAsyncSelect
jmp 0x466060
push 2
call fcn.00465ac4
jmp 0x466060
mov byte [esi], 0
pop edi
pop esi
pop ebx
pop ebp
ret 4