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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd62c
mov eax, dword fs:[0]
push eax
mov eax, 0x5fe4
call fcn.00497500
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x24]
mov dword [ebp - 0x5f90], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5fb4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5fa4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x5fa0], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x5fac], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x5f94], eax
mov eax, dword [ebp + 0x30]
xor ebx, ebx
push 0x3c
mov dword [ebp - 0x5f98], eax
lea eax, [ebp - 0x5ff0]
push ebx
push eax
mov dword [ebp - 0x5f8c], ecx
mov dword [ebp - 0x5f9c], ebx
call fcn.00495b20
lea eax, [ebp - 0x730]
mov dword [ebp - 0x5fec], eax
lea eax, [ebp - 0x528]
mov dword [ebp - 0x5fe0], eax
lea eax, [ebp - 0x938]
mov dword [ebp - 0x5fd4], eax
lea eax, [ebp - 0xb40]
mov dword [ebp - 0x5fcc], eax
lea eax, [ebp - 0xd48]
mov dword [ebp - 0x5fc4], eax
lea eax, [ebp - 0xf50]
mov dword [ebp - 0x5fbc], eax
mov eax, 0x104
add esp, 0xc
mov dword [ebp - 0x5fd0], eax
mov dword [ebp - 0x5fc0], eax
mov dword [ebp - 0x5fe8], eax
mov dword [ebp - 0x5fc8], eax
mov dword [ebp - 0x5fdc], eax
mov dword [ebp - 0x5fb8], eax
lea eax, [ebp - 0x5ff0]
push eax
push ebx
push ebx
push edi
mov dword [ebp - 0x5ff0], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x454ab4
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x454ab4
cmp dword [ebp - 0x5fe4], 4
push 0x7e
sete al
push ebx
mov dword [ebp - 0x5fa8], eax
xor eax, eax
mov word [ebp - 0x118], ax
lea eax, [ebp - 0x116]
push eax
call fcn.00495b20
push ebx
push 0x40
lea eax, [ebp - 0x118]
push eax
push str.HKCUSoftwareKingsoftOffice6.0Commonupdateinfo_notmaptoip
call fcn.00450a65
mov edi, dword [ebp - 0x5f8c]
add esp, 0x1c
cmp dword [edi + 4], ebx
je 0x45477e
cmp eax, ebx
jne 0x4546f6
lea eax, [ebp - 0x118]
push 0x4c4cec
push eax
call fcn.00499872
pop ecx
pop ecx
test eax, eax
je 0x45477e
lea eax, [ebp - 0x528]
push eax
lea ecx, [ebp - 0x5f88]
call fcn.004025ee
lea eax, [ebp - 0x5f88]
push eax
lea eax, [ebp - 0x5f6c]
push eax
mov dword [ebp - 4], ebx
call fcn.00406f87
mov ecx, eax
call fcn.00454466
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x5f88]
call fcn.00401129
push 0x208
lea eax, [ebp - 0x528]
push ebx
push eax
call fcn.00495b20
mov eax, dword [ebp - 0x5f6c]
add esp, 0xc
cmp dword [ebp - 0x5f58], 8
jae 0x454761
lea eax, [ebp - 0x5f6c]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.0049755c
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x5f6c]
call fcn.00401129
mov eax, dword [edi]
cmp eax, ebx
je 0x45479e
add eax, 4
push eax
call fcn.00495461
pop ecx
test eax, eax
je 0x45479e
mov eax, dword [edi]
push ebx
push ebx
add eax, 4
push eax
push 3
jmp 0x4547a3
push ebx
push ebx
push ebx
push 1
push dword [ebp - 0x5f90]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
cmp eax, ebx
je 0x454ab4
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionExW]
push ebx
push 4
lea ecx, [ebp - 0x5f90]
push ecx
push 2
push eax
mov dword [ebp - 0x5f90], 0x7530
call edi
push ebx
push 4
lea eax, [ebp - 0x5f90]
push eax
push 5
push dword [esi]
call edi
push ebx
push 4
lea eax, [ebp - 0x5f90]
push eax
push 6
push dword [esi]
call edi
push dword [ebp - 0x5f8c]
mov eax, dword [ebp - 0x5fa8]
neg eax
sbb eax, eax
and eax, 0x800000
push eax
push 3
push dword [ebp - 0x5fcc]
push dword [ebp - 0x5fd4]
push dword [ebp - 0x5fd8]
push dword [ebp - 0x5fe0]
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, dword [ebp - 0x5fac]
mov dword [esi], eax
cmp eax, ebx
je 0x454ab4
xor eax, eax
push 0x4ffe
mov word [ebp - 0x5f50], ax
lea eax, [ebp - 0x5f4e]
push ebx
push eax
call fcn.00495b20
push dword [ebp - 0x5fc4]
lea eax, [ebp - 0x5f50]
push eax
call fcn.0049755c
push dword [ebp - 0x5fa4]
call fcn.00495461
add esp, 0x18
test eax, eax
je 0x4548a5
lea eax, [ebp - 0x5f50]
push 0x4c4d98
push eax
call fcn.0049752b
push dword [ebp - 0x5fa4]
lea eax, [ebp - 0x5f50]
push eax
call fcn.0049752b
add esp, 0x10
mov dword [ebp - 0x5fb0], 0x4d7650
mov dword [ebp - 0x5fac], ebx
mov edi, 0x84280000
cmp dword [ebp - 0x5fa8], ebx
je 0x4548db
mov ecx, dword [ebp - 0x5f8c]
mov edi, 0x84a80000
call fcn.004542b5
test al, al
je 0x4548db
mov edi, 0x84ac3000
push dword [ebp - 0x5f8c]
lea eax, [ebp - 0x5fb0]
push edi
push eax
push ebx
push ebx
lea eax, [ebp - 0x5f50]
push eax
push dword [ebp - 0x5fb4]
push dword [esi]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, dword [ebp - 0x5f94]
mov dword [edi], eax
cmp eax, ebx
je 0x454ab4
push 0xa0000000
mov esi, 0x4d7634
push esi
call fcn.00495461
pop ecx
push eax
push esi
push dword [edi]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x454ab4
push 0x14
pop ecx
mov esi, str.Content_Type:_application_octet_stream_r_n
lea edi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x98]
push 0xa0000000
push eax
movsw word es:[edi], word [esi]
call fcn.00495461
mov esi, dword [ebp - 0x5f94]
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
pop ecx
push eax
lea eax, [ebp - 0x98]
push eax
push dword [esi]
call edi
test eax, eax
je 0x454ab4
cmp dword [ebp - 0x5f98], ebx
je 0x4549a3
push 0xa0000000
push dword [ebp - 0x5f98]
call fcn.00495461
pop ecx
push eax
push dword [ebp - 0x5f98]
push dword [esi]
call edi
test eax, eax
je 0x454ab4
xor eax, eax
push 0x206
mov word [ebp - 0x320], ax
lea eax, [ebp - 0x31e]
push ebx
push eax
call fcn.00495b20
push dword [ebp + 0x20]
lea eax, [ebp - 0x320]
push str.Content_Length:__d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x320]
push 0xa0000000
push eax
call fcn.00495461
pop ecx
push eax
lea eax, [ebp - 0x320]
push eax
push dword [esi]
call edi
test eax, eax
je 0x454ab4
push dword [ebp + 0x20]
mov edi, dword [sym.imp.WININET.dll_HttpSendRequestW]
push dword [ebp - 0x5fa0]
push ebx
push ebx
push dword [esi]
call edi
test eax, eax
je 0x454ab4
push dword [esi]
mov ecx, dword [ebp - 0x5f8c]
call fcn.00452498
cmp eax, 0x197
jne 0x454a96
mov ecx, dword [ebp - 0x5f8c]
push esi
call fcn.004542ea
test eax, eax
je 0x454a96
push 0x32
lea eax, [ebp - 0x43]
push ebx
push eax
mov byte [ebp - 0x44], bl
call fcn.00495b20
add esp, 0xc
mov dword [ebp - 0x5f94], ebx
lea eax, [ebp - 0x5f94]
push eax
push 0x32
lea eax, [ebp - 0x44]
push eax
push dword [esi]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x454a76
cmp dword [ebp - 0x5f94], ebx
jne 0x454a55
push dword [ebp + 0x20]
push dword [ebp - 0x5fa0]
push ebx
push ebx
push dword [esi]
call edi
test eax, eax
je 0x454ab4
push dword [esi]
mov ecx, dword [ebp - 0x5f8c]
call fcn.00452498
push dword [esi]
mov ecx, dword [ebp - 0x5f8c]
call fcn.00452498
cmp eax, 0x12c
jae 0x454ab4
mov dword [ebp - 0x5f9c], 1
mov eax, dword [ebp - 0x5f9c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004959f8
leave
ret 0x2c