Function at 0x1000b290
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x10058014]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
push esi
push edi
mov edi, dword [ebp + 0x28]
add eax, 0x18
mov dword [esp + 0x1c], ecx
lock inc dword [eax]
cmp dword [ecx], 0xffffffff
jne 0x1000b336
mov esi, dword [ebx + 4]
mov dword [edi + 8], 0x2719
push edi
push 2
push 0
mov dword [edi + 0x1c], 1
mov dword [edi], 0x10058068
mov dword [edi + 0xc], 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1000b4a9
lea ebx, [esi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1000b320
mov dword [eax + 0x14], edi
jmp 0x1000b323
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
lea eax, [esi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
jmp 0x1000b4a3
cmp byte [ebp + 0xc], 0
je 0x1000b348
mov esi, dword [ebx + 4]
mov dword [edi + 8], 1
jmp 0x1000b2d9
push 1
push 0
push 0
push dword [ebp + 0x1c]
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
push dword [ebp + 0x18]
movq qword [esp + 0x38], xmm0
push dword [ebp + 0x14]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
lea ecx, [esp + 0x24]
cmp esi, 0xffffffff
sete dl
call fcn.10008860
cmp esi, 0xffffffff
jne 0x1000b388
or esi, esi
jmp 0x1000b3a8
cmp dword [ebp + 0x14], 0x17
jne 0x1000b3a8
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1000b3e0
lea eax, [esp + 0x30]
mov dword [esp + 0x38], 0
push eax
xorps xmm0, xmm0
mov byte [esp + 0x17], 0
push 1
lea edx, [esp + 0x1b]
movq qword [esp + 0x38], xmm0
call fcn.10008ab0
mov eax, dword [esp + 0x1c]
add esp, 8
mov dword [eax], esi
cmp esi, 0xffffffff
jne 0x1000b40a
push ecx
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x28]
push eax
push edi
call fcn.1000a010
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10041f5c
mov esp, ebp
pop ebp
ret 0x24
push edi
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
mov eax, dword [ebp + 0x24]
push eax
push eax
mov eax, dword [esp + 0x2c]
push 0
push dword [esp + 0x2c]
push esi
push dword [eax]
call dword [sym.imp.MSWSOCK.dll_AcceptEx]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1000b44e
cmp eax, 0x3e5
je 0x1000b44e
mov esi, dword [ebx + 4]
mov dword [edi + 8], eax
jmp 0x1000b2d9
mov esi, dword [ebx + 4]
lea ecx, [edi + 0x1c]
mov ebx, 1
xor eax, eax
mov edx, ebx
lock cmpxchg dword [ecx], edx
cmp eax, ebx
jne 0x1000b4a9
push edi
push 2
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1000b4a9
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [edi + 0x14], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1000b494
mov dword [eax + 0x14], edi
jmp 0x1000b497
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
lea eax, [esi + 0x34]
xchg dword [eax], ebx
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10041f5c
mov esp, ebp
pop ebp
ret 0x24