Function at 0x100d2d80
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eed13
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push esi
push edi
mov eax, dword [0x101170e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
cmp dword [esi], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [ebp - 0x28], ecx
jne 0x100d2f79
mov eax, dword [ebp + 8]
mov edi, 2
push 0
movzx eax, word [eax]
mov edx, eax
cmp eax, edi
mov eax, dword [ecx]
mov dword [ebp - 0x14], edx
mov edx, 0x17
cmovne edi, edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push 6
push 1
push edi
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [ebp - 0x10], eax
call fcn.100d1380
mov dword [ebp - 0x18], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x18]
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ecx
cmp eax, 0xffffffff
jne 0x100d2e24
or eax, eax
mov dword [ebp - 0x10], eax
jmp 0x100d2e56
cmp word [ebp - 0x14], 2
je 0x100d2e46
push 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push 0x1b
push 0x29
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 0x10]
mov ecx, 0x10117038
xor edi, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ecx
mov edx, edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x100d2e96
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ecx + 0x18]
call fcn.100d1ce0
cmp dword [eax], 0
je 0x100d2e9c
lea ecx, [ebp - 0x34]
call fcn.100cf6c0
mov edi, dword [ebp - 0x24]
mov edx, edi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
test edx, edx
je 0x100d2ec2
jmp 0x100d2f00
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 8]
push 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [esi], eax
mov byte [esi + 4], 0x10
call fcn.100ce410
xor edi, edi
mov dword [ebp - 0x18], 0x10117038
mov eax, dword [ebp - 0x40]
xorps xmm0, xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x5c], 2
mov dword [ebp - 0x58], 0
movups xmm0, xmmword [ebp - 0x5c]
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], 0
movups xmmword [esi + 0x24], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [esi + 0x34], xmm0
mov dword [esi + 0x3c], 0
test edi, edi
je 0x100d2f76
push dword [ebp + 0xc]
lea ecx, [ebp - 0xbc]
call fcn.100d45b0
lea eax, [ebp - 0xbc]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x64]
call fcn.100d45b0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x94]
call fcn.100d45b0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], eax
call fcn.100d58a0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 2
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
call fcn.100d4320
lea ecx, [ebp - 0x94]
call fcn.100d58a0
lea ecx, [ebp - 0xbc]
jmp 0x100d3043
mov ecx, dword [ebp - 0x28]
mov edi, dword [ecx]
lea ecx, [ebp - 0x68]
push dword [ebp + 0xc]
call fcn.100d45b0
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 3
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
push 0x5c
call fcn.100cfef0
mov esi, eax
add esp, 8
mov dword [ebp - 0x34], esi
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 4
mov ecx, dword [ecx]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x38]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x100d7cc0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0x10117038
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0x100d84f0
mov byte [esi + 0x34], 0
call fcn.100d45b0
mov ecx, dword [ebp + 8]
mov edx, 0x1c
push esi
mov eax, 0x10
mov dword [ebp - 0x30], esi
cmp word [ecx], 2
cmovne eax, edx
push eax
mov eax, dword [ebp - 0x2c]
push ecx
push 1
lea ecx, [edi + 0x14]
push dword [eax + 0x1c]
push eax
call fcn.100dba90
lea ecx, [ebp - 0x68]
call fcn.100d58a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8