Function at 0x401a32
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0x74], edi
cmp dword [eax - 0xc], ecx
je 0x401cdc
mov edx, dword [ebp + 0xc]
cmp dword [edx - 0xc], ecx
je 0x401cdc
mov edx, dword [ebp + 0x10]
cmp dword [edx - 0xc], ecx
je 0x401cdc
push ecx
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov esi, eax
mov eax, dword [0x4341fc]
mov ebx, 0x4341fc
mov ecx, ebx
call dword [eax + 0xc]
push 0x10
pop ecx
add eax, ecx
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.004025a5
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x88]
push str._App_GetReadCount_md5_semail_svisitor_s
call fcn.00402bdd
mov eax, dword [ebp - 0x78]
add esp, 0x18
add eax, 0xfffffff0
call fcn.004018b2
test esi, esi
je 0x401ccb
push 0x13
pop ecx
mov esi, str.Content_Type:_text_html__charsetUTF_8
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00402647
mov dword [ebp - 0x78], eax
call fcn.0040265b
mov dword [ebp - 0x8c], eax
mov eax, dword [0x4341fc]
mov ecx, ebx
call dword [eax + 0xc]
push dword [ebp - 0x8c]
add eax, 0x10
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push str._cn__d_cxy__dhzr
lea eax, [ebp - 0x7c]
call fcn.00402bdd
mov eax, dword [0x4341fc]
add esp, 0xc
mov ecx, ebx
call dword [eax + 0xc]
push dword [ebp + 0x10]
add eax, 0x10
push dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
push dword [ebp + 8]
lea eax, [ebp - 0x70]
push str.email_sfilename_svisitor_s
call fcn.00402bdd
mov esi, dword [ebp - 0x70]
mov edi, dword [esi - 0xc]
add edi, edi
mov ecx, edi
call fcn.00427a40
push eax
mov dword [ebp - 0x84], eax
call fcn.0041676c
add esp, 0x14
cmp dword [esi - 4], 1
mov ebx, eax
jle 0x401b7b
push dword [esi - 0xc]
lea eax, [ebp - 0x70]
push eax
call fcn.004029fe
mov esi, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
push edi
call fcn.00427db0
pop ecx
push dword [ebp - 0x74]
lea eax, [ebp - 0x80]
push eax
push 0x10
pop ecx
call fcn.004025a5
mov ecx, dword [ebp - 0x84]
mov esi, eax
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.004025a5
push dword [esi]
push edi
push dword [eax]
lea eax, [ebp - 0x70]
push dword [ebp - 0x8c]
push dword [ebp - 0x78]
push str._App_ReadLog_r_dt_dkey_skeyLen_dmd5_s
call fcn.00402bdd
mov eax, dword [ebp - 0x74]
add esp, 0x28
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.004018b2
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push 0x42cd00
push eax
mov dword [ebp - 0x84], eax
call dword [sym.imp.WININET.dll_InternetConnectW]
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
push 0x42cd1c
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push ebx
mov esi, eax
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00416aee
pop ecx
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x401c66
xor eax, eax
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x74]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401c66
lea eax, [ebp - 0x18]
push eax
call fcn.00416957
pop ecx
mov dword [ebp - 0x74], eax
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call edi
push dword [ebp - 0x80]
call edi
push dword [ebp - 0x84]
call edi
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff0
call fcn.004018b2
cmp dword [ebp - 0x74], ebx
jne 0x401ccb
mov eax, dword [ebp - 0x88]
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.004018b2
xor eax, eax
inc eax
jmp 0x401cfc
mov eax, dword [ebp - 0x88]
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004018b2
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.004018b2
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004161d1
leave
ret