Function at 0x517360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5893d7
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62d414]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [esp + 0x80]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
push str..ServerToolkitDiscoveryChannel.cpp
push 0xb9
push str.ServerToolkit::CDiscoveryChannel::CreateQueryChannelsResponseMsg
mov dword [esp + 0x84], 2
call fcn.0050c9d0
mov ecx, eax
call fcn.0041ac10
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x20]
push str._QueryChannelsResponse_ID_
push ecx
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___wchar_t_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push str.__Success_1__
push eax
push edi
mov byte [esp + 0x90], 3
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
add esp, 0x18
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 1
mov byte [esp + 0x78], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edx, dword [esp + 0x98]
mov ebx, dword [edx]
mov esi, dword [esp + 0x84]
jmp 0x517420
mov ebp, dword [esp + 0x98]
test esi, esi
je 0x517434
cmp esi, dword [esp + 0x84]
je 0x51743a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, ebp
je 0x517508
push str._Channel_
lea eax, [esp + 0x58]
push edi
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
add esp, 0xc
mov ebp, eax
mov byte [esp + 0x78], 4
test esi, esi
jne 0x5174fd
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x517478
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea eax, [ebx + 8]
push eax
lea ecx, [esp + 0x3c]
push ebp
push ecx
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push str.__Channel_
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x90], 5
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
add esp, 0x18
push eax
mov ecx, edi
mov byte [esp + 0x7c], 6
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x78], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test esi, esi
jne 0x517504
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x5174f6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx]
jmp 0x517420
mov eax, dword [esi]
jmp 0x51746d
mov eax, dword [esi]
jmp 0x5174eb
push 0x5b81f8
mov ecx, edi
call dword [0x598250]
mov eax, dword [edi + 0x14]
push eax
push str.wsResponse.length__
push str..ServerToolkitDiscoveryChannel.cpp
push 0xc6
push str.ServerToolkit::CDiscoveryChannel::CreateQueryChannelsResponseMsg
call fcn.0050c9d0
mov ecx, eax
call fcn.0041aca0
mov eax, dword [esp + 0x98]
mov esi, dword [eax]
mov dword [eax], eax
mov eax, dword [esp + 0x98]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x98]
xor ebp, ebp
mov byte [esp + 0x78], 7
mov dword [esp + 0x9c], ebp
cmp esi, eax
je 0x517591
jmp 0x517570
mov ebx, dword [esi]
lea ecx, [esi + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x9c]
add esp, 4
mov esi, ebx
cmp ebx, eax
jne 0x517570
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x88]
push eax
mov dword [esp + 0xa0], ebp
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 8
lea ecx, [esp + 0xa0]
mov byte [esp + 0x78], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x3c