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

Disassembly:
push 0xffffffffffffffff
push 0x404bc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x1c]
mov byte [esp + 0x12c], 2
cmp eax, ebx
mov dword [esi + 0x20], ebx
jne 0x4029f3
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Socket_not_Create_
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00402590
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x402d36
cmp dword [esp + 0x13c], ebx
je 0x402b3e
mov ecx, dword [esi + 0x4c]
lea eax, [esi + 0x4c]
cmp dword [ecx - 8], ebx
jne 0x402a19
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Apop_error_
jmp 0x4029ab
mov edx, dword [esp + 0x138]
push edx
push eax
lea eax, [esp + 0x28]
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 3
call fcn.004045ec
lea ecx, [esp + 0x20]
mov byte [esp + 0x12c], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.004036d0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 4
call fcn.004045ec
lea ecx, [esp + 0x20]
mov byte [esp + 0x12c], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x134]
push edx
push eax
lea ecx, [esp + 0x2c]
push str.apop__s__s_r_n
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
or ebp, 0xffffffff
lea edi, [esp + 0x34]
mov ecx, ebp
xor eax, eax
add esp, 0x10
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x24]
push ebx
not ecx
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
push ecx
cmp eax, ebp
mov ecx, esp
jne 0x402aef
mov dword [esp + 0x20], esp
push str.Socket_error_
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00402590
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
jmp 0x402cc1
mov dword [esp + 0x20], esp
push 0x406228
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004032d0
cmp eax, ebx
je 0x402cc1
push ebx
push 0x2d
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jne 0x402b32
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Username_or_Password_error_
jmp 0x402cb5
mov dword [esi + 0x20], 1
jmp 0x402d00
mov edx, dword [esp + 0x134]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push edx
lea eax, [esp + 0x28]
push str.user__s_r_n
push eax
call ebp
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x24]
push ebx
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
or edi, 0xffffffff
push ecx
cmp eax, edi
mov ecx, esp
jne 0x402bd7
mov dword [esp + 0x20], esp
push str.Socket_error_
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00402590
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], edi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x402d36
mov dword [esp + 0x20], esp
push 0x406228
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.004032d0
cmp eax, ebx
je 0x402b9f
push ebx
push 0x2d
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jne 0x402c1f
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.User_Name_error_
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00402590
jmp 0x402b9f
mov ecx, dword [esp + 0x138]
lea edx, [esp + 0x24]
push ecx
push str.pass__s_r_n
push edx
call ebp
or ebp, 0xffffffff
lea edi, [esp + 0x30]
mov ecx, ebp
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
mov ecx, dword [esi + 0x24]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
push ecx
cmp eax, ebp
mov ecx, esp
jne 0x402c7b
mov dword [esp + 0x20], esp
push str.Socket_error_
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00402590
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
jmp 0x402cc1
mov dword [esp + 0x20], esp
push 0x406228
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.004032d0
cmp eax, ebx
je 0x402cc1
push ebx
push 0x2d
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jne 0x402cf6
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.User_or_Password_error_
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00402590
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], ebp
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x402d36
mov dword [esi + 0x20], 1
or ebp, 0xffffffff
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], ebp
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x120
ret 0xc