Function at 0x100dba90
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x34
mov eax, dword [0x101170e4]
xor eax, esp
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x1c], esi
push edi
mov edi, ecx
cmp edx, 2
je 0x100dbaca
cmp edx, 0x17
jne 0x100dbc36
mov eax, dword [esp + 0x50]
cmp eax, 1
je 0x100dbadc
cmp eax, 5
jne 0x100dbc36
lea ebx, [edi + 0xc]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [ebx], ecx
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x100dbb54
push eax
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x34], 0x25a207b9
push eax
push 0x10
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], 0x4660ddf3
push eax
push 0xc8000006
push dword [esi]
mov dword [esp + 0x50], 0xe576e98e
mov dword [esp + 0x54], 0x3e06748c
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x100dbb43
mov eax, edi
mov dword [esp + 0x10], eax
jmp 0x100dbb47
mov eax, dword [esp + 0x10]
lea ecx, [edi + 0xc]
xchg dword [ecx], eax
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x4c]
xor eax, eax
cmp ebx, edi
cmove ebx, eax
test ebx, ebx
je 0x100dbc36
mov dword [esp + 0x3c], eax
cmp edx, 2
lea eax, [ebp + 0x20]
mov ecx, 0x10
push eax
mov eax, 0x1c
xorps xmm0, xmm0
cmove eax, ecx
movq qword [esp + 0x38], xmm0
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esi]
movups xmmword [esp + 0x34], xmm0
mov word [esp + 0x34], dx
call fcn.100cfc70
add esp, 0x10
cmp dword [ebp + 0x20], 0
je 0x100dbbc5
call fcn.100d1380
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx + 4]
cmp edx, dword [eax + 4]
jne 0x100dbbbd
cmp dword [ebp + 0x20], 0x2726
je 0x100dbbc5
mov ecx, dword [edi + 4]
jmp 0x100dbc9a
mov byte [ebp + 0x34], 1
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
push ebp
push 0
push 0
push 0
push dword [esp + 0x68]
push dword [esp + 0x30]
push dword [esi]
call ebx
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x100dbc18
cmp eax, 0x3e5
je 0x100dbc18
mov ecx, dword [edi + 4]
push esi
push eax
push ebp
call fcn.100d1aa0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1008511a
add esp, 0x34
ret 0x18
mov ecx, dword [edi + 4]
push ebp
call fcn.100d1b20
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1008511a
add esp, 0x34
ret 0x18
lea ebx, [edi + 8]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [ebx], ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x100dbc71
mov eax, dword [edi]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
push 0x100d3790
push ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], 0x10119a70
call fcn.100d1080
mov dword [esp + 0x10], eax
xchg dword [ebx], eax
test byte [esi + 4], 3
lea ebx, [ebp + 0x20]
jne 0x100dbd05
mov esi, dword [esi]
cmp esi, 0xffffffff
jne 0x100dbcb7
call fcn.100d1380
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x14]
push 0
push ebp
call fcn.100da1c0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1008511a
add esp, 0x34
ret 0x18
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.100d1380
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
js 0x100dbc93
mov esi, dword [esp + 0x20]
mov dword [ebx], 0
mov dword [ebx + 4], 0x10117038
or byte [esi + 4], 2
push ebx
push dword [esp + 0x5c]
push dword [esp + 0x24]
push dword [esi]
call fcn.100d7730
add esp, 0x10
test eax, eax
je 0x100dbc93
call fcn.100d1380
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x100dbd38
cmp dword [ebx], 0x2734
je 0x100dbd58
call fcn.100d1380
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x100dbc93
cmp dword [ebx], 0x2733
jne 0x100dbc93
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x10]
push 0
push 0
push ebp
push eax
mov dword [ebx], 0
mov dword [ebx + 4], 0x10117038
push dword [esi]
push 3
call fcn.100dbd90
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1008511a
add esp, 0x34
ret 0x18