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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cf9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
mov dword [ebp - 0x1f8], ecx
lea ecx, [ebp - 0x1b4]
call fcn.004054c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1f8]
cmp dword [eax + 0x1c], 0
je 0x401393
mov ecx, dword [ebp - 0x1f8]
call fcn.004017cc
mov ecx, dword [ebp - 0x1f8]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x1f8]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x1f8]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [ebp - 0x1b0]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
je 0x401446
push ecx
mov ecx, esp
mov dword [ebp - 0x1c8], esp
push str.Initialize_Socket_Fail_
call fcn.004218f8
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x1f8]
call fcn.004012e9
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.0042188a
mov eax, dword [ebp - 0x1cc]
jmp 0x4017bc
mov eax, dword [ebp - 0x1f8]
cmp dword [eax + 0x24], 0xffffffff
je 0x401474
push 0
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [ebp - 0x1f8]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x1f8]
cmp dword [eax + 0x24], 0xffffffff
jne 0x4014be
push ecx
mov ecx, esp
mov dword [ebp - 0x1d0], esp
push str.Create_Socket_Fail_
call fcn.004218f8
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x1f8]
call fcn.004012e9
jmp 0x40176b
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x401511
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
jne 0x40150f
push ecx
mov ecx, esp
mov dword [ebp - 0x1d4], esp
push 0x43a1c0
call fcn.004218f8
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x1f8]
call fcn.004012e9
jmp 0x40176b
jmp 0x40156a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c4], eax
push 2
push 4
lea ecx, [ebp - 0x1c4]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
jne 0x40156a
push ecx
mov ecx, esp
mov dword [ebp - 0x1d8], esp
push str.Hostname_Error_
call fcn.004218f8
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x1f8]
call fcn.004012e9
jmp 0x40176b
mov word [ebp - 0x1c], 2
mov dx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1f8]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4015d3
push ecx
mov ecx, esp
mov dword [ebp - 0x1dc], esp
push str.Connect_POP3_Server_Fail_
call fcn.004218f8
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x1f8]
call fcn.004012e9
jmp 0x40176b
push ecx
mov ecx, esp
mov dword [ebp - 0x1e0], esp
push str.Connect_POP3_Server_Succeed_
call fcn.004218f8
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x1f8]
call fcn.004012e9
mov ecx, dword [ebp - 0x1f8]
add ecx, 0x14
push ecx
push 0
mov edx, dword [ebp - 0x1f8]
push edx
push 0x40214f
push 0
push 0
call fcn.0040f80e
add esp, 0x18
mov ecx, dword [ebp - 0x1f8]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x1f8]
mov dword [edx + 0x1c], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x1e4], esp
push 0x43a21c
call fcn.004218f8
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x1b4]
push eax
mov ecx, dword [ebp - 0x1f8]
call fcn.004026fb
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x401692
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.0042188a
mov eax, dword [ebp - 0x1e8]
jmp 0x4017bc
push 0
push 0x3c
lea ecx, [ebp - 0x1b4]
call fcn.00421cd6
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x1c0]
push ecx
push 0x3e
lea ecx, [ebp - 0x1b4]
call fcn.00421cd6
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c0], 0
jl 0x401734
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x1c0]
jle 0x401734
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c0]
add eax, 1
push eax
mov ecx, dword [ebp - 0x1c0]
push ecx
lea edx, [ebp - 0x1ec]
push edx
lea ecx, [ebp - 0x1b4]
call fcn.00420834
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x220]
push ecx
mov ecx, dword [ebp - 0x1f8]
add ecx, 0x4c
call fcn.004219c3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1ec]
call fcn.0042188a
jmp 0x401747
push 0x43cd28
mov ecx, dword [ebp - 0x1f8]
add ecx, 0x4c
call fcn.00421a13
mov dword [ebp - 0x1f0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.0042188a
mov eax, dword [ebp - 0x1f0]
jmp 0x4017bc
push 0
mov edx, dword [ebp - 0x1f8]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [ebp - 0x1f8]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x1f8]
mov dword [eax + 0x24], 0xffffffff
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.0042188a
mov eax, dword [ebp - 0x1f4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8