Function at 0x4d3190
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x18], ecx
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x1c], eax
nop dword [eax + eax]
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4d322a
call esi
cmp eax, 4
mov eax, dword [ebp - 0x1c]
je 0x4d31c0
push str.accept_conn
push 0x1289
mov ecx, 1
call fcn.004d0c50
add esp, 8
test al, al
je 0x4d33f3
call esi
push eax
push dword [ebx + 0x44]
push str._lu_accept_failed__errno__d
call fcn.004d0d30
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c]
add eax, 0xa0
push eax
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 0x4d33c1
mov ecx, dword [ebp - 0x18]
mov dword [esi + 4], ecx
mov dword [esi + 0x54], 0x800
mov dword [esi + 0x64], 0x800
inc dword [ecx + 0x1c]
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x44], eax
cmp dword [ebp - 0x20], 0x10
mov dword [ebp - 0x1c], 1
setne al
mov byte [esi + 0x3c], al
mov ax, word [ebp - 0x12]
mov word [esi + 0x24], ax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [ecx]
mov dword [esi], eax
lea eax, [ebp - 0x1c]
push eax
push 0x8004667e
mov dword [ecx], esi
push edi
mov dword [esi + 0x40], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x18]
push 4
push eax
push 1
push 6
push dword [esi + 0x40]
mov dword [ebp - 0x18], 1
call edi
push 4
lea eax, [ebp - 0x18]
push eax
push 8
push 0xffff
push dword [esi + 0x40]
call edi
or dword [esi + 0x9c], 4
lea edi, [esi + 8]
mov ecx, dword [ebx + 0x9c]
mov eax, dword [esi + 0x9c]
xor ecx, eax
and ecx, 0x800
xor ecx, eax
mov dword [esi + 0x9c], ecx
mov ecx, 3
movups xmm0, xmmword [ebx + 8]
push str.accept_conn
push 0x12a2
movups xmmword [edi], xmm0
movq xmm0, qword [ebx + 0x18]
movq qword [edi + 0x10], xmm0
mov eax, dword [ebx + 0x20]
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x70]
mov dword [esi + 0x70], eax
mov eax, dword [ebx + 0x74]
mov dword [esi + 0x74], eax
mov eax, dword [ebx + 0x68]
mov dword [esi + 0x68], eax
mov eax, dword [ebx + 0x6c]
mov dword [esi + 0x6c], eax
call fcn.004d0c50
add esp, 8
test al, al
je 0x4d3360
push edi
push 0x4d1700
lea eax, [esi + 0x24]
push eax
push 0x4d1700
push dword [esi + 0x40]
push dword [esi + 0x44]
push str._lu__p_accepted__M_____M
call fcn.004d0d30
add esp, 0x1c
mov eax, dword [esi + 0x68]
test eax, eax
je 0x4d3374
push dword [esi + 0x6c]
push 0
push 1
push esi
call eax
add esp, 0x10
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4d3388
push dword [esi + 0x74]
push 0
push 1
push esi
call eax
add esp, 0x10
mov eax, dword [esi + 0x68]
test eax, eax
je 0x4d339c
push dword [esi + 0x6c]
push 0
push 5
push esi
call eax
add esp, 0x10
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4d33f3
push dword [esi + 0x74]
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.004f1f57
mov esp, ebp
pop ebp
ret
push str.accept_conn
push 0x1291
mov ecx, 1
call fcn.004d0c50
add esp, 8
test al, al
je 0x4d33ec
push dword [ebx + 0x44]
push str._lu_OOM
call fcn.004d0d30
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.004f1f57
mov esp, ebp
pop ebp
ret