Function at 0x472ae0
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 0x66c039
mov eax, dword fs:[0]
push eax
mov eax, 0x1008
call fcn.004cba10
mov eax, dword [0x718924]
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 edi, ecx
mov dword [ebp - 0xfa4], edi
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xfc4], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xfc8], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0xfcc], ecx
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0xfc0], ecx
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 0xfac], ecx
xor ecx, ecx
mov dword [ebp - 0xfa8], ecx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xfb4], ecx
mov dword [ebp - 0xfd0], ecx
mov dword [ebp - 0x1000], ecx
mov dword [ebp - 0xff4], ecx
lea ecx, [ebp - 0x528]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x2c]
mov dword [ebp - 0x1008], ecx
lea ecx, [ebp - 0x730]
mov dword [ebp - 0xffc], ecx
lea ecx, [ebp - 0x938]
mov dword [ebp - 0xff0], ecx
lea ecx, [ebp - 0xb40]
mov dword [ebp - 0xfe8], ecx
lea ecx, [ebp - 0xd48]
mov dword [ebp - 0xfe0], ecx
lea ecx, [ebp - 0xf50]
mov dword [ebp - 0xfd8], ecx
lea ecx, [ebp - 0x100c]
push ecx
push 0
mov dword [ebp - 0xfb8], eax
mov eax, dword [ebp + 0xc]
push 0
push eax
mov dword [ebp - 0x100c], 0x3c
mov dword [ebp - 0xfec], 0x104
mov dword [ebp - 0xfdc], 0x104
mov dword [ebp - 0x1004], 0x104
mov dword [ebp - 0xfe4], 0x104
mov dword [ebp - 0xff8], 0x104
mov dword [ebp - 0xfd4], 0x104
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xfa0], eax
jne 0x472c77
push str.InternetCrackUrlW_fail.
lea ecx, [ebp - 0xf68]
call fcn.004514e0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0xfa0]
call esi
push eax
call fcn.00472a40
mov ecx, eax
call fcn.00474ea0
lea eax, [ebp - 0xf68]
push eax
call fcn.00472a40
mov ecx, eax
call fcn.00474eb0
lea ecx, [ebp - 0xf68]
call fcn.00448fb0
jmp 0x47368e
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x472c9c
push str.InternetAttemptConnect_fail.
lea ecx, [ebp - 0xf68]
call fcn.004514e0
mov dword [ebp - 4], 1
jmp 0x472c3f
xor eax, eax
cmp dword [ebp - 0x1000], 4
sete al
mov dword [ebp - 0xfbc], eax
call fcn.004afcf0
mov byte [ebp - 0xfad], al
test al, al
je 0x472cf2
cmp dword [ebp - 0xfbc], 0
jne 0x472cf2
push str.should_use_https_
push str.kupdate::KHttpUpload::OpenWeb
push 0xa5
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcwebhttpupload.cpp
push 0
call fcn.0048ffd0
add esp, 0x14
mov dword [edi + 8], 0xfffffffe
xor eax, eax
jmp 0x473699
mov eax, dword [edi]
test eax, eax
je 0x472d0a
add eax, 4
cmp word [eax], 0
je 0x472d0a
push 0
push 0
push eax
push 3
jmp 0x472d12
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebp - 0xfb8]
mov dword [ecx], eax
test eax, eax
jne 0x472d48
push str.InternetOpenW_fail.
lea ecx, [ebp - 0xf68]
mov dword [edi + 8], 0xfffffffd
call fcn.004514e0
mov dword [ebp - 4], 2
jmp 0x472c3f
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionExW]
lea ecx, [ebp - 0xfa8]
push 0
push 4
push ecx
push 2
push eax
mov dword [ebp - 0xfa8], 0x7530
call esi
push 0
push 4
lea eax, [ebp - 0xfa8]
push eax
mov eax, dword [ebp - 0xfb8]
push 5
push dword [eax]
call esi
push 0
push 4
lea eax, [ebp - 0xfa8]
push eax
mov eax, dword [ebp - 0xfb8]
push 6
push dword [eax]
call esi
mov eax, dword [ebp - 0xfbc]
push edi
shl eax, 0x17
push eax
mov eax, dword [ebp - 0xfb8]
push 3
push dword [ebp - 0xfe8]
push dword [ebp - 0xff0]
push dword [ebp - 0xff4]
push dword [ebp - 0xffc]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 0xfc0]
mov dword [ecx], eax
test eax, eax
jne 0x472df8
push str.InternetConnectW_fail.
lea ecx, [ebp - 0xf68]
mov dword [edi + 8], 0xfffffffc
call fcn.004514e0
mov dword [ebp - 4], 3
jmp 0x472c3f
mov ecx, dword [ebp - 0xfe0]
xor eax, eax
mov esi, ecx
mov dword [ebp - 0xfb8], ecx
mov dword [ebp - 0xf58], 0
mov dword [ebp - 0xf54], 7
mov word [ebp - 0xf68], ax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x472e26
sub esi, edx
sar esi, 1
cmp esi, 7
ja 0x472e5f
mov dword [ebp - 0xf58], esi
lea eax, [ebp - 0xf68]
add esi, esi
push esi
push ecx
push eax
call fcn.004e2b40
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0xf68], ax
jmp 0x472ed3
cmp esi, 0x7ffffffe
ja 0x4736b7
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x472e7e
mov eax, 0x7ffffffe
jmp 0x472e88
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0xfa8], eax
lea ecx, [ebp - 0xf68]
inc eax
push eax
call fcn.0044e740
mov dword [ebp - 0xf58], esi
mov edi, eax
mov eax, dword [ebp - 0xfa8]
add esi, esi
push esi
push dword [ebp - 0xfb8]
mov dword [ebp - 0xf54], eax
push edi
call fcn.004e25c0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov dword [ebp - 0xf68], edi
mov edi, dword [ebp - 0xfa4]
mov esi, dword [ebp - 0xfc8]
mov dword [ebp - 4], 4
test esi, esi
je 0x472f1d
cmp word [esi], 0
je 0x472f1d
push 1
push 0x676fe8
lea ecx, [ebp - 0xf68]
call fcn.0044e7a0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472f01
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xf68]
call fcn.0044e7a0
cmp dword [ebp - 0xfbc], 0
mov ecx, 0x84280000
mov dword [ebp - 0x1014], 0x67cc1c
mov dword [ebp - 0x1010], 0
je 0x472fe9
mov eax, dword [ebp - 0xffc]
mov edi, eax
mov dword [ebp - 0xfa8], eax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x472f54
sub edi, ecx
sar edi, 1
lea esi, [edi + 1]
push esi
call fcn.004cba04
push edi
mov edi, eax
mov dword [ebp - 0xfc8], eax
push 0
push edi
call fcn.004e30c0
push esi
push dword [ebp - 0xfa8]
push edi
call fcn.004f385a
add esp, 0x1c
cmp eax, 0xffffffff
je 0x472fb9
push edi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
setne al
mov byte [ebp - 0xf99], al
test edi, edi
je 0x472fc8
push edi
call fcn.004cb4e9
mov al, byte [ebp - 0xf99]
add esp, 4
jmp 0x472fc8
test edi, edi
je 0x472fc6
push edi
call fcn.004cb4e9
add esp, 4
xor al, al
mov edi, dword [ebp - 0xfa4]
movzx ecx, al
shl ecx, 0xc
add ecx, 0x84a80000
cmp byte [ebp - 0xfad], 0
jne 0x472fe9
or ecx, 0x43000
cmp dword [ebp - 0xf54], 8
lea eax, [ebp - 0xf68]
push edi
cmovae eax, dword [ebp - 0xf68]
push ecx
lea ecx, [ebp - 0x1014]
push ecx
push 0
push 0
push eax
mov eax, dword [ebp - 0xfc0]
push dword [ebp - 0xfc4]
push dword [eax]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebx], eax
test eax, eax
jne 0x4730c0
push str.HttpOpenRequestW_fail.
lea ecx, [ebp - 0xf80]
mov dword [edi + 8], 0xfffffffb
call fcn.004514e0
mov esi, dword [ebp - 0xfa0]
mov byte [ebp - 4], 5
call esi
push eax
call fcn.00472a40
mov ecx, eax
call fcn.00474ea0
lea eax, [ebp - 0xf80]
push eax
call fcn.00472a40
mov ecx, eax
call fcn.00474eb0
lea ecx, [ebp - 0xf80]
call fcn.00448fb0
mov edx, dword [ebp - 0xf54]
cmp edx, 8
jb 0x47368e
mov ecx, dword [ebp - 0xf68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4730b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4736bc
push edx
push ecx
call fcn.004cb4db
add esp, 8
jmp 0x47368e
mov edx, dword [ebp - 0xf54]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x473109
mov ecx, dword [ebp - 0xf68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4730fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4736bc
push edx
push ecx
call fcn.004cb4db
mov eax, dword [ebx]
add esp, 8
push 0xa0000000
push 0xd
push 0x67cc24
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x47316f
push str.HttpAddRequestHeaders_add_Accept_fail.
lea ecx, [ebp - 0xf80]
call fcn.004514e0
mov dword [ebp - 4], 6
mov esi, dword [ebp - 0xfa0]
call esi
push eax
call fcn.00472a40
mov ecx, eax
call fcn.00474ea0
lea eax, [ebp - 0xf80]
push eax
call fcn.00472a40
mov ecx, eax
call fcn.00474eb0
lea ecx, [ebp - 0xf80]
call fcn.00448fb0
jmp 0x47368e
mov ecx, 0x14
lea edi, [ebp - 0x118]
mov esi, str.Content_Type:_application_octet_stream_r_n
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x118]
lea edx, [ecx + 2]
movsw word es:[edi], word [esi]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473190
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
lea eax, [ebp - 0x118]
sub ecx, edx
push 0xa0000000
sar ecx, 1
push ecx
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x47320f
push str.HttpAddRequestHeaders_add_Hdrs_fail.
lea ecx, [ebp - 0xf80]
call fcn.004514e0
mov dword [ebp - 4], 7
mov esi, dword [ebp - 0xfa0]
call esi
push eax
call fcn.00472a40
mov ecx, eax
call fcn.00474ea0
lea eax, [ebp - 0xf80]
push eax
call fcn.00472a40
mov ecx, eax
call fcn.00474eb0
lea ecx, [ebp - 0xf80]
call fcn.00448fb0
mov edi, dword [ebp - 0xfa4]
jmp 0x47368e
mov edi, dword [ebp - 0xfac]
test edi, edi
je 0x47325a
mov ecx, edi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473220
sub ecx, edx
push 0xa0000000
sar ecx, 1
push ecx
push edi
push dword [ebx]
call esi
test eax, eax
jne 0x47325a
push str.HttpAddRequestHeaders_add_Headers_fail.
lea ecx, [ebp - 0xf80]
call fcn.004514e0
mov dword [ebp - 4], 8
jmp 0x4731d1
push 0x208
lea eax, [ebp - 0x320]
push 0
push eax
call fcn.004e30c0
push dword [ebp + 0x20]
lea eax, [ebp - 0x320]
push str.Content_Length:__d_r_n
push 0x104
push eax
call fcn.00462310
lea ecx, [ebp - 0x320]
add esp, 0x1c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473292
sub ecx, edx
lea eax, [ebp - 0x320]
push 0xa0000000
sar ecx, 1
push ecx
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x4732d2
push str.HttpAddRequestHeaders_add_ContentLength_fail.
lea ecx, [ebp - 0xf80]
call fcn.004514e0
mov dword [ebp - 4], 9
jmp 0x4731d1
cmp dword [ebp - 0xfbc], 0
je 0x47337c
call fcn.004af960
test al, al
je 0x47337c
xor eax, eax
mov dword [ebp - 0xf58], 0
push 0x18
lea ecx, [ebp - 0xf68]
mov dword [ebp - 0xf54], 7
mov word [ebp - 0xf68], ax
call fcn.0044e740
mov dword [ebp - 0xf58], 0x13
mov ecx, 9
mov dword [ebp - 0xf54], 0x17
mov esi, str.HttpsSecurityBypass
mov edi, eax
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
movsw word es:[edi], word [esi]
mov word [eax + 0x26], cx
mov dword [ebp - 0xf68], eax
mov eax, dword [ebp - 0xfb4]
or eax, 1
mov dword [ebp - 4], 0xa
mov dword [ebp - 0xfb4], eax
mov dword [ebp - 0xfa8], eax
lea eax, [ebp - 0xf68]
push eax
call fcn.004afe00
add esp, 4
mov byte [ebp - 0xf99], 1
test al, al
jne 0x473383
mov byte [ebp - 0xf99], 0
test byte [ebp - 0xfb4], 1
mov dword [ebp - 4], 0xffffffff
je 0x4733d3
mov edx, dword [ebp - 0xf54]
cmp edx, 8
jb 0x4733d3
mov ecx, dword [ebp - 0xf68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4733c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4736c1
push edx
push ecx
call fcn.004cb4db
add esp, 8
cmp byte [ebp - 0xf99], 0
je 0x47341b
lea eax, [ebp - 0xfac]
mov dword [ebp - 0xfac], 4
push eax
lea eax, [ebp - 0xfb4]
push eax
push 0x1f
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0xfb4], 0x380
lea eax, [ebp - 0xfb4]
push 4
push eax
push 0x1f
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push dword [ebp + 0x20]
push dword [ebp - 0xfcc]
push 0
push 0
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x47345d
mov edi, dword [ebp - 0xfa4]
lea ecx, [ebp - 0xf80]
push str.HttpSendRequest_fail.
mov dword [edi + 8], 0xfffffffa
call fcn.004514e0
mov dword [ebp - 4], 0xb
jmp 0x473137
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.004e30c0
add esp, 0xc
mov dword [ebp - 0xfc4], 0x80
lea eax, [ebp - 0xfac]
mov dword [ebp - 0xfac], 0
push eax
lea eax, [ebp - 0xfc4]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x20000013
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, dword [ebp - 0xfa4]
test eax, eax
je 0x4735b7
mov esi, dword [ebp - 0x90]
cmp esi, 0x197
jne 0x4735b9
push ebx
mov ecx, edi
call fcn.00473d40
test eax, eax
je 0x4735b9
push 0x33
lea eax, [ebp - 0xc4]
push 0
push eax
call fcn.004e30c0
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
mov dword [ebp - 0xfc0], 0
lea esp, [esp]
lea eax, [ebp - 0xfc0]
push eax
push 0x32
lea eax, [ebp - 0xc4]
push eax
push dword [ebx]
call esi
test eax, eax
je 0x473521
cmp dword [ebp - 0xfc0], 0
jne 0x473500
push dword [ebp + 0x20]
mov dword [edi + 8], 0x197
push dword [ebp - 0xfcc]
push 0
push 0
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x47355d
push str.HttpSendRequestByProxy_fail.
lea ecx, [ebp - 0xf80]
call fcn.004514e0
mov dword [ebp - 4], 0xc
jmp 0x473137
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.004e30c0
add esp, 0xc
mov dword [ebp - 0xfc4], 0x80
lea eax, [ebp - 0xfac]
mov dword [ebp - 0xfac], 0
push eax
lea eax, [ebp - 0xfc4]
push eax
lea eax, [ebp - 0x90]
push eax
push 0x20000013
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x90]
jmp 0x4735b9
xor esi, esi
mov eax, dword fs:[0x2c]
mov ecx, dword [0x72249c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x720b40]
mov dword [ebp - 0xfac], ecx
cmp eax, dword [ecx + 4]
jg 0x4736c6
push esi
mov ecx, 0x720b18
call fcn.00474ee0
mov dword [edi + 8], esi
cmp esi, 0x12c
jb 0x47363d
push str.HttpSendRequest_StatusCode_300.
lea ecx, [ebp - 0xf98]
call fcn.004514e0
push 0x7fff
mov dword [ebp - 4], 0xe
call fcn.00472a40
mov ecx, eax
call fcn.00474ea0
lea eax, [ebp - 0xf98]
push eax
call fcn.00472a40
mov ecx, eax
call fcn.00474eb0
lea ecx, [ebp - 0xf98]
call fcn.00448fb0
jmp 0x473688
cmp dword [ebp - 0xfbc], 0
je 0x47367e
mov ecx, dword [ebp - 0xfac]
mov eax, dword [0x720914]
cmp eax, dword [ecx + 4]
jg 0x473714
mov ecx, 0x71ff58
call fcn.0045a970
test al, al
je 0x47367e
push ebx
mov ecx, edi
call fcn.00473fe0
test al, al
jne 0x47367e
mov dword [edi + 8], 0xfffffff4
mov dword [ebp - 0xfd0], 1
mov esi, dword [ebp - 0xfa0]
call esi
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0xfd0]
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.004cb998
mov esp, ebp
pop ebp
ret 0x2c
call fcn.0044e270
call fcn.004e6589
call fcn.004e6589
push 0x720b40
call fcn.004cb872
add esp, 4
cmp dword [0x720b40], 0xffffffff
jne 0x4735df
mov ecx, 0x720b18
mov dword [ebp - 4], 0xd
call fcn.00474e60
push 0x672cd0
call fcn.004cb72a
push 0x720b40
mov dword [ebp - 4], 0xffffffff
call fcn.004cb828
add esp, 8
jmp 0x4735df
push 0x720914
call fcn.004cb872
add esp, 4
cmp dword [0x720914], 0xffffffff
jne 0x47365d
mov ecx, 0x71ff58
mov dword [ebp - 4], 0xf
call fcn.004515d0
push 0x6729d0
call fcn.004cb72a
push 0x720914
mov dword [ebp - 4], 0xffffffff
call fcn.004cb828
add esp, 8
jmp 0x47365d