Function at 0x409e58
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xcc
mov dword [ebp - 0x84], sym.___gxx_personality_sj0
mov dword [ebp - 0x80], 0x45da00
lea eax, [ebp - 0x7c]
lea edx, [ebp - 0x18]
mov dword [eax], edx
mov edx, 0x40a1be
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x9c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, 0x8004667e
mov dword [esp + 4], eax
mov eax, dword [0x45f060]
mov dword [esp], eax
mov dword [ebp - 0x98], 0xffffffff
call sub.WSOCK32.DLL_ioctlsocket
sub esp, 0xc
mov byte [ebp - 0x1d], 1
mov eax, dword [0x45f060]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call method.NetworkMessage.WriteToSocket_unsigned_int_
test al, al
jne 0x409fbd
lea eax, [ebp - 0x48]
mov dword [esp], eax
call fcn.004415c0
lea eax, [ebp - 0x48]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Error__Could_not_send_message_to_server.
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x98], 7
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x98], 6
call sym.addConsoleMessage_std::string_
jmp 0x409f5c
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x98], 7
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string__
jmp 0x409fae
lea eax, [ebp - 0x48]
mov dword [esp], eax
call sym.std::allocator_char_::allocator__
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x98], 0xffffffff
call method.NetworkMessage.Reset__
cmp byte [ebp - 0x1d], 0
je 0x40a311
cmp dword [ebp + 0xc], 0
je 0x40a007
mov dword [esp + 4], 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call method.NetworkMessage.setEncryptionState_bool_
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call method.NetworkMessage.setEncryptionKey_unsigned_int_const_
mov eax, dword [0x45f060]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x98], 0xffffffff
call method.NetworkMessage.ReadFromSocket_unsigned_int_
test al, al
jne 0x40a108
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.004415c0
lea eax, [ebp - 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Error__Could_not_receive_message_from_server.
lea eax, [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0x98], 5
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea eax, [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0x98], 4
call sym.addConsoleMessage_std::string_
jmp 0x40a0a2
lea eax, [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0x98], 5
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string__
jmp 0x40a0f4
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sym.std::allocator_char_::allocator__
mov byte [ebp - 0x1d], 0
jmp 0x40a311
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x98], 0xffffffff
call method.NetworkMessage.InspectByte__
mov byte [ebp - 0x49], al
cmp byte [ebp - 0x49], 0xc
jne 0x40a311
mov eax, dword [ebp + 8]
mov dword [esp], eax
call method.NetworkMessage.GetByte__
lea edx, [ebp - 0x48]
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], edx
call method.NetworkMessage.GetString__
sub esp, 4
lea eax, [ebp - 0x38]
mov dword [ebp - 0xb8], eax
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x48]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Error__Unknown_message_received:
mov dword [esp], edx
mov dword [ebp - 0x98], 3
call method.std::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____char_const__std::basic_string_char__std::char_traits_char___std::allocator_char____const_
sub esp, 4
lea eax, [ebp - 0x68]
mov dword [esp + 8], 0x46008e
mov dword [esp + 4], eax
mov edx, dword [ebp - 0xb8]
mov dword [esp], edx
mov dword [ebp - 0x98], 2
call method.std::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
sub esp, 4
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x98], 1
call sym.addConsoleMessage_std::string_
jmp 0x40a256
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x98], 2
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string__
jmp 0x40a29c
lea eax, [ebp - 0x68]
mov dword [esp], eax
mov dword [ebp - 0x98], 3
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string__
mov byte [ebp - 0x1d], 0
jmp 0x40a2fc
lea eax, [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0x98], 0xffffffff
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string__
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, 0x8004667e
mov dword [esp + 4], eax
mov eax, dword [0x45f060]
mov dword [esp], eax
mov dword [ebp - 0x98], 0xffffffff
call sub.WSOCK32.DLL_ioctlsocket
sub esp, 0xc
movzx eax, byte [ebp - 0x1d]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x9c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0xa0]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret