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

Disassembly:
push 0xffffffffffffffff
push 0x531397
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b339c]
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.004c6a00
mov ecx, eax
call fcn.00402490
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 0x4dccf0
mov ebp, dword [esp + 0x98]
test esi, esi
je 0x4dcd04
cmp esi, dword [esp + 0x84]
je 0x4dcd0a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, ebp
je 0x4dcdd8
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 0x4dcdcd
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x4dcd48
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 0x4dcdd4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x4dcdc6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx]
jmp 0x4dccf0
mov eax, dword [esi]
jmp 0x4dcd3d
mov eax, dword [esi]
jmp 0x4dcdbb
push 0x56e400
mov ecx, edi
call dword [0x539464]
mov eax, dword [edi + 0x14]
push eax
push str.wsResponse.length__
push str..ServerToolkitDiscoveryChannel.cpp
push 0xc6
push str.ServerToolkit::CDiscoveryChannel::CreateQueryChannelsResponseMsg
call fcn.004c6a00
mov ecx, eax
call fcn.00402520
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 0x4dce61
jmp 0x4dce40
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 0x4dce40
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