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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40e140
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push ebp
mov ebp, dword [esp + 0x188]
push esi
push edi
cmp dword [ebp], 0
je 0x408b23
mov eax, dword [0x4145fc]
cmp eax, 1
jne 0x4081eb
mov eax, dword [0x414600]
push str.SendEncryptedData
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x408197
push eax
push eax
push 0x413780
call sub.MFC42.DLL_AfxMessageBox_1
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x408171
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x408173
xor eax, eax
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [0x414600]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x408960
mov edx, dword [ebp]
push edx
push 0x4145b0
push 0x414590
call eax
test eax, eax
je 0x40895b
push 0
push 0
push 0x413780
call sub.MFC42.DLL_AfxMessageBox_1
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x4081cf
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x4081d1
xor eax, eax
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
call fcn.00408d70
jmp 0x40895b
cmp eax, 3
jne 0x4082ec
mov ecx, dword [0x4145f8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x40]
push ecx
push edx
call esi
mov eax, dword [0x4145f4]
lea ecx, [esp + 0x60]
push eax
push ecx
call esi
push str.PrxyAuth.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40823a
push eax
push 1
push 0x413754
call sub.MFC42.DLL_AfxMessageBox_1
xor eax, eax
jmp 0x408960
push str.LookupUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x60]
mov dword [0x414584], eax
push edx
mov edx, dword [ebp]
lea ecx, [esp + 0x44]
push ecx
push edx
call eax
dec eax
cmp eax, 0x1f
ja case.0x408269.1
xor ecx, ecx
mov cl, byte [eax + 0x408b44]
jmp dword [ecx*4 + 0x408b2c]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40895b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 0
push 0x413734
call sub.MFC42.DLL_AfxMessageBox_1
xor eax, eax
jmp 0x408960
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 0
push 0x41371c
call sub.MFC42.DLL_AfxMessageBox_1
xor eax, eax
jmp 0x408960
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 0
push 0x413704
call sub.MFC42.DLL_AfxMessageBox_1
xor eax, eax
jmp 0x408960
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 0
push 0x4136d4
call sub.MFC42.DLL_AfxMessageBox_1
xor eax, eax
jmp 0x408960
cmp eax, 0x12
jne 0x408344
push str.cjconnector.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x408316
push eax
push 1
push 0x413754
call sub.MFC42.DLL_AfxMessageBox_1
xor eax, eax
jmp 0x408960
push str.ConnectorKey
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x414588], eax
mov edx, dword [ebp]
push edx
call eax
cmp eax, 1
push esi
je 0x408271
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x408960
cmp eax, 6
jne 0x4083a5
mov eax, dword [0x4145f8]
mov edi, dword [eax - 8]
mov esi, edi
and esi, 0xffff
lea ebx, [esi + 2]
push ebx
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov ecx, esi
mov edx, ecx
mov eax, dword [esp + 0x194]
mov word [ebp], di
mov esi, dword [0x4145f8]
lea edi, [ebp + 2]
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 4
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
push ebp
push ecx
call sub.WSOCK32.dll_send
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x40895b
cmp eax, 0xd
jne 0x4083de
push 0x4136b0
lea edx, [esp + 0x18]
push 0x4145f8
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp]
push 0
push 0xb
push eax
push ecx
call sub.WSOCK32.dll_send
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x40895b
cmp eax, 9
jne 0x4086bd
mov edx, dword [0x41451c]
lea ecx, [esp + 0x1c]
push edx
call fcn.0040ce56
lea ecx, [esp + 0x1c]
mov dword [esp + 0x188], 0
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
mov eax, dword [eax - 8]
add eax, 0xfffffffb
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Right
lea edx, [esp + 0x14]
push 0x4134c4
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x190], 1
call sub.MFC42.DLL_CString::SpanExcluding
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
mov byte [esp + 0x188], 2
mov eax, dword [eax - 8]
mov esi, dword [ecx - 8]
sub eax, esi
lea ecx, [esp + 0x18]
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
lea eax, [esp + 0x30]
push 0x4134c4
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x190], 3
call sub.MFC42.DLL_CString::SpanExcluding
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov byte [esp + 0x188], 4
mov eax, dword [ecx - 8]
mov esi, dword [edx - 8]
sub eax, esi
lea ecx, [esp + 0x18]
dec eax
push eax
lea eax, [esp + 0x38]
push eax
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 0x38]
push 0x4134c4
mov bl, 5
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x190], bl
call sub.MFC42.DLL_CString::SpanExcluding
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x188], 6
mov eax, dword [edx - 8]
mov edx, dword [ecx - 8]
sub eax, edx
lea edx, [esp + 0x20]
dec eax
lea ecx, [esp + 0x18]
push eax
push edx
call sub.MFC42.DLL_CString::Right
lea eax, [esp + 0x24]
push 0x4134c4
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x190], 7
call sub.MFC42.DLL_CString::SpanExcluding
or ecx, 0xffffffff
mov edi, str.KwGwMGS
xor eax, eax
lea edx, [esp + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x4136a0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xa0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xb0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x100
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
push ecx
push edx
call sub.WSOCK32.dll_send
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x188], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x188], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x188], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x188], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x188], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x188], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x188], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x188], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x40895b
cmp eax, 0xa
je 0x4086d0
cmp eax, 0xc
je 0x4086d0
cmp eax, 0x14
jne 0x40895b
xor ebp, ebp
push ebp
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x28]
mov ebx, 8
push eax
push 0x4133d0
push 7
push ebp
push 0x4133c0
mov dword [esp + 0x19c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebp
jl 0x408739
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ole32.dll_OleRun]
mov esi, eax
cmp esi, ebp
jl 0x40872b
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
push 0x4133b0
mov edx, dword [eax]
push eax
call dword [edx]
mov esi, eax
mov eax, dword [esp + 0x28]
push eax
mov edx, dword [eax]
call dword [edx + 8]
cmp esi, ebp
jge 0x40875b
push ebp
push ebp
push 0x413390
call sub.MFC42.DLL_AfxMessageBox_1
mov eax, dword [esp + 0x10]
mov dword [esp + 0x188], 0xffffffff
cmp eax, ebp
jmp 0x408b1b
mov edi, dword [0x41451c]
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
cmp esi, ebp
mov byte [esp + 0x188], 9
je 0x4087a3
push edi
mov dword [esi + 4], ebp
mov dword [esi + 8], 1
call fcn.0040d56d
cmp eax, ebp
mov dword [esi], eax
jne 0x4087a5
cmp edi, ebp
je 0x4087a5
push 0x8007000e
call fcn.0040d4c0
jmp 0x4087a5
xor esi, esi
cmp esi, ebp
mov byte [esp + 0x188], bl
mov dword [esp + 0x20], esi
jne 0x4087be
push 0x8007000e
call fcn.0040d4c0
cmp esi, ebp
mov byte [esp + 0x188], 0xa
je 0x4087f3
mov eax, dword [esi]
cmp eax, ebp
je 0x4087f3
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, dword [esi]
push eax
push edx
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov ebx, eax
cmp ebx, ebp
jne 0x4087f5
push 0x8007000e
call fcn.0040d4c0
jmp 0x4087f5
xor ebx, ebx
push ecx
mov dword [esp + 0x28], esp
mov ebp, esp
push 0xc
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
mov byte [esp + 0x18c], 0xb
je 0x408843
push ebx
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [edi], eax
jne 0x408845
test ebx, ebx
je 0x408845
push 0x8007000e
call fcn.0040d4c0
jmp 0x408845
xor edi, edi
test edi, edi
mov byte [esp + 0x18c], 0xa
mov dword [ebp], edi
jne 0x40885e
push 0x8007000e
call fcn.0040d4c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x18c], 0xa
call fcn.00408da0
mov ecx, eax
call fcn.00407e80
lea eax, [esp + 0x3c]
push 0x2710
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
xor ebx, ebx
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], ebx
call fcn.00408da0
mov ecx, eax
call fcn.00408cd0
mov edi, dword [esp + 0x19c]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x194], 0xa
mov edx, dword [edi]
push edx
call fcn.00408da0
mov ecx, eax
call fcn.00408c20
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4088d6
push 0x80004003
call fcn.0040d4c0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
lea eax, [edx - 1]
cmp eax, 0xd
ja case.default.0x4088ec
jmp dword [eax*4 + 0x408b64]
mov eax, dword [esp + 0x194]
mov ecx, dword [edi]
push 0x31
push 0x464
push eax
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
cmp esi, ebx
je 0x408942
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x408942
mov eax, dword [esi]
cmp eax, ebx
je 0x408929
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x408939
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x188], 0xffffffff
cmp eax, ebx
je 0x40895b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x17c
ret
push ebx
push ebx
push str.Logon_Fail
call sub.MFC42.DLL_AfxMessageBox_1
cmp esi, ebx
je 0x4089c2
jmp 0x4089bb
push ebx
push ebx
push str.PID_Not_Found
call sub.MFC42.DLL_AfxMessageBox_1
cmp esi, ebx
je 0x408b0a
mov ecx, esi
call fcn.00408ba0
jmp 0x408b0a
push ebx
push ebx
push str.LID_Not_Found
call sub.MFC42.DLL_AfxMessageBox_1
cmp esi, ebx
je 0x4089c2
mov ecx, esi
call fcn.00408ba0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x188], 0xffffffff
cmp eax, ebx
je 0x408b23
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
jmp 0x408960
push ebx
push ebx
push 0x413668
call sub.MFC42.DLL_AfxMessageBox_1
cmp esi, ebx
je 0x408b0a
lea eax, [esi + 8]
push eax
jmp 0x408a33
push ebx
push ebx
push str.Server_Not_Found
jmp 0x408a22
push ebx
push ebx
push str.Incorrect_Password
jmp 0x408a22
push ebx
push ebx
push 0x41362c
jmp 0x408a22
push ebx
push ebx
push 0x413620
call sub.MFC42.DLL_AfxMessageBox_1
cmp esi, ebx
je 0x408b0a
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x408b0a
push 1
mov ecx, esi
call fcn.00407d60
jmp 0x408b0a
push ebx
push ebx
push 0x413614
call sub.MFC42.DLL_AfxMessageBox_1
cmp esi, ebx
je 0x408aa6
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x408aa6
jmp 0x408a96
push ebx
push ebx
push 0x413604
jmp 0x408a56
push ebx
push ebx
push 0x4135f4
call sub.MFC42.DLL_AfxMessageBox_1
cmp esi, ebx
je 0x408aa6
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x408aa6
mov ecx, esi
call fcn.00408bf0
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x188], 0xffffffff
cmp eax, ebx
je 0x408b23
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x408960
push ebx
push ebx
push 0x4135e0
call sub.MFC42.DLL_AfxMessageBox_1
cmp esi, ebx
je 0x408b0a
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x408b0a
mov eax, dword [esi]
cmp eax, ebx
je 0x408af1
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x408b01
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x188], 0xffffffff
cmp eax, ebx
je 0x408b23
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x408960