Function at 0x40ff96
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x89c
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x848]
cld
mov ecx, 0xa
mov eax, 0
rep stosd dword es:[edi], eax
mov dword [ebp - 0x848], 0x4cf
mov dword [esp + 4], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0040fcb9
mov dword [ebp - 0x858], eax
test eax, eax
jne 0x41003d
mov eax, dword [ebp - 0x848]
mov dword [esi], eax
mov eax, dword [ebp - 0x844]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x840]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x83c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x838]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x834]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x830]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x82c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x828]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x824]
mov dword [esi + 0x24], eax
jmp 0x410914
mov dword [ebp - 0x848], 0x4a4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.HTActivate
call sub.WININET.DLL_InternetOpenA
sub esp, 0x14
mov edi, eax
test eax, eax
jne 0x4100df
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x844], eax
mov edx, dword [ebp - 0x848]
mov dword [esi], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x840]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x83c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x838]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x834]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x830]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x82c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x828]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x824]
mov dword [esi + 0x24], eax
jmp 0x410914
mov dword [ebp - 0x84c], 0x7530
mov dword [esp + 0xc], 4
lea eax, [ebp - 0x84c]
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov dword [esp], edi
call sub.WININET.DLL_InternetSetOptionA
sub esp, 0x10
mov dword [ebp - 0x84c], 0x7530
mov dword [esp + 0xc], 4
lea eax, [ebp - 0x84c]
mov dword [esp + 8], eax
mov dword [esp + 4], 6
mov dword [esp], edi
call sub.WININET.DLL_InternetSetOptionA
sub esp, 0x10
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x50
mov dword [esp + 4], str.activate.htsoft.com
mov dword [esp], edi
call sub.WININET.DLL_InternetConnectA
sub esp, 0x20
mov dword [ebp - 0x85c], eax
test eax, eax
jne 0x4101ed
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x844], eax
mov edx, dword [ebp - 0x848]
mov dword [esi], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x840]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x83c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x838]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x834]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x830]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x82c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x828]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x824]
mov dword [esi + 0x24], eax
jmp 0x410914
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x80080300
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str._activate_
mov dword [esp + 4], str.POST
mov edx, dword [ebp - 0x85c]
mov dword [esp], edx
call sub.WININET.DLL_HttpOpenRequestA
sub esp, 0x20
mov ebx, eax
test eax, eax
jne 0x4102b0
mov edi, dword [ebp - 0x85c]
mov dword [esp], edi
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x844], eax
mov edx, dword [ebp - 0x848]
mov dword [esi], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x840]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x83c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x838]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x834]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x830]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x82c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x828]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x824]
mov dword [esi + 0x24], eax
jmp 0x410914
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0040f748
mov dword [ebp + 0x10], eax
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0x858]
mov dword [esp + 0x10], edx
mov edi, dword [ebp + 0xc]
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.serial_ssid_sversion_sal2
mov dword [esp + 4], 0x800
lea eax, [ebp - 0x818]
mov dword [esp], eax
call fcn.0044e850
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
lea edi, [ebp - 0x818]
cld
mov al, 0
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
lea edx, [ebp - 0x818]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x7a
mov dword [esp + 4], str.Content_type:_application_x_www_form_urlencoded_nUser_Agent:_HI_TECH_Product_Activator_nAccept:_application_activation_data_n
mov dword [esp], ebx
call sub.WININET.DLL_HttpSendRequestA
sub esp, 0x14
test eax, eax
je 0x4107b4
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x84c], 4
lea eax, [ebp - 0x850]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x84c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x854]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x20000013
mov dword [esp], ebx
call sub.WININET.DLL_HttpQueryInfoA
sub esp, 0x14
test eax, eax
je 0x410839
cmp dword [ebp - 0x854], 0x197
jne 0x4103da
mov dword [esp], 0
call sub.USER32.dll_GetTopWindow
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 7
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.WININET.DLL_InternetErrorDlg
sub esp, 0x14
cmp eax, 0x2f00
je 0x4102fc
cmp dword [ebp - 0x854], 0x12b
jbe 0x410470
mov eax, dword [ebp - 0x854]
mov dword [ebp - 0x844], eax
mov dword [esp], ebx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov edi, dword [ebp - 0x85c]
mov dword [esp], edi
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x848]
mov dword [esi], eax
mov eax, dword [ebp - 0x844]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x840]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x83c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x838]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x834]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x830]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x82c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x828]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x824]
mov dword [esi + 0x24], eax
jmp 0x410914
lea eax, [ebp - 0x84c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x800
lea eax, [ebp - 0x818]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.WININET.DLL_InternetReadFile
sub esp, 0x10
test eax, eax
jne 0x410524
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x844], eax
mov dword [esp], ebx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x85c]
mov dword [esp], eax
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x848]
mov dword [esi], eax
mov eax, dword [ebp - 0x844]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x840]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x83c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x838]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x834]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x830]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x82c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x828]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x824]
mov dword [esi + 0x24], eax
jmp 0x410914
mov dword [esp], ebx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov edx, dword [ebp - 0x85c]
mov dword [esp], edx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x84c]
mov byte [ebp + eax - 0x818], 0
mov dword [esp + 4], 0x4642fd
lea eax, [ebp - 0x818]
mov dword [esp], eax
call sub.msvcrt.dll_strtok
mov ebx, eax
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0
mov edi, dword [ebp + 0xc]
mov dword [esp], edi
call sub.msvcrt.dll__strdup
mov dword [ebp - 0x82c], eax
test ebx, ebx
je 0x410735
mov dword [esp + 4], str.activation
mov dword [esp], ebx
call fcn.0040ff52
mov dword [ebp - 0x86c], eax
test eax, eax
je 0x410613
mov edx, eax
cld
mov ecx, 0xffffffff
mov al, 0
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
shr ecx, 1
mov dword [ebp - 0x83c], ecx
mov dword [esp], ecx
call fcn.004131ff
mov dword [ebp - 0x840], eax
mov ecx, 0
cmp dword [ebp - 0x83c], 0
je 0x410717
mov edx, dword [ebp - 0x86c]
movsx eax, byte [edx + ecx*2]
sub eax, 0x41
shl eax, 4
add al, byte [edx + ecx*2 + 1]
sub al, 0x41
mov edx, dword [ebp - 0x840]
mov byte [edx + ecx], al
inc ecx
cmp dword [ebp - 0x83c], ecx
jne 0x4105e6
jmp 0x410717
mov dword [esp + 4], str.maxver
mov dword [esp], ebx
call fcn.0040ff52
mov dword [ebp - 0x86c], eax
test eax, eax
je 0x410640
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov dword [ebp - 0x830], eax
jmp 0x410717
mov dword [esp + 4], str.reg
mov dword [esp], ebx
call fcn.0040ff52
mov dword [ebp - 0x86c], eax
test eax, eax
je 0x41066e
cmp byte [eax], 0x31
sete al
movzx eax, al
mov dword [ebp - 0x824], eax
jmp 0x410717
mov dword [esp + 4], str.err
mov dword [esp], ebx
call fcn.0040ff52
mov dword [ebp - 0x86c], eax
test eax, eax
je 0x410698
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [ebp - 0x848], eax
jmp 0x410717
mov dword [esp + 4], 0x46431e
mov dword [esp], ebx
call fcn.0040ff52
mov dword [ebp - 0x86c], eax
test eax, eax
je 0x4106c2
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [ebp - 0x844], eax
jmp 0x410717
mov dword [esp + 4], str.HTTP_1.0_4
mov dword [esp], ebx
call fcn.0040ff52
mov dword [ebp - 0x86c], eax
test eax, eax
jne 0x4106f6
mov dword [esp + 4], str.HTTP_1.1_4
mov dword [esp], ebx
call fcn.0040ff52
mov dword [ebp - 0x86c], eax
test eax, eax
je 0x410717
mov eax, dword [ebp - 0x86c]
dec eax
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x848], 0x4a4
jmp 0x410735
mov dword [esp + 4], 0x4642fd
mov dword [esp], 0
call sub.msvcrt.dll_strtok
mov ebx, eax
test eax, eax
jne 0x410593
cmp dword [ebp - 0x848], 0
jne 0x4108bb
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x844]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x840]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x83c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x838]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x834]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x830]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x82c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x828]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x824]
mov dword [esp + 0x28], eax
mov dword [esp], esi
call fcn.0040fe30
sub esp, 4
jmp 0x410914
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x844], eax
mov dword [esp], ebx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov edi, dword [ebp - 0x85c]
mov dword [esp], edi
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x848]
mov dword [esi], eax
mov eax, dword [ebp - 0x844]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x840]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x83c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x838]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x834]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x830]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x82c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x828]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x824]
mov dword [esi + 0x24], eax
jmp 0x410914
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x844], eax
mov dword [esp], ebx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x85c]
mov dword [esp], eax
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov eax, dword [ebp - 0x848]
mov dword [esi], eax
mov eax, dword [ebp - 0x844]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x840]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x83c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x838]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x834]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x830]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x82c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x828]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x824]
mov dword [esi + 0x24], eax
jmp 0x410914
mov eax, dword [ebp - 0x848]
mov dword [esi], eax
mov eax, dword [ebp - 0x844]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x840]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x83c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x838]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x834]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x830]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x82c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x828]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x824]
mov dword [esi + 0x24], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4