Function at 0x466bfc
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, 0x50e993
mov esi, 0x50e5ac
mov edx, eax
shr edx, 0x10
test dx, 0xffff
jne 0x466c20
cmp eax, 0x20
jne 0x466c6c
cmp dword [0x4f6468], 0
je 0x466c60
cmp byte [0x50ea13], 0
je 0x466c60
push 0x50ea13
push 0
push 0x92f
call fcn.0041f178
push eax
push esi
call sub.USER32.dll_wsprintfA
add esp, 0xc
mov eax, dword [0x4f29e4]
push eax
push esi
mov ecx, dword [0x4fd9fc]
push ecx
call fcn.004bd330
push 2
call fcn.004669ac
jmp 0x466f7a
push 0
push 0x7f
push ebx
mov eax, dword [0x4f6460]
push eax
call sub.WSOCK32.dll_recv
cmp eax, 1
jg 0x466c8d
push 1
call fcn.004669ac
jmp 0x466f7a
cmp eax, 0x78
jle 0x466c97
mov eax, 0x78
mov byte [ebx + eax], 0
push 0xd
push ebx
call fcn.00401278
add esp, 8
test eax, eax
je 0x466cad
mov byte [eax], 0
push 0xa
push ebx
call fcn.00401278
add esp, 8
test eax, eax
je 0x466cbf
mov byte [eax], 0
cmp byte [ebx], 0
jne 0x466cd5
push esi
mov esi, 0x4f6480
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 0x466d07
push ebx
push 0x4f648b
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
mov eax, dword [0x4fd9ec]
push eax
mov edx, dword [0x4f6460]
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
push ebx
push 0
push 0x930
call fcn.0041f178
push eax
push esi
call sub.USER32.dll_wsprintfA
add esp, 0xc
cmp byte [0x50ea13], 0
je 0x466d6f
push 0x4f6491
push esi
call fcn.0040123c
add esp, 8
push 0x50ea13
push 0
push 0x931
call fcn.0041f178
push eax
push esi
call fcn.00401318
pop ecx
add eax, esi
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor ecx, ecx
mov dword [0x4fb760], ecx
push 0
push 0x4f6495
push 0x50e4ac
call fcn.00406b38
add esp, 0xc
mov edi, eax
mov dword [0x4f646c], edi
test edi, edi
jne 0x466dfc
push 0x50e4ac
push 0
push 0x932
call fcn.0041f178
push eax
push esi
call fcn.00401318
pop ecx
add eax, esi
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
mov eax, dword [0x4f29e4]
push eax
push esi
mov edx, dword [0x4fd9fc]
push edx
call fcn.004bd330
push ebx
push 0x933
call fcn.0041f178
push 0
push ebx
call fcn.00401318
pop ecx
push eax
push ebx
mov ecx, dword [0x4f6460]
push ecx
call sub.WSOCK32.dll_send
push 2
call fcn.004669ac
jmp 0x466f7a
cmp dword [0x4f6468], 0
je 0x466e18
mov eax, dword [0x4f29e4]
push eax
push esi
mov edx, dword [0x4fd9fc]
push edx
call fcn.004bd330
xor edi, edi
jmp 0x466e39
push ebx
call fcn.00401318
pop ecx
push eax
push ebx
push esi
call fcn.00401540
add esp, 0xc
test eax, eax
jne 0x466e39
mov edi, 1
jmp 0x466e51
mov eax, dword [0x4f646c]
push eax
push 0x3e7
push esi
call fcn.00404834
add esp, 0xc
test eax, eax
jne 0x466e1c
test edi, edi
jne 0x466eb6
push 0x4f6498
push ebx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x466e95
push ebx
push 0x934
call fcn.0041f178
push 0
push ebx
call fcn.00401318
pop ecx
push eax
push ebx
mov edx, dword [0x4f6460]
push edx
call sub.WSOCK32.dll_send
push 2
call fcn.004669ac
jmp 0x466f7a
mov ecx, dword [0x4f646c]
push ecx
call fcn.00405648
pop ecx
push esi
mov esi, 0x4f64a3
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 0x466e18
push 0x22
push 0x430
mov edx, dword [0x4fd9ec]
push edx
mov ecx, dword [0x4f6460]
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, dword [0x4f646c]
push eax
push 0x3e7
push esi
call fcn.00404834
add esp, 0xc
test eax, eax
je 0x466f7a
push esi
call fcn.004833f0
test eax, eax
je 0x466eff
push 2
call fcn.004669ac
jmp 0x466f7a
call fcn.00466b8c
test eax, eax
je 0x466f77
push 0xa
push esi
call fcn.00401278
add esp, 8
test eax, eax
jne 0x466f25
push 0x4f64ae
push esi
call fcn.0040123c
add esp, 8
push 0
push esi
call fcn.00401318
pop ecx
push eax
push esi
mov edx, dword [0x4f6460]
push edx
call sub.WSOCK32.dll_send
test eax, eax
jge 0x466f77
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x466f53
cmp eax, 0x2734
jne 0x466f6e
push 0x22
push 0x430
mov ecx, dword [0x4fd9ec]
push ecx
mov eax, dword [0x4f6460]
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
jmp 0x466f7a
push 2
call fcn.004669ac
jmp 0x466f7a
mov byte [esi], 0
pop edi
pop esi
pop ebx
pop ebp
ret 4