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

Disassembly:
push 0xffffffffffffffff
push 0x4aebc2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, ecx
test esi, esi
mov dword [esp + 0x10], edi
jne 0x4936bf
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 8
mov ecx, esi
call fcn.0046a590
push eax
mov ecx, esi
call fcn.0046a580
push eax
mov ecx, edi
call fcn.00492680
test eax, eax
je 0x49373a
mov ecx, esi
call fcn.0046a580
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00464c70
add esp, 8
mov eax, dword [eax + 4]
mov ebx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
test eax, eax
mov dword [esp + 0x70], 0
je 0x493706
mov ebx, eax
mov ecx, esi
call fcn.0046a590
and eax, 0xffff
push eax
push ebx
push str.Peer_Duplicated__s__d
push 0x4d35d0
call fcn.0045ee70
add esp, 0x10
lea ecx, [esp + 0x2c]
mov dword [esp + 0x70], 0xffffffff
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [edi + 0x140]
test eax, eax
je 0x4937ed
mov ecx, esi
call fcn.0046a580
push eax
call fcn.00492220
add esp, 4
cmp eax, 1
jne 0x4937ed
mov ecx, esi
call fcn.0046a580
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00464c70
add esp, 8
mov eax, dword [eax + 4]
mov dword [esp + 0x70], 1
test eax, eax
jne 0x49378a
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push str.disable_lan_peer__s
push 0x4d35d0
call fcn.0045ee70
mov ecx, dword [esp + 0x3c]
add esp, 0xc
test ecx, ecx
je 0x4937d7
mov al, byte [ecx - 1]
test al, al
je 0x4937cb
cmp al, 0xff
je 0x4937cb
dec al
pop edi
mov byte [ecx - 1], al
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 8
add ecx, 0xfffffffe
push ecx
call fcn.00442ac0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 8
mov eax, dword [edi + 0x134]
push ebp
mov ebp, dword [eax]
cmp ebp, eax
je 0x4938c9
mov ebx, dword [ebp + 0x10]
mov ecx, esi
call fcn.0046a580
mov edx, dword [ebx + 0xa4]
cmp dword [edx + 4], eax
jne 0x49385f
xor eax, eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x31], eax
push ecx
mov dword [esp + 0x39], eax
mov ecx, esi
mov dword [esp + 0x3d], eax
mov byte [esp + 0x34], 0
mov dword [esp + 0x41], eax
mov word [esp + 0x45], ax
mov byte [esp + 0x47], al
call fcn.0046ac30
mov edi, dword [ebx + 0xa4]
mov ecx, 3
add edi, 0x40
lea esi, [esp + 0x38]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x4938a7
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x7c]
mov eax, dword [ebp + 8]
mov ecx, dword [0x515d38]
cmp eax, ecx
je 0x493880
mov ebp, eax
mov eax, dword [ebp]
cmp eax, ecx
je 0x493899
mov ebp, eax
mov eax, dword [ebp]
cmp eax, ecx
jne 0x493875
jmp 0x493899
mov eax, dword [ebp + 4]
cmp ebp, dword [eax + 8]
jne 0x493892
mov ebp, eax
mov eax, dword [eax + 4]
cmp ebp, dword [eax + 8]
je 0x493888
cmp dword [ebp + 8], eax
je 0x493899
mov ebp, eax
cmp ebp, dword [edi + 0x134]
jne 0x4937fe
jmp 0x4938c9
mov eax, dword [ebx + 0xa4]
push 0x22e
push 3
mov ecx, dword [eax + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00492d80
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x7c]
mov ecx, esi
call fcn.0046a580
mov ecx, esi
mov dword [esp + 0x50], eax
call fcn.0046a590
mov ecx, esi
mov word [esp + 0x54], ax
call fcn.0046ac70
mov ecx, esi
mov byte [esp + 0x56], al
call fcn.0046ac80
lea edx, [esp + 0x58]
mov ecx, esi
push edx
mov byte [esp + 0x5b], al
call fcn.0046ac30
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x48], ecx
mov ecx, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], edx
call fcn.0046a590
push eax
mov ecx, esi
call fcn.0046a580
push eax
mov ecx, edi
call fcn.00492680
test eax, eax
pop ebp
je 0x49394d
mov esi, dword [eax + 0x14]
mov ecx, edi
push esi
call fcn.004935e0
push 0
push 0
push esi
mov ecx, edi
call fcn.00492d80
lea eax, [esp + 0x40]
push 1
push eax
mov ecx, edi
call fcn.004926e0
push 0x4d36e0
mov ecx, 0x4d36e4
call fcn.0047d030
mov ecx, dword [0x4d36e8]
mov edx, dword [0x4d36e0]
cmp eax, ecx
mov dword [esp + 0x14], eax
je 0x493989
cmp edx, dword [eax + 0xc]
jb 0x493989
lea eax, [esp + 0x14]
jmp 0x493991
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x18]
cmp dword [eax], ecx
je 0x49399e
inc edx
mov dword [0x4d36e0], edx
jmp 0x49395b
mov ebx, dword [0x4d21ac]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 1
mov esi, dword [ecx + 4]
cmp esi, ebx
mov edi, ecx
mov al, 1
je 0x4939d4
mov eax, dword [esi + 0xc]
mov edi, esi
cmp edx, eax
setb al
test al, al
je 0x4939cd
mov esi, dword [esi]
jmp 0x4939d0
mov esi, dword [esi + 8]
cmp esi, ebx
jne 0x4939bb
mov bl, byte [0x4d36ec]
test bl, bl
je 0x493a01
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edi
push esi
push edx
mov ecx, 0x4d36e4
call fcn.0044cf80
mov eax, dword [eax]
mov byte [esp + 0x28], 1
mov dword [esp + 0x24], eax
jmp 0x493a7f
test al, al
mov dword [esp + 0x14], edi
je 0x493a3c
cmp edi, dword [ecx]
jne 0x493a2f
lea ecx, [esp + 0xe]
lea edx, [esp + 0x1c]
push ecx
push edx
push edi
lea eax, [esp + 0x24]
push esi
push eax
mov ecx, 0x4d36e4
mov byte [esp + 0x22], 1
call fcn.0044cf80
jmp 0x493a75
lea ecx, [esp + 0x14]
call fcn.0044d8d0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0xc], edx
jae 0x493a67
lea edx, [esp + 0xe]
lea eax, [esp + 0x1c]
push edx
push eax
push edi
lea ecx, [esp + 0x24]
push esi
push ecx
mov ecx, 0x4d36e4
mov byte [esp + 0x22], 1
call fcn.0044cf80
jmp 0x493a75
lea edx, [esp + 0xf]
mov byte [esp + 0xf], 0
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.00440d30
mov eax, dword [0x4d36e0]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x10]
mov esi, eax
inc eax
mov dword [0x4d36e0], eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00492680
push eax
push esi
mov ecx, edi
call fcn.00492b90
cmp eax, 1
je 0x493ae9
push 0
push 3
push esi
mov ecx, edi
call fcn.00492d80
push esi
push str.Remove_cid__d
push 0x4d35d0
call fcn.0045ee70
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 8
mov ecx, dword [esp + 0x7c]
mov dword [ecx], esi
mov eax, dword [edi + 0x34]
mov ecx, dword [esp + 0x68]
inc eax
mov dword [edi + 0x34], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 8