Function at 0x1003a8f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dafda
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x1010f16c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x98], esi
cmp byte [0x10115ce1], 0
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x94], 0xffffffff
jne 0x1003a969
push 0x10115f38
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
movzx ecx, byte [0x10115ce1]
test eax, eax
mov edx, 1
cmove ecx, edx
mov byte [0x10115ce1], cl
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x94], eax
cmp eax, 0xffffffff
je 0x1003aac0
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [edi + 0x14], 0x10
mov eax, 2
mov word [ebp - 0x20], ax
mov eax, edi
jb 0x1003a9b4
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push dword [edi + 0x18]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [ebp - 0x94]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1003aa97
mov ecx, dword [ebp - 0x94]
call fcn.10038290
test al, al
jne 0x1003aaa4
cmp dword [edi + 0x4c], 0
je 0x1003aacc
mov edx, dword [ebp - 0x94]
lea ecx, [ebp - 0x98]
push 0
call fcn.100383b0
add esp, 4
mov dword [ebp - 4], 3
mov eax, dword [edi + 0x7c]
mov esi, dword [edi + 0x78]
mov dword [ebp - 0x9c], eax
cmp esi, eax
je 0x1003aa53
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x1003aca8
mov eax, dword [ecx]
push dword [ebp - 0x98]
call dword [eax + 8]
add esi, 0x28
cmp esi, dword [ebp - 0x9c]
jne 0x1003aa32
mov eax, dword [ebp - 0x98]
lea ecx, [edi + 0x28]
push ecx
mov edx, esp
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], esp
mov dword [edx], eax
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
call fcn.10047e40
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x1003aacc
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x1003aacc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1003aae9
mov eax, dword [ebp - 0x94]
cmp eax, 0xffffffff
je 0x1003aac0
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x94], 0xffffffff
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x1003aacc
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x90]
call fcn.1003aed0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.10051580
mov ecx, dword [eax]
mov dword [ebp - 0x90], ecx
lea ecx, [ebp - 0x80]
mov eax, dword [eax + 4]
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x28]
push eax
call fcn.10033e00
lea eax, [edi + 0x50]
push eax
lea ecx, [ebp - 0x58]
call fcn.10033e00
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x88], eax
mov eax, dword [edi + 0x24]
add edi, 0x78
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x30]
cmp eax, edi
je 0x1003ab5d
push dword [ebp - 0x9c]
mov ecx, eax
push dword [edi + 4]
push dword [edi]
call fcn.1004af40
mov edx, dword [esi]
mov esi, edx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1003ab8d
mov ecx, dword [ebp - 0x94]
cmp dword [eax + 0x10], ecx
jae 0x1003ab7a
mov eax, dword [eax + 8]
jmp 0x1003ab7e
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x1003ab70
cmp esi, edx
je 0x1003ab8d
cmp ecx, dword [esi + 0x10]
jae 0x1003abee
push 0x88
call fcn.10090929
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x98]
lea edx, [edi + 0x10]
mov dword [ebp - 0x9c], edx
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax]
mov dword [edi + 4], ecx
mov ecx, dword [eax]
mov dword [edi + 8], ecx
lea ecx, [edx + 8]
mov word [edi + 0xc], 0
mov eax, dword [ebp - 0x94]
mov dword [edx], eax
call fcn.1003aed0
mov byte [ebp - 4], 0
lea eax, [ebp - 0x9c]
mov ecx, dword [ebp - 0x98]
push edi
push edx
push esi
push eax
call fcn.100501d0
mov esi, dword [ebp - 0x9c]
lea eax, [ebp - 0x90]
lea ecx, [esi + 0x18]
push eax
call fcn.1003b150
mov eax, dword [ebp - 0x98]
mov edi, dword [ebp - 0x94]
mov esi, dword [eax + 8]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 4]
jne 0x1003ac58
lea eax, [eax*8 + 0x400]
push eax
call fcn.100abd2b
add esp, 4
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x1003ac58
mov edx, dword [esi]
test edx, edx
je 0x1003ac52
mov ecx, dword [esi + 4]
shl ecx, 3
push ecx
push edx
push eax
call fcn.100a82c0
push dword [esi]
call fcn.100abd36
mov eax, dword [ebp - 0x9c]
add esp, 0x10
sub dword [esi + 8], 0xffffff80
mov dword [esi], eax
mov edx, dword [esi + 4]
cmp dword [esi + 8], edx
jle 0x1003ac91
xor ecx, ecx
test edx, edx
jle 0x1003ac7a
mov eax, dword [esi]
cmp dword [eax], edi
je 0x1003ac76
inc ecx
add eax, 8
cmp ecx, edx
jl 0x1003ac68
jmp 0x1003ac7a
test eax, eax
jne 0x1003ac8c
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + edx*8 + 4], cx
mov dword [eax + edx*8], edi
inc dword [esi + 4]
lea eax, [eax + edx*8]
or word [eax + 4], 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.1003b0a0
jmp 0x1003aacc
call fcn.100796e1
int3