Function at 0x4025f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x404b86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x1c]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c8], ebp
je 0x402631
mov ecx, esi
call fcn.004028c0
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebp
mov dword [esi + 0x18], ebp
call edi
mov ecx, dword [esi + 8]
push ecx
call edi
lea edx, [esp + 0x30]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebp
je 0x402693
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Initialize_Socket_Fail_
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00402590
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c8], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x402899
mov eax, dword [esi + 0x24]
mov ebx, dword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
je 0x4026af
push ebp
push eax
call ebx
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
jne 0x4026d4
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Create_Socket_Fail_
jmp 0x402776
mov edi, dword [esp + 0x1d0]
mov ebp, dword [sym.imp.WS2_32.dll_inet_addr]
push edi
call ebp
cmp eax, 0xffffffff
push edi
jne 0x402704
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x40272d
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Hostname_Error_
jmp 0x402776
call ebp
push 2
lea ecx, [esp + 0x20]
push 4
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov edi, eax
test edi, edi
jne 0x40272d
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Hostname_Error_
jmp 0x402776
mov edx, dword [esp + 0x1d4]
mov word [esp + 0x20], 2
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
mov eax, dword [edi + 0xc]
push 0x10
mov ecx, dword [eax]
lea eax, [esp + 0x24]
push eax
mov edx, dword [ecx]
mov ecx, dword [esi + 0x24]
push ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.WS2_32.dll_connect]
or ebp, 0xffffffff
push ecx
cmp eax, ebp
mov ecx, esp
jne 0x4027b1
mov dword [esp + 0x18], esp
push str.Connect_POP3_Server_Fail_
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00402590
mov edx, dword [esi + 0x24]
push 0
push edx
call ebx
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esi + 0x24], eax
mov dword [esp + 0x1c8], eax
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x402899
mov dword [esp + 0x18], esp
push str.Connect_POP3_Server_Succeed_
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00402590
lea ecx, [esi + 0x14]
push ecx
push 0
push esi
push 0x402ec0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x14
mov dword [esi + 0x18], eax
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x406228
mov dword [esi + 0x1c], 1
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.004032d0
test eax, eax
jne 0x40281d
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c8], ebp
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x402899
push 0
push 0x3c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_2
mov edi, eax
lea ecx, [esp + 0x10]
push edi
push 0x3e
call sub.MFC42.DLL_CString::Find_2
test edi, edi
jl 0x402877
cmp eax, edi
jle 0x402877
sub eax, edi
lea ecx, [esp + 0x10]
inc eax
push eax
lea eax, [esp + 0x1c]
push edi
push eax
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esi + 0x4c]
mov byte [esp + 0x1cc], 1
call fcn.004045ec
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c8], 0
call sub.MFC42.DLL_CString::CString
jmp 0x402884
push 0x406594
lea ecx, [esi + 0x4c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c8], ebp
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x1c0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1bc
ret 8