Function at 0x4566e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60e179
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x6a0f4c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x40]
movzx ecx, byte [eax + 0x5c]
test ecx, ecx
jne 0x456739
mov dword [ebp - 0x20], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x20]
jmp 0x45688a
mov dword [ebp - 0x18], 0x1388
push 4
lea edx, [ebp - 0x18]
push edx
push 0x1006
push 0xffff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x8004667e
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 0
je 0x45679a
cmp dword [ebp - 0x44], 1
je 0x4567e6
cmp dword [ebp - 0x44], 2
je 0x45682c
jmp 0x456870
movzx edx, word [ebp + 0x28]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x40]
call fcn.004568a0
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x24]
jmp 0x45688a
movzx eax, word [ebp + 0x28]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
lea edx, [ebp + 0xc]
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x40]
call fcn.004569f0
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x2c]
jmp 0x45688a
movzx edx, word [ebp + 0x28]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x38], esp
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x40]
call fcn.00456b60
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x34]
jmp 0x45688a
mov dword [ebp - 0x3c], 3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x24