Function at 0x10004ee0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10033008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov dword [ebp - 8], ecx
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
lea ecx, [ebp - 0x10]
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10004f7a
call esi
cmp eax, 4
mov eax, dword [ebp - 0xc]
je 0x10004f10
push str.accept_conn
push 0x12fa
mov ecx, 1
call fcn.10003aa0
add esp, 8
test al, al
je 0x10005142
call esi
push eax
push dword [ebx + 0x34]
push str._lu_accept_failed__errno__d
call fcn.10003bb0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
xor ecx, ecx
mov eax, dword [eax + 0x40]
add eax, 0x90
setb cl
neg ecx
or ecx, eax
push ecx
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x10005110
mov ecx, dword [ebp - 8]
mov dword [esi + 4], ecx
mov dword [esi + 0x44], 0x800
mov dword [esi + 0x54], 0x800
inc dword [ecx + 0x1c]
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x34], eax
cmp dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 1
setne al
mov byte [esi + 0x2e], al
mov ax, word [ebp - 0x1e]
mov word [esi + 0x2c], ax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ecx]
mov dword [esi], eax
lea eax, [ebp - 0xc]
push eax
push 0x8004667e
mov dword [ecx], esi
push edi
mov dword [esi + 0x30], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 8]
push 4
push eax
push 1
push 6
push dword [esi + 0x30]
mov dword [ebp - 8], 1
call edi
push 4
lea eax, [ebp - 8]
push eax
push 8
push 0xffff
push dword [esi + 0x30]
call edi
or dword [esi + 0x8c], 4
lea edi, [esi + 8]
mov ecx, dword [ebx + 0x8c]
mov eax, dword [esi + 0x8c]
xor ecx, eax
and ecx, 0x800
xor ecx, eax
mov dword [esi + 0x8c], ecx
mov ecx, 3
movups xmm0, xmmword [ebx + 8]
push str.accept_conn
push 0x1313
movups xmmword [edi], xmm0
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [ebx + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [ebx + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [ebx + 0x5c]
mov dword [esi + 0x5c], eax
call fcn.10003aa0
add esp, 8
test al, al
je 0x100050af
push edi
push 0x10004720
lea eax, [esi + 0x1c]
push eax
push 0x10004720
push dword [esi + 0x30]
push dword [esi + 0x34]
push str._lu__p_accepted__M_____M
call fcn.10003bb0
add esp, 0x1c
mov eax, dword [esi + 0x58]
test eax, eax
je 0x100050c3
push dword [esi + 0x5c]
push 0
push 1
push esi
call eax
add esp, 0x10
mov eax, dword [esi + 0x60]
test eax, eax
je 0x100050d7
push dword [esi + 0x64]
push 0
push 1
push esi
call eax
add esp, 0x10
mov eax, dword [esi + 0x58]
test eax, eax
je 0x100050eb
push dword [esi + 0x5c]
push 0
push 5
push esi
call eax
add esp, 0x10
mov eax, dword [esi + 0x60]
test eax, eax
je 0x10005142
push dword [esi + 0x64]
push 0
push 5
push esi
call eax
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100127b8
mov esp, ebp
pop ebp
ret
push str.accept_conn
push 0x1302
mov ecx, 1
call fcn.10003aa0
add esp, 8
test al, al
je 0x1000513b
push dword [ebx + 0x34]
push str._lu_OOM
call fcn.10003bb0
add esp, 8
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100127b8
mov esp, ebp
pop ebp
ret