Function at 0x10017c30
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x1005a014]
xor eax, esp
mov dword [esp + 0x1b8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x18]
push eax
push 0x14
push 0x10089448
call fcn.100374eb
mov ax, word [ebp + 0xc]
add esp, 0xc
mov word [0x1008945c], ax
test esi, esi
jne 0x10017c7d
mov byte [0x1008945e], 0
jmp 0x10017c8d
push esi
push 0x14
push 0x1008945e
call fcn.100374eb
add esp, 0xc
mov ax, word [ebp + 0x14]
mov word [0x10089472], ax
test edi, edi
je 0x10017ce4
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10017ca0
sub esi, ecx
test esi, esi
jle 0x10017ce4
cmp esi, 0x200
jge 0x10017ccd
push esi
push edi
push 0x10089474
call fcn.1002e510
add esp, 0xc
mov byte [esi + 0x10089474], 0
jmp 0x10017ceb
mov esi, edi
mov ecx, 0x80
mov edi, 0x10089474
rep movsd dword es:[edi], dword [esi]
mov byte [0x10089673], 0
jmp 0x10017ceb
mov byte [0x10089474], 0
mov ecx, dword [0x10089678]
mov eax, ecx
and eax, 0xd8000000
or eax, 0
jne 0x10017ebd
lea eax, [esp + 0x30]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0
push 0
mov ebx, eax
mov dword [esp + 0x20], 0x25a207b9
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0x4660ddf3
push eax
push 4
push 0x1005b834
push 0x10
lea eax, [esp + 0x30]
mov dword [esp + 0x38], 0xe576e98e
push eax
push 0xc8000006
push ebx
mov dword [esp + 0x48], 0x3e06748c
mov dword [esp + 0x38], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp byte [0x10089a68], 0
mov dword [esp + 0x10], eax
je 0x10017e09
push 0x1004fc48
push 0x10089a68
call fcn.1003687c
mov edi, eax
add esp, 8
test edi, edi
je 0x10017e09
push 0
call fcn.10036893
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], edx
push eax
call fcn.10036b8c
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [0x1005b834]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [esi]
mov eax, dword [esi + 0x10]
push dword [esi + 4]
inc eax
push dword [esi + 8]
push dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
push str.__04d__02d__02d__02d:_02d:_02d___u_CONNECTEX:_p__d__d:_x_n
push edi
call fcn.1001bf20
add esp, 0x34
push edi
call fcn.10036ec3
add esp, 4
push edi
call fcn.1003703b
add esp, 4
push ebx
call dword [0x10089974]
push str.connect
mov edx, 0x10021500
mov ecx, 0x1008995c
call fcn.10017a90
add esp, 4
mov edx, 0x100219a0
mov ecx, 0x1005b834
push str.ConnectEx
call fcn.10017a90
add esp, 4
mov edx, 0x10021c50
mov ecx, 0x10089960
push 0x10052604
call fcn.10017a90
add esp, 4
mov edx, 0x10022160
mov ecx, 0x1005aa90
push 0x10052610
call fcn.10017a90
add esp, 4
mov edx, 0x100227d0
mov ecx, 0x1005aa8c
push 0x10052624
call fcn.10017a90
add esp, 4
mov edx, 0x10022e80
mov ecx, 0x1005aa88
push 0x10052638
call fcn.10017a90
add esp, 4
mov edx, 0x10023720
mov ecx, 0x10089974
push str.closesocket
call fcn.10017a90
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [0x10089678]
mov eax, ecx
and eax, 0xf0000000
or eax, 0
jne 0x10017f2b
push str.send
mov edx, 0x10022fd0
mov ecx, 0x10089964
call fcn.10017a90
add esp, 4
mov edx, 0x10023250
mov ecx, 0x10089968
push 0x10052660
call fcn.10017a90
add esp, 4
mov edx, 0x10023540
mov ecx, 0x1008996c
push 0x10052668
call fcn.10017a90
add esp, 4
mov edx, 0x10023630
mov ecx, 0x10089970
push 0x10052674
call fcn.10017a90
mov ecx, dword [0x10089678]
add esp, 4
mov eax, dword [0x1008967c]
or ecx, 0x40000000
pop edi
mov dword [0x10089678], ecx
mov ecx, dword [esp + 0x1c0]
pop esi
pop ebx
mov dword [0x1008967c], eax
xor ecx, esp
xor eax, eax
call fcn.1002bcfe
mov esp, ebp
pop ebp
ret 0x14