Function at 0x4410c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe500
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x591430]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push 0
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.00409ab0
mov ecx, dword [esi]
lea eax, [ebp - 0x24]
add esp, 8
push esi
push 0x4078e0
push eax
call fcn.00417930
lea esi, [edi + 4]
mov dword [edi], eax
mov dword [esi + 8], 0
xorps xmm0, xmm0
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 2
mov byte [esi + 0x24], 0
movups xmmword [esi + 0x28], xmm0
mov dword [ebp - 0x10], esi
movq qword [esi + 0x38], xmm0
mov dword [esi + 0x40], 0
mov dword [esi + 0x28], 2
mov dword [esi + 0x2c], 0
mov eax, dword [edi]
mov dword [esi], 0xffffffff
add eax, 0x14
mov byte [esi + 4], 0
mov edi, dword [esi + 0xc]
mov dword [esi + 0xc], 0
mov dword [ebp + 8], eax
mov dword [esi + 8], 0
test edi, edi
je 0x4411a6
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x4411a6
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x4411a6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp + 8]
mov dword [esi + 0x14], 0
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x4411d1
mov dword [eax + 0x1c], esi
lea eax, [edi + 0x14]
mov dword [edi + 0x2c], esi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
call fcn.004b9da0
mov ecx, dword [ebp + 0xc]
mov edx, 0x17
mov dword [ebp - 0x20], eax
mov eax, 2
cmp word [ecx], ax
mov ecx, dword [ebp - 0x14]
cmovne eax, edx
cmp dword [esi], 0xffffffff
mov dword [ebp - 0x1c], eax
mov ecx, dword [ecx]
mov dword [ebp - 0x18], ecx
je 0x44122a
lea edi, [edx - 0x16]
call fcn.00418490
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
jmp 0x4412ed
lea ecx, [ebp - 0x24]
push ecx
push 6
push 1
push eax
call fcn.0041c8c0
mov edi, eax
add esp, 0x10
mov dword [ebp + 8], edi
mov byte [ebp - 4], 1
cmp edi, 0xffffffff
jne 0x44124f
mov byte [ebp - 4], 0
jmp 0x44127e
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x2c]
mov ecx, dword [ecx + 0x18]
push eax
call fcn.0041a920
xor edx, edx
mov ecx, fcn.0040e7c0
cmp dword [eax], edx
cmove ecx, edx
test ecx, ecx
je 0x441287
lea ecx, [ebp + 8]
mov byte [ebp - 4], dl
call fcn.0040f210
mov edi, dword [ebp - 0x24]
test edi, edi
jne 0x4412f1
jmp 0x4412ba
push dword [ebp + 0x10]
lea ecx, [esi + 8]
mov dword [ebp + 8], 0xffffffff
push 0
mov dword [esi], edi
mov byte [esi + 4], 0x10
call fcn.00409e00
xor edi, edi
call fcn.004b9da0
lea ecx, [ebp + 8]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
call fcn.0040f210
mov eax, dword [ebp - 0x1c]
xorps xmm1, xmm1
movups xmmword [ebp - 0x48], xmm1
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x44], 0
movups xmm0, xmmword [ebp - 0x48]
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], 0
movups xmmword [esi + 0x28], xmm0
movq qword [esi + 0x38], xmm1
mov dword [esi + 0x40], 0
test edi, edi
je 0x4412ff
push str.open
lea eax, [ebp - 0x24]
push eax
call fcn.004178a0
cmp byte [ebp + 0x10], 0
je 0x441382
mov edi, dword [esi]
mov dword [ebp + 0x10], 1
cmp edi, 0xffffffff
jne 0x441325
mov edi, 0x2719
call fcn.004b9da0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
jmp 0x441370
push 0
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov edi, eax
call fcn.004b9da0
mov esi, eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
test edi, edi
jne 0x44136a
call fcn.004b9da0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
jmp 0x44136d
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
test edi, edi
je 0x441382
push str.set_option
lea eax, [ebp - 0x24]
push eax
call fcn.004178a0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
mov edx, 0x1c
mov eax, 0x10
cmp word [ecx], 2
cmovne eax, edx
push eax
push ecx
push dword [esi]
call fcn.00414970
add esp, 0x10
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x24], 0
je 0x4413ba
push str.bind
push eax
call fcn.004178a0
push eax
push bind
push dword [esi]
call fcn.004191d0
add esp, 0xc
cmp dword [ebp - 0x24], 0
je 0x4413de
push str.listen
lea eax, [ebp - 0x24]
push eax
call fcn.004178a0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc