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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7d33
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x4fa078]
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 edi, ecx
mov byte [ebp - 0x161], 1
lea ecx, [edi + 0x74]
mov al, 1
xchg byte [ecx], al
lea eax, [ebp - 0x194]
mov dword [ebp - fcn.004354b0], vtable.std::_Func_impl_no_alloc_class__lambda_6370701a6b7f0548d39d5232aed5f63a___void___.0
mov dword [ebp - 0x190], edi
mov dword [ebp - 0x170], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], 0
push eax
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 1
call fcn.004354b0
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x170]
test ecx, ecx
je 0x41a85f
mov edx, dword [ecx]
lea eax, [ebp - 0x194]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x170], 0
xor ecx, ecx
mov byte [ebp - 0x34], 1
mov byte [ebp - 4], 5
test ecx, ecx
je 0x41a889
mov edx, dword [ecx]
lea eax, [ebp - 0x194]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x170], 0
mov byte [ebp - 4], 4
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x41aab4
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 6
mov ebx, dword [sym.imp.WS2_32.dll_select]
nop word [eax + eax]
mov eax, dword [edi + 0x30]
cmp eax, 0xffffffff
je 0x41aa49
mov esi, dword [edi + 0x30]
mov eax, dword [edi + 0x6c]
mov edx, dword [edi + 0x68]
mov ecx, dword [edi + 0x60]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x160], 1
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
nop word [eax + eax]
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
lea eax, [ebp - 0x160]
push eax
lea eax, [esi + 1]
push eax
call ebx
mov esi, eax
test esi, esi
jns 0x41a91c
call fcn.004aed31
cmp dword [eax], 4
jne 0x41a91a
mov esi, dword [ebp - 0x20]
jmp 0x41a8f0
test esi, esi
jne 0x41a928
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x41a8b0
mov eax, dword [edi + 0x30]
push 0
push 0
push eax
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a9a4
call fcn.004aed31
cmp dword [eax], 0x18
jne 0x41a96b
lea ecx, [ebp - 0x16c]
mov dword [ebp - 0x16c], 1
mov dword [ebp - 0x168], 0
call fcn.0042be10
jmp 0x41a8b0
call fcn.004aed31
cmp dword [eax], 4
je 0x41a8b0
call fcn.004aed31
cmp dword [eax], 0xb
je 0x41a8b0
mov eax, dword [edi + 0x30]
cmp eax, 0xffffffff
je 0x41aa49
mov eax, dword [edi + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor bl, bl
jmp 0x41aa4f
push 0
push 0x3e8
push dword [edi + 0x4c]
push dword [edi + 0x48]
call fcn.004c5270
imul ecx, dword [edi + 0x40], 0x3e8
push 4
add eax, ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 0x1006
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0x3e8
push dword [edi + 0x5c]
push dword [edi + 0x58]
call fcn.004c5270
imul ecx, dword [edi + 0x50], 0x3e8
push 4
add eax, ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x1005
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 0x14]
sub esp, 0x28
mov eax, esp
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_d21d701827eb1bc28fbc665ce8617565___void___.0
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x41a8b0
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x41a8b0
mov bl, byte [ebp - 0x161]
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov dword [ebp - 4], 7
cmp byte [ebp - 0x34], 0
je 0x41aa7a
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x41aab9
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x41aa96
mov esi, dword [ecx]
lea eax, [ebp - 0x5c]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
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.0044b735
mov esp, ebp
pop ebp
ret
call fcn.00448624
call fcn.00448624
int3