Function at 0x4317a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5b86a0
push 0x538820
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5c4920]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x14]
test al, 2
je 0x43183e
mov esi, dword [edi + 0x18]
mov dword [ebp - 0x30], esi
lea ebx, [esi + 0x50]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebx + 0x18], 1
xor ebx, ebx
mov dword [esi + 0x74], ebx
mov dword [ebp - 4], ebx
mov edx, dword [esi]
mov eax, dword [ebp - 0x2c]
push eax
push edi
mov ecx, esi
mov edx, dword [edx + 0x34]
call edx
mov dword [ebp - 4], 0xfffffffe
call fcn.0043182b
jmp 0x4319b5
test al, 4
je 0x4319d3
push esi
call fcn.00431ed0
test eax, eax
jne 0x43187a
mov eax, dword [esi]
push str.Accept
push esi
mov ecx, dword [eax + 0x20]
call ecx
add esp, 8
or dword [edi + 0x14], 0x1000000
mov edx, dword [esi]
push 1
push edi
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 8]
push ecx
mov ecx, esi
mov edx, dword [edx + 0x14]
call edx
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x30], eax
mov ebx, dword [eax + 8]
push 4
lea ecx, [esi + 0xe4]
push ecx
push 0x700b
push 0xffff
mov edx, dword [eax + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4318c2
mov eax, dword [esi]
push str.setsockopt_SO_UPDATE_ACCEPT_CONTEXT__failed_to_update_accept_socket_n
push esi
mov ecx, dword [eax + 0x20]
call ecx
add esp, 8
push esi
mov ecx, ebx
call fcn.00431d80
jmp 0x4319b5
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x1388
mov dword [ebp - 0x20], 0xbb8
push 0
push 0
lea edx, [ebp - 0x44]
push edx
push 0
push 0
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0x98000004
mov edx, dword [ebx]
mov ecx, ebx
mov eax, dword [edx + 4]
call eax
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x431922
mov edx, dword [esi]
mov dword [ebp - 0x3c], edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Socket_Option_SIO_KEEPALIVE_VALS_Failed___d__r_n
push esi
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x20]
call ecx
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x2c]
push ecx
push 0x20
push 0x20
push eax
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov dword [ecx + 0x24], edx
mov edx, dword [eax + 4]
mov dword [ecx + 0x28], edx
mov edx, dword [eax + 8]
mov dword [ecx + 0x2c], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov dword [ecx + 0x14], edx
mov edx, dword [eax + 4]
mov dword [ecx + 0x18], edx
mov edx, dword [eax + 8]
mov dword [ecx + 0x1c], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0x20], eax
or dword [ebx + 0x74], 0x1000000
mov edx, dword [ebx]
push 0
mov ecx, ebx
mov eax, dword [edx + 0xc]
call eax
mov eax, dword [edi + 0x18]
call fcn.00431a60
test eax, eax
je 0x4319b5
cmp dword [edi + 0x1c], 0
je 0x4319b5
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
push edi
mov eax, dword [edx + 0x38]
call eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0053129a
mov esp, ebp
pop ebp
ret 0xc
test al, 0x11
jne 0x431a0d
test al, 0x20
je 0x4319b5
mov ecx, dword [edi + 0x18]
mov esi, dword [ecx + 8]
or dword [esi + 0x74], 0x1000000
mov edx, dword [esi]
push edi
push 1
mov ecx, esi
mov eax, dword [edx + 8]
call eax
mov edi, dword [edi + 0x18]
mov edx, dword [edi]
push 0
mov ecx, edi
mov eax, dword [edx + 0x20]
call eax
mov edx, dword [esi]
push 0
mov ecx, esi
mov eax, dword [edx + 0xc]
jmp 0x4319b3
mov esi, dword [edi + 0x18]
add esi, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 1
mov dword [esi + 0x18], eax
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
push edi
mov eax, dword [edx + 0x3c]
call eax
mov dword [ebp - 4], 0xfffffffe
call fcn.00431a44
jmp 0x4319b5