Function at 0x100d4b30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ef1b5
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x101170e4]
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 - 0x74], esi
mov dword [ebp - 0x60], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 4]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x84], esi
mov dword [esi], eax
call fcn.100ceb10
lea eax, [esi + 4]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x10]
call fcn.100d51b0
mov dword [esi + 0x18], 0
add esi, 0x1c
mov dword [ebp - 0x60], esi
push 0x30
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.10084db4
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
push dword [esi + 4]
mov byte [ebp - 4], 2
push 0x10
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
call fcn.100d7010
mov esi, dword [ebp - 0x74]
push edi
mov byte [ebp - 4], 3
lea ecx, [esi + 0x3c]
call fcn.10001e60
mov ax, word [ebp + 0x10]
lea edi, [esi + 0x58]
mov dword [ebp - 0x60], edi
lea ecx, [edi + 0x14]
mov word [esi + 0x54], ax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 0x78], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
push 0x20
mov byte [ebp - 4], 5
call fcn.100d7500
lea eax, [edi + 0x8c]
mov byte [ebp - 4], 6
push 0x10000
mov dword [edi + 0x38], eax
call fcn.1009199d
add esp, 4
test eax, eax
je 0x100d50d4
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 4
mov dword [edi + 0x28], 0xfffc
mov dword [edi + 0x2c], 4
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0x10000
mov dword [eax], 1
lea eax, [edi + 0x40]
mov dword [ebp - 0x78], eax
lea ecx, [eax + 0x20]
mov dword [eax], 0x10096000
lea edi, [eax + 0x30]
mov dword [eax + 4], 0
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 0x10], 0xffffffff
mov dword [eax + 0x14], 0xffffffff
mov dword [eax + 0x18], 0xffffffff
mov dword [eax + 0x1c], 0xffffffff
mov dword [ecx], 0
mov dword [ebp - 0x5c], ecx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0x20
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.100cc690
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], ecx
cmp eax, dword [edi + 8]
je 0x100d4d19
mov dword [eax], ecx
add dword [edi + 4], 4
jmp 0x100d4d25
lea ecx, [ebp - 0x5c]
push ecx
push eax
mov ecx, edi
call fcn.100cb4c0
push 0x1c
mov byte [ebp - 4], 9
call fcn.1009199d
add esp, 4
test eax, eax
je 0x100d50ea
push 0x2000
mov ecx, eax
call fcn.10042620
mov dword [esi + 0xe0], eax
mov dword [esi + 0xe4], eax
mov dword [esi + 0xd4], eax
mov byte [esi + 0xd8], 0
lea eax, [esi + 0xec]
mov byte [esi + 0xe8], 0
push eax
call fcn.100866de
lea eax, [esi + 0x114]
push 2
push eax
call fcn.100865c8
add esp, 0xc
xorps xmm0, xmm0
movq qword [esi + 0x144], xmm0
lea eax, [esi + 4]
mov dword [esi + 0x14c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 2
mov byte [ebp - 0x34], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x2c], 0
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x64]
push 0x100ce000
push eax
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x64], 0x10119930
mov dword [ebp - 0x60], 0
call fcn.100d1080
mov ecx, eax
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x58], ecx
or edi, 0xffffffff
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x48], 0
test ecx, ecx
je 0x100d4e45
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x100d4e45
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x5c]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x100d4e45
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
add eax, 0x24
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x100d4e6f
lea edx, [ebp - 0x54]
mov dword [eax + 0x18], edx
lea eax, [ebp - 0x54]
mov dword [ecx + 0x3c], eax
lea eax, [ecx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [esi + 0x150]
push eax
call fcn.100d4170
add esp, 0xc
cmp dword [ebp - 0x54], 0xffffffff
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x60], eax
je 0x100d4eef
lea ecx, [eax + 0x1c]
xor edx, edx
xor eax, eax
lock cmpxchg dword [ecx], edx
mov dword [ebp - 0x68], eax
test eax, eax
je 0x100d4eef
mov esi, dword [ebp - 0x54]
lea edi, [eax + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.100d1380
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x7c]
push eax
push esi
mov dword [ebp - 0x7c], 0x3e3
call fcn.100cfce0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or edi, 0xffffffff
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x78], esi
cmp esi, 0xffffffff
je 0x100d4fd9
mov al, byte [ebp - 0x50]
mov ecx, dword [sym.imp.WS2_32.dll_WSASetLastError]
test al, 8
je 0x100d4f40
xor edx, edx
or al, 8
push edx
mov dword [ebp - 0x58], edx
mov byte [ebp - 0x50], al
call ecx
push 4
lea eax, [ebp - 0x58]
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
call fcn.100d1380
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
call ecx
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
call fcn.100d1380
mov dword [ebp - 0x58], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x68], eax
test esi, esi
je 0x100d4fd9
call fcn.100d1380
mov esi, dword [ebp - 0x58]
mov ecx, eax
mov dword [ebp - 0x68], ecx
mov eax, dword [esi + 4]
cmp eax, dword [ecx + 4]
jne 0x100d4f86
cmp dword [ebp - 0x5c], 0x2733
je 0x100d4fa1
call fcn.100d1380
mov ecx, eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x68], ecx
cmp eax, dword [ecx + 4]
jne 0x100d4fd9
cmp dword [ebp - 0x5c], 0x4d5
jne 0x100d4fd9
mov esi, dword [ebp - 0x78]
lea eax, [ebp - 0x68]
push eax
push 0x8004667e
push esi
mov dword [ebp - 0x68], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebp - 0x50], 0xfc
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.100d1380
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x54], 0xffffffff
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
test esi, esi
je 0x100d5018
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100d5018
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x100d5018
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x60]
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x54]
cmp dword [esi + 0x3c], eax
jne 0x100d5033
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x3c], eax
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x100d5043
mov eax, dword [ebp - 0x40]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x100d504d
mov dword [eax + 0x18], ecx
lea eax, [esi + 0x24]
mov dword [ebp - 0x40], 0
push eax
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x100d508a
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100d508a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100d508a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x74]
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 0x11
mov byte [esi + 0x158], 0
mov byte [esi + 0x168], 0
cmp dword [ecx + 0x28], 0x100000
jae 0x100d50b5
push 0x100000
call fcn.100d9430
mov eax, esi
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.1008511a
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x70]
call fcn.10042300
push 0x1010eab0
lea eax, [ebp - 0x70]
push eax
call fcn.100896e3
lea ecx, [ebp - 0x80]
call fcn.10042300
push 0x1010eab0
lea eax, [ebp - 0x80]
push eax
call fcn.100896e3
int3