Function at 0x4b9fd4
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff930
xor ecx, ecx
mov dword [ebp - 0x6cc], ecx
mov dword [ebp - 0x6d0], ecx
mov dword [ebp - 0x6c8], ecx
mov dword [ebp - 0x6c4], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ba245
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4ba227
xor eax, eax
push ebp
push 0x4ba220
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004b91e4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4ba052
call fcn.00404930
jmp 0x4ba227
mov word [ebp - 0x28], 2
mov eax, dword [ebp - 8]
mov ax, word [eax + 0xc]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.004053ec
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x24], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_connect
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4ba1f4
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4ba1f4
lea eax, [ebp - 0x12c]
call fcn.00497548
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0xc]
call fcn.00497538
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, 0x3e8
xor edx, edx
div ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, 0x3e8
xor edx, edx
div ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
lea eax, [ebp - 0x12c]
push eax
push 0
call sub.wsock32.dll_select
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4ba1f4
lea eax, [ebp - 0x52d]
xor ecx, ecx
mov edx, 0x401
call fcn.004035b8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov edx, dword [eax]
call dword [edx + 0x44]
jmp 0x4ba1d5
lea edx, [ebp - 0x6c4]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp dword [ebp - 0x6c4], 0
je 0x4ba17d
lea edx, [ebp - 0x6c8]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea eax, [ebp - 0x6c8]
mov edx, 0x4ba258
call fcn.004051f4
mov edx, dword [ebp - 0x6c8]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea edx, [ebp - 0x6cc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea eax, [ebp - 0x6cc]
push eax
lea eax, [ebp - 0x6d0]
lea edx, [ebp - 0x52d]
call fcn.00405108
mov edx, dword [ebp - 0x6d0]
pop eax
call fcn.004051f4
mov edx, dword [ebp - 0x6cc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x52d]
xor ecx, ecx
mov edx, 0x401
call fcn.004035b8
push 0
push 0x401
lea eax, [ebp - 0x52d]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_recv
test eax, eax
jg 0x4ba131
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004b9230
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba227
call sub.wsock32.dll_WSACleanup
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
call fcn.004ba25c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba24c
lea eax, [ebp - 0x6d0]
mov edx, 4
call fcn.00404f34
ret