Function at 0x406d90
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x407ff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push ecx
lea eax, [esp + 0x38]
xor esi, esi
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x34], esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
push ecx
call fcn.00402f00
add esp, 8
mov ebx, 1
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.0040746a
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
push edx
push edi
push 0x51e
push str.Do:_t_t_CWPhoneDlg::SendMsg2WebClient____LINE___d__sender___d__msg___s
call fcn.00402b70
mov ecx, dword [esp + 0x44]
push ecx
mov eax, dword [ecx - 8]
cdq
push edx
push eax
push ebx
push ebx
call fcn.004042f0
mov ebp, eax
mov eax, dword [esp + 0x60]
add esp, 0x24
cmp eax, ebx
jne 0x406e9f
mov esi, dword [0x40ec44]
mov eax, dword [0x40ec48]
cmp esi, eax
je 0x406fef
mov ebx, dword [sym.imp.WS2_32.dll_send]
lea edi, [esi + 8]
mov eax, dword [esi]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
je 0x406e8b
mov ecx, dword [edi]
push ecx
push eax
push 0x529
push str.Do:_t_t_CWPhoneDlg::SendMsg2WebClient____LINE___d__touser___d__socketname___s
call fcn.00402b70
mov edx, dword [ebp + 8]
mov eax, dword [ebp]
mov ecx, dword [esi]
add esp, 0x10
push 0
push edx
push eax
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x406e8b
push 0x52c
push str.Error:_t_t_CWPhoneDlg::send____LINE___d
call fcn.00402b70
add esp, 8
mov eax, dword [0x40ec48]
add esi, 0x10
add edi, 0x10
cmp esi, eax
jne 0x406e45
jmp 0x406fef
lea ecx, [esp + 0x1c]
call fcn.0040747c
or ebx, 0xffffffff
push 0x40ec5c
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 2
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
call fcn.004074b2
mov dword [esp + 0x20], esi
mov esi, dword [0x40ec44]
mov eax, dword [0x40ec48]
cmp esi, eax
mov byte [esp + 0x2c], 3
je 0x406f05
cmp edi, dword [esi]
je 0x406eeb
add esi, 0x10
cmp esi, eax
jne 0x406ede
jmp 0x406f05
lea edx, [esi + 8]
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi + 0xc]
mov dword [esp + 0x20], eax
mov ecx, dword [esi]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x1c]
push 0x40ec5c
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x406f20
mov dword [esp + 0x20], ebx
mov esi, dword [0x40ec44]
mov eax, dword [0x40ec48]
cmp esi, eax
je 0x406f5d
lea edi, [esi + 8]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov edx, dword [esi]
push eax
push ecx
push edx
push 0x543
push str.Echo:_t_t_CWPhoneDlg::SendMsg2WebClient____LINE___d__socket___d__socketname___s__sockettype___d
call fcn.00402b70
mov eax, dword [0x40ec48]
add esi, 0x10
add esp, 0x14
add edi, 0x10
cmp esi, eax
jne 0x406f32
mov esi, dword [0x40ec44]
cmp esi, eax
je 0x406fe1
mov ebx, dword [sym.imp.WS2_32.dll_send]
lea edi, [esi + 8]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
push 0x547
push str.Echo:_t_t_CWPhoneDlg::SendMsg2WebClient____LINE___d__socketname___s__sockettype___d
call fcn.00402b70
mov edx, dword [esp + 0x30]
mov eax, dword [edi + 4]
add esp, 0x10
cmp edx, eax
je 0x406fd2
mov eax, dword [edi]
mov ecx, dword [esi]
push eax
push ecx
push 0x54c
push str.Do:_t_t_CWPhoneDlg::SendMsg2WebClient____LINE___d__touser___d__socketname___s
call fcn.00402b70
mov edx, dword [ebp + 8]
mov eax, dword [ebp]
mov ecx, dword [esi]
add esp, 0x10
push 0
push edx
push eax
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x406fd2
push 0x54f
push str.Error:_t_t_CWPhoneDlg::send____LINE___d
call fcn.00402b70
add esp, 8
mov eax, dword [0x40ec48]
add esi, 0x10
add edi, 0x10
cmp esi, eax
jne 0x406f70
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call fcn.0040746a
push ebp
call fcn.004044a0
push 0x555
push str.Succ:_t_t_CWPhoneDlg::SendMsg2WebClient____LINE___d
call fcn.00402b70
add esp, 0xc
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040746a
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0xc