Function at 0x406660
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x42400c]
xor eax, esp
mov dword [esp + 0x2e0], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [esp + 0x18], eax
mov ebx, ecx
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
push str.Content_Type:_application_x_www_form_urlencoded
push eax
call fcn.004016a0
push dword [ebx + 4]
lea eax, [ebx + 0x134]
push dword [ebx]
push eax
lea eax, [ebx + 8]
push eax
push esi
push edi
lea eax, [esp + 0x110]
push str.user_spass_sbrandname_svendor_sclock_d
push eax
call fcn.004016a0
mov al, byte [ebx + 0x2c8]
add esp, 0x28
mov byte [esp + 0xf], al
test al, al
je 0x406706
push 0
push str.frmdata__before_winversion_
lea eax, [esp + 0xf8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov al, byte [ebx + 0x2c8]
mov byte [esp + 0xf], al
lea ecx, [esp + 0xf0]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x406710
mov eax, dword [str.winversion]
lea edx, [ebx + 0x2b0]
mov dword [ecx], eax
mov esi, edx
mov eax, dword [0x41e00c]
mov dword [ecx + 4], eax
mov eax, dword [0x41e010]
mov dword [ecx + 8], eax
mov al, byte [0x41e014]
mov byte [ecx + 0xc], al
mov al, byte [edx]
inc edx
test al, al
jne 0x406741
lea edi, [esp + 0xf0]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406752
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + 0xf], al
je 0x406785
push 0
push str.frmdata__after_winversion_
lea eax, [esp + 0xf8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0
push 0
push 0
push str.MyAgent
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
je 0x406944
push 1
push 0
push 3
push 0
push 0
push 0x50
push dword [esp + 0x34]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
je 0x406944
push 1
push 0
push 0x4436e8
push 0
push 0
push dword [esp + 0x34]
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x406944
lea ecx, [esp + 0xf0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4067f0
sub ecx, edx
lea edx, [esp + 0x28]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x406800
push ecx
lea eax, [esp + 0xf4]
sub edx, edi
push eax
push edx
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x406852
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x406833
mov ecx, eax
jmp 0x40683c
movzx ecx, ax
or ecx, 0x80070000
push ecx
push eax
push str._nError:__d__HR___d
call fcn.004015e0
add esp, 0xc
call esi
jmp 0x40694a
push 0x2710
call fcn.0041a2e7
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
push 0
push eax
push dword [esp + 0x20]
push 0x16
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x406944
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x406944
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x406944
mov eax, dword [esp + 0x10]
mov byte [eax + edi + 1], 0
mov eax, dword [esp + 0x10]
mov byte [eax + edi + 2], 0
push dword [esp + 0x10]
push edi
push str._s__d
call fcn.004015e0
mov esi, dword [esp + 0x1c]
add esp, 0xc
push esi
push edi
push dword [esp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [eax], esi
mov al, byte [ebx + 0x2c8]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
test al, al
je 0x406922
push 0
push str.Data_____
push edi
push 0
call esi
mov al, byte [ebx + 0x2c8]
test al, al
je 0x406922
push 0
push 0x41e034
lea eax, [ebx + 0x2b0]
push eax
push 0
call esi
push 1
push edi
call fcn.0041a15e
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.0041a150
mov esp, ebp
pop ebp
ret 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
mov dword [ebx + 0x2c4], eax
mov byte [ebx + 0x2c0], 1
pop ebx
xor ecx, esp
call fcn.0041a150
mov esp, ebp
pop ebp
ret 0x1c