Function at 0x1000b4c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x10058014]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebx]
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
push edi
mov edi, dword [ebp + 0x28]
cmp ecx, 0xffffffff
je 0x1000b536
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], 0
push eax
xorps xmm0, xmm0
mov byte [esp + 0x13], 0
push 1
lea edx, [esp + 0x17]
movq qword [esp + 0x3c], xmm0
call fcn.10008ab0
mov edx, dword [esp + 0x28]
add esp, 8
mov dword [ebx], 0xffffffff
mov eax, dword [esi + 4]
add eax, 0x18
lock inc dword [eax]
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, 1
mov ecx, dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov dword [esp + 0x14], eax
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
test edx, edx
je 0x1000b5c6
xor eax, eax
lock xadd dword [edx], eax
cmp eax, ebx
jne 0x1000b5c6
mov esi, dword [esi + 4]
push edi
push 2
push 0
mov dword [edi + 0x1c], ebx
mov dword [edi], 0x10058068
mov dword [edi + 8], 0x3e3
mov dword [edi + 0xc], 0
push dword [esi + 0x14]
call ecx
test eax, eax
jne 0x1000b5c6
lea eax, [esi + 0x38]
push eax
call dword [esp + 0x18]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1000b5b1
mov dword [eax + 0x14], edi
jmp 0x1000b5b4
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
lea eax, [esi + 0x34]
mov ecx, ebx
xchg dword [eax], ecx
lea eax, [esi + 0x38]
push eax
call dword [esp + 0x1c]
push 1
push 0
push 0
push dword [ebp + 0x18]
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0
push dword [ebp + 0x14]
movq qword [esp + 0x48], xmm0
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
lea ecx, [esp + 0x34]
cmp esi, 0xffffffff
sete dl
call fcn.10008860
cmp esi, 0xffffffff
jne 0x1000b606
or esi, esi
jmp 0x1000b626
cmp dword [ebp + 0x10], 0x17
jne 0x1000b626
push 4
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1000b65e
lea eax, [esp + 0x40]
mov dword [esp + 0x48], 0
push eax
xorps xmm0, xmm0
mov byte [esp + 0x13], 0
push 1
lea edx, [esp + 0x17]
movq qword [esp + 0x48], xmm0
call fcn.10008ab0
mov eax, dword [esp + 0x24]
add esp, 8
mov dword [eax], esi
cmp esi, 0xffffffff
jne 0x1000b68c
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x34]
push ecx
push eax
push edi
mov ecx, dword [esi + 4]
call fcn.1000a010
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.10041f5c
mov esp, ebp
pop ebp
ret 0x24
push edi
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
mov eax, dword [ebp + 0x20]
push eax
push eax
push 0
push dword [esp + 0x40]
push esi
push dword [esp + 0x40]
call dword [sym.imp.MSWSOCK.dll_AcceptEx]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1000b6df
cmp eax, 0x3e5
je 0x1000b6df
mov esi, dword [esp + 0x10]
mov esi, dword [esi + 4]
mov dword [edi + 0x1c], ebx
mov dword [edi], 0x10058068
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
jmp 0x1000b714
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1000b6fd
xor eax, eax
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x1000b6fd
push edi
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CancelIoEx]
mov esi, dword [esp + 0x10]
lea ecx, [edi + 0x1c]
mov edx, ebx
xor eax, eax
mov esi, dword [esi + 4]
lock cmpxchg dword [ecx], edx
cmp eax, 1
jne 0x1000b752
push edi
push 2
push 0
push dword [esi + 0x14]
call dword [esp + 0x38]
test eax, eax
jne 0x1000b752
lea eax, [esi + 0x38]
push eax
call dword [esp + 0x18]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1000b73f
mov dword [eax + 0x14], edi
jmp 0x1000b742
mov dword [esi + 0x54], edi
lea eax, [esi + 0x34]
mov dword [esi + 0x58], edi
xchg dword [eax], ebx
lea eax, [esi + 0x38]
push eax
call dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10041f5c
mov esp, ebp
pop ebp
ret 0x24