Function at 0x4409b8
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x61
push 0
push 0
dec ecx
jne 0x4409c1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x4409da
add esp, 0xfffffff0
call fcn.00403c14
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x441179
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.004038c0
lea eax, [ebp - 0x1b8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
lea eax, [ebx + 4]
mov edx, edi
call fcn.004050e8
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x50], esi
inc esi
je 0x4410e4
mov eax, edi
call fcn.00404c58
push eax
call sub.wsock32.dll_inet_addr
mov esi, eax
cmp esi, 0xffffffff
jne 0x440a56
mov eax, edi
call fcn.00404c58
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x440a56
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, 0xffffffff
je 0x4410b4
cmp word [ebp + 0x18], 0
jne 0x440aa0
cmp byte [ebp + 0x14], 0
je 0x440a74
mov word [ebp + 0x18], 0x1d1
jmp 0x440aa0
cmp byte [ebp + 0x10], 0
je 0x440a9a
mov eax, dword [ebp + 0xc]
xor edx, edx
call fcn.00405220
jne 0x440a92
mov eax, dword [ebp + 8]
xor edx, edx
call fcn.00405220
je 0x440a9a
mov word [ebp + 0x18], 0x24b
jmp 0x440aa0
mov word [ebp + 0x18], 0x19
mov word [ebp - 0x28], 2
mov ax, word [ebp + 0x18]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x26], ax
mov dword [ebp - 0x24], esi
mov esi, 0x10000
mov dword [ebx + 0x74], esi
push 4
push 0x1000
push esi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebx + 0x78], eax
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0xc]
push eax
push 0x8004667e
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_connect
mov dword [ebp - 0x2bc], 1
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x2b8], eax
mov eax, dword [0x52fe68]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x2bc]
push eax
push 0
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x4410a2
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x8004667e
mov eax, dword [ebx + 0x50]
push eax
call sub.wsock32.dll_ioctlsocket
cmp byte [ebp + 0x14], 0
je 0x440b63
mov eax, ebx
call fcn.004413e8
test al, al
je 0x441090
cmp dword [0x52fe64], 0
je 0x440b7c
lea eax, [ebp - 0x10]
mov edx, dword [0x52fe64]
call fcn.00404820
jmp 0x440b95
lea eax, [ebp - 0x2c0]
call fcn.00430934
mov edx, dword [ebp - 0x2c0]
lea eax, [ebp - 0x10]
call fcn.00404a20
lea eax, [ebp - 8]
call fcn.00404788
mov ecx, eax
mov edx, 0x4411b0
mov eax, ebx
call fcn.00441d44
test al, al
je 0x44102c
lea eax, [ebp - 8]
call fcn.00404788
push eax
lea eax, [ebp - 0x2c4]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4411bc
call fcn.00404aa4
mov edx, dword [ebp - 0x2c4]
mov ecx, 0x4411cc
mov eax, ebx
call fcn.00441be0
test al, al
jne 0x440c1b
lea eax, [ebp - 8]
call fcn.00404788
push eax
lea eax, [ebp - 0x2c8]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4411d8
call fcn.00404aa4
mov edx, dword [ebp - 0x2c8]
mov ecx, 0x4411cc
mov eax, ebx
call fcn.00441be0
test al, al
je 0x44102c
mov byte [ebx + 0x88], 1
cmp byte [ebp + 0x14], 0
jne 0x440c68
push 0x7fffffff
mov esi, dword [0x533404]
mov esi, dword [esi]
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x4411e8
call esi
test eax, eax
jne 0x440c6c
push 0x7fffffff
mov esi, dword [0x533404]
mov esi, dword [esi]
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x441200
call esi
test eax, eax
jne 0x440c6c
xor eax, eax
jmp 0x440c6e
mov al, 1
mov byte [ebx + 0x8a], al
cmp byte [ebx + 0x8a], 0
je 0x440ccf
cmp byte [ebp + 0x10], 0
jne 0x440cd3
mov eax, dword [ebp + 0xc]
xor edx, edx
call fcn.00405220
je 0x440ccf
push 0x7fffffff
mov esi, dword [0x533404]
mov esi, dword [esi]
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x441218
call esi
test eax, eax
jne 0x440ccf
push 0x7fffffff
mov esi, dword [0x533404]
mov esi, dword [esi]
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x44122c
call esi
test eax, eax
je 0x440cd3
xor eax, eax
jmp 0x440cd5
mov al, 1
mov byte [ebx + 0x8b], al
cmp byte [ebx + 0x8b], 0
je 0x440d81
lea eax, [ebp - 8]
call fcn.00404788
push eax
mov ecx, 0x4411b0
mov edx, 0x441240
mov eax, ebx
call fcn.00441be0
test al, al
je 0x440fa7
mov eax, ebx
call fcn.004413e8
test al, al
je 0x440fa7
lea eax, [ebp - 8]
call fcn.00404788
push eax
lea eax, [ebp - 0x2cc]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4411bc
call fcn.00404aa4
mov edx, dword [ebp - 0x2cc]
mov ecx, 0x4411cc
mov eax, ebx
call fcn.00441be0
test al, al
jne 0x440d81
lea eax, [ebp - 8]
call fcn.00404788
push eax
lea eax, [ebp - 0x2d0]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4411d8
call fcn.00404aa4
mov edx, dword [ebp - 0x2d0]
mov ecx, 0x4411cc
mov eax, ebx
call fcn.00441be0
test al, al
je 0x440fa7
mov byte [ebx + 0x8c], 1
mov byte [ebx + 0x8e], 1
push 0
mov esi, dword [0x5335ec]
mov esi, dword [esi]
lea eax, [ebp - 8]
mov ecx, 0x441254
mov edx, 0x441260
call esi
push 0
mov esi, dword [0x5335ec]
mov esi, dword [esi]
lea eax, [ebp - 8]
mov ecx, 0x441254
mov edx, 0x44126c
call esi
push 0x7fffffff
mov esi, dword [0x533404]
mov esi, dword [esi]
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x441278
call esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4410e4
mov ecx, dword [ebp - 0xc]
inc ecx
lea eax, [ebp - 8]
mov edx, 1
call fcn.00404cfc
push 0x7fffffff
mov esi, dword [0x53358c]
mov esi, dword [esi]
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x44128c
call esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x440e30
lea eax, [ebp - 8]
mov ecx, 0x7fffffff
mov edx, dword [ebp - 0xc]
call fcn.00404cfc
push 0x7fffffff
lea eax, [ebp - 0x2d4]
mov ecx, 0x441254
mov edx, dword [ebp - 8]
call fcn.00404aa4
mov edx, dword [ebp - 0x2d4]
mov esi, dword [0x533404]
mov esi, dword [esi]
mov ecx, 1
mov eax, 0x441298
call esi
test eax, eax
jle 0x4410e4
mov byte [ebx + 0x8d], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
call fcn.00405220
jne 0x440e8d
mov eax, dword [ebp + 8]
xor edx, edx
call fcn.00405220
je 0x440f2b
lea eax, [ebp - 8]
call fcn.00404788
push eax
mov ecx, 0x4412a8
mov edx, 0x4412b4
mov eax, ebx
call fcn.00441be0
test al, al
je 0x440f27
lea eax, [ebp - 8]
call fcn.00404788
push eax
lea edx, [ebp - 0x2dc]
mov eax, dword [ebp + 0xc]
call fcn.0040bec8
mov eax, dword [ebp - 0x2dc]
lea edx, [ebp - 0x2d8]
call fcn.0041c514
mov edx, dword [ebp - 0x2d8]
mov ecx, 0x4412a8
mov eax, ebx
call fcn.00441be0
test al, al
je 0x440f27
lea eax, [ebp - 8]
call fcn.00404788
push eax
lea edx, [ebp - 0x2e4]
mov eax, dword [ebp + 8]
call fcn.0040bec8
mov eax, dword [ebp - 0x2e4]
lea edx, [ebp - 0x2e0]
call fcn.0041c514
mov edx, dword [ebp - 0x2e0]
mov ecx, 0x4412c8
mov eax, ebx
call fcn.00441be0
test al, al
jne 0x440f2b
xor eax, eax
jmp 0x440f2d
mov al, 1
mov byte [ebx + 0x8e], al
cmp byte [ebx + 0x8e], 0
jne 0x4410e4
push 0x4412d0
lea eax, [ebp - 0x2f0]
push eax
mov esi, dword [0x533000]
mov esi, dword [esi]
mov cl, 0xa
mov edx, 1
mov eax, dword [ebp - 8]
call esi
mov eax, dword [ebp - 0x2f0]
mov esi, dword [0x5334e4]
mov esi, dword [esi]
lea edx, [ebp - 0x2ec]
call esi
mov edx, dword [ebp - 0x2ec]
lea eax, [ebp - 0x2e8]
call fcn.004050e8
push dword [ebp - 0x2e8]
push 0x441304
lea eax, [ebx + 0x94]
mov edx, 3
call fcn.004051d8
jmp 0x4410e4
cmp byte [ebx + 0x89], 0
jne 0x440fc5
lea eax, [ebx + 0x94]
mov edx, 0x44130c
call fcn.00404f80
jmp 0x4410e4
push 0x441328
lea eax, [ebp - 0x2fc]
push eax
mov esi, dword [0x533000]
mov esi, dword [esi]
mov cl, 0xa
mov edx, 1
mov eax, dword [ebp - 8]
call esi
mov eax, dword [ebp - 0x2fc]
mov esi, dword [0x5334e4]
mov esi, dword [esi]
lea edx, [ebp - 0x2f8]
call esi
mov edx, dword [ebp - 0x2f8]
lea eax, [ebp - 0x2f4]
call fcn.004050e8
push dword [ebp - 0x2f4]
push 0x441304
lea eax, [ebx + 0x94]
mov edx, 3
call fcn.004051d8
jmp 0x4410e4
push 0x441350
lea eax, [ebp - 0x308]
push eax
mov esi, dword [0x533000]
mov esi, dword [esi]
mov cl, 0xa
mov edx, 1
mov eax, dword [ebp - 8]
call esi
mov eax, dword [ebp - 0x308]
mov esi, dword [0x5334e4]
mov esi, dword [esi]
lea edx, [ebp - 0x304]
call esi
mov edx, dword [ebp - 0x304]
lea eax, [ebp - 0x300]
call fcn.004050e8
push dword [ebp - 0x300]
push 0x441304
lea eax, [ebx + 0x94]
mov edx, 3
call fcn.004051d8
jmp 0x4410e4
lea eax, [ebx + 0x94]
mov edx, 0x441370
call fcn.00404f80
jmp 0x4410e4
lea eax, [ebx + 0x94]
mov edx, 0x44138c
call fcn.00404f80
jmp 0x4410e4
push 0x4413c0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x30c]
call fcn.0040b97c
push dword [ebp - 0x30c]
push 0x441304
lea eax, [ebx + 0x94]
mov edx, 3
call fcn.004051d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441183
lea eax, [ebp - 0x30c]
call fcn.00404f44
lea eax, [ebp - 0x308]
mov edx, 2
call fcn.004047ac
lea eax, [ebp - 0x300]
call fcn.00404f44
lea eax, [ebp - 0x2fc]
mov edx, 2
call fcn.004047ac
lea eax, [ebp - 0x2f4]
call fcn.00404f44
lea eax, [ebp - 0x2f0]
mov edx, 2
call fcn.004047ac
lea eax, [ebp - 0x2e8]
call fcn.00404f44
lea eax, [ebp - 0x2e4]
mov edx, 9
call fcn.004047ac
lea eax, [ebp - 0x2c0]
call fcn.00404f44
lea eax, [ebp - 0x10]
call fcn.00404788
lea eax, [ebp - 8]
call fcn.00404788
ret