Function at 0x45b3f0
Capabilities:
Connect socket
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x45b3f9
mov eax, dword [ebp - 4]
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10020], edx
mov dword [ebp - 0x1001c], edx
mov dword [ebp - 0x10018], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45b721
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x45b6d4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x48], 0
je 0x45b569
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
jne 0x45b569
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x60]
mov eax, dword [ebp - 4]
call fcn.0045b3bc
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x44], ebx
cmp ebx, 0xffffffff
jne 0x45b4d7
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
jne 0x45b4ca
call sub.wsock32.dll_WSAGetLastError
mov edx, dword [ebp - 4]
mov word [edx + 0x66], ax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x51]
mov edx, dword [0x47d31c]
mov ebx, dword [edx + eax*8 + 4]
lea edx, [ebp - 0x10018]
mov eax, 0xb
call ebx
mov edx, dword [ebp - 0x10018]
mov eax, dword [ebp - 4]
add eax, 0x68
call fcn.0040462c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0041a9c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45b703
mov word [ebp - 0x14], 2
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x64]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.wsock32.dll_connect
inc eax
jne 0x45b569
call sub.wsock32.dll_WSAGetLastError
mov edx, dword [ebp - 4]
mov word [edx + 0x66], ax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x51]
mov edx, dword [0x47d31c]
mov ebx, dword [edx + eax*8 + 4]
lea edx, [ebp - 0x1001c]
mov eax, 0xc
call ebx
mov edx, dword [ebp - 0x1001c]
mov eax, dword [ebp - 4]
add eax, 0x68
call fcn.0040462c
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
jne 0x45b55c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.0041a9c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45b703
mov eax, dword [ebp - 4]
mov byte [eax + 0x4a], 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0041a9c8
jmp 0x45b6bd
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4b], 0
je 0x45b5b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, 0xa
call fcn.0045aaf0
test al, al
jne 0x45b5b1
mov eax, dword [ebp - 4]
call fcn.0045b294
jmp 0x45b6bd
push 0
push 0xffff
lea eax, [ebp - 0x10013]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.wsock32.dll_recv
test eax, eax
jne 0x45b5ef
mov edx, dword [ebp - 4]
cmp byte [edx + 0xd], 0
jne 0x45b5ef
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.0041a9c8
jmp 0x45b6ca
cmp eax, 0xffffffff
jne 0x45b682
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2746
je 0x45b60b
cmp eax, 0x2745
jne 0x45b62b
mov edx, dword [ebp - 4]
cmp byte [edx + 0xd], 0
jne 0x45b62b
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.0041a9c8
jmp 0x45b6ca
mov edx, dword [ebp - 4]
cmp byte [edx + 0xd], 0
jne 0x45b6ca
mov edx, dword [ebp - 4]
mov word [edx + 0x66], ax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x51]
mov edx, dword [0x47d31c]
mov ebx, dword [edx + eax*8 + 4]
lea edx, [ebp - 0x10020]
mov eax, 0xd
call ebx
mov edx, dword [ebp - 0x10020]
mov eax, dword [ebp - 4]
add eax, 0x68
call fcn.0040462c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0041a9c8
jmp 0x45b6ca
lea edx, [ebp - 0x10013]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x6c], edx
mov edx, dword [ebp - 4]
mov dword [edx + 0x70], eax
test eax, eax
jle 0x45b6bd
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4b], 0
je 0x45b6b5
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.0041a9c8
jmp 0x45b6bd
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x45b587
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45b703
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b728
lea eax, [ebp - 0x10020]
mov edx, 3
call fcn.004045fc
ret