Function at 0x422320
Capabilities:
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4431e0
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x450040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, 1
mov edi, 0x4550f8
mov byte [ebp - 0x119], bl
mov al, bl
xchg byte [edi], al
mov ecx, dword [0x4550a4]
test ecx, ecx
jne 0x42236f
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 0x120], eax
mov dword [ebp - 4], 0
mov eax, dword [0x4550a8]
cmp eax, 0xffffffff
je 0x42255c
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
nop word [eax + eax]
mov esi, dword [0x4550a8]
mov eax, dword [0x4550e4]
lea ebx, [esi + 1]
mov edx, dword [0x4550e0]
mov ecx, dword [0x4550d8]
mov dword [ebp - 0x124], eax
mov eax, dword [0x4550dc]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], edx
lea eax, [ebp - 0x130]
push eax
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x42240f
call edi
cmp dword [eax], 4
je 0x4223e7
test esi, esi
jne 0x422421
mov ecx, dword [ebp - 0x120]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x422543
mov eax, dword [0x4550a8]
push 0
push 0
push eax
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42249a
call edi
cmp dword [eax], 0x18
jne 0x422463
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x134], 0
call fcn.00401e30
jmp 0x422543
call edi
cmp dword [eax], 4
je 0x422543
call edi
cmp dword [eax], 0xb
je 0x422543
mov eax, dword [0x4550a8]
cmp eax, 0xffffffff
je 0x422551
mov eax, dword [0x4550a8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor bl, bl
jmp 0x422557
push 0
push 0x3e8
push dword [0x4550c4]
push dword [0x4550c0]
call fcn.00441320
imul ecx, dword [0x4550b8], 0x3e8
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
add eax, ecx
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x124]
push eax
push 0x1006
push 0xffff
push esi
call ebx
push 0
push 0x3e8
push dword [0x4550d4]
push dword [0x4550d0]
call fcn.00441320
imul ecx, dword [0x4550c8], 0x3e8
push 4
add eax, ecx
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x124]
push eax
push 0x1005
push 0xffff
push esi
call ebx
mov ecx, dword [ebp - 0x120]
sub esp, 0x28
mov eax, esp
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__private:_bool___thiscall_httplib::Server::listen_internal_void_::_5::_lambda_1___void___.0
mov dword [eax + 4], 0x455078
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x4550a8]
cmp eax, 0xffffffff
jne 0x4223a0
mov bl, byte [ebp - 0x119]
mov edi, 0x4550f8
mov esi, dword [ebp - 0x120]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
test esi, esi
je 0x422575
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
xor cl, cl
xchg byte [edi], cl
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004403ea
mov esp, ebp
pop ebp
ret