Function at 0x4061a2
Capabilities:
Check for time delay via gettickcount
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push 0xe0
mov eax, 0x434a19
call fcn.0041c5c3
mov dword [ebp - 0xe4], edx
mov dword [ebp - 0xe8], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc4], eax
xor ebx, ebx
mov dword [ebp - 4], 1
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_4.0__compatible__MSIE_7.0__Trident_5.0___IM_CustomChannel_
mov dword [ebp - 0xa4], ebx
mov edi, ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xa0], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0xb8], eax
test eax, eax
jne 0x406209
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4065de
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004028c8
lea esi, [eax + 0x10]
mov dword [ebp - 0xc0], esi
mov byte [ebp - 4], 2
cmp dword [esi - 4], 1
jle 0x40623b
push dword [esi - 0xc]
lea ecx, [ebp - 0xc0]
call fcn.004024d2
mov esi, dword [ebp - 0xc0]
push ebx
push 0x50
push esi
push dword [ebp - 0xb8]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0xac], edi
test edi, edi
jne 0x40626c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.004045c1
jmp 0x4065de
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.004028c8
lea edi, [eax + 0x10]
mov dword [ebp - 0xc8], edi
mov byte [ebp - 4], 3
cmp dword [edi - 4], 1
jle 0x40629e
push dword [edi - 0xc]
lea ecx, [ebp - 0xc8]
call fcn.004024d2
mov edi, dword [ebp - 0xc8]
push ebx
push ebx
push ebx
push ebx
push edi
push 0x43f994
push dword [ebp - 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x406645
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0xc4]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xa0]
mov dword [ecx], eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
jne 0x406645
push 4
lea eax, [ebp - 0xe4]
push eax
push 7
push dword [ebp - 0xa0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push ebx
push dword [ebp - 0xa0]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x406645
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], ebx
push eax
push dword [ebp - 0xa0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x406645
mov eax, dword [ebp - 0xa4]
inc eax
push eax
call fcn.004185ed
mov dword [ebp - 0xb0], eax
pop ecx
test eax, eax
je 0x40663d
mov ecx, dword [ebp - 0xa4]
inc ecx
push ecx
push ebx
push eax
call fcn.0041bd90
add esp, 0xc
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0xa4]
push dword [ebp - 0xb0]
push dword [ebp - 0xa0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x406645
cmp dword [ebp - 0xbc], 0
je 0x4065ad
push dword [ebp - 0xb0]
lea ecx, [ebp - 0x9c]
call fcn.00406bee
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x9c]
cmp dword [eax - 0xc], 0
jl 0x406633
push 0x43fcc0
push eax
call fcn.0041aa46
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x9c]
test ecx, ecx
je 0x406633
sub ecx, eax
js 0x406633
mov eax, dword [eax - 0xc]
sub eax, ecx
lea ecx, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00406cc8
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 5
call fcn.00406c49
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xcc]
lea ecx, [ecx - 0x10]
call fcn.004045c1
mov eax, dword [ebp - 0x9c]
cmp dword [eax - 0xc], 0
jl 0x406633
push 0x43fcc4
push eax
call fcn.0041aa46
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x9c]
test ecx, ecx
je 0x406633
sub ecx, eax
js 0x406633
lea eax, [ecx + 2]
push eax
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00406d18
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 6
call fcn.00406c49
mov ecx, dword [ebp - 0xec]
lea ecx, [ecx - 0x10]
call fcn.004045c1
and dword [ebp - 0xd8], 0xfffffe00
mov dword [ebp - 0xd4], ebx
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x98]
mov word [ebp - 0xa8], 1
call fcn.004112b5
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x9c]
cmp dword [eax - 4], 1
jle 0x4064da
push dword [eax - 0xc]
lea ecx, [ebp - 0x9c]
call fcn.00406e19
mov eax, dword [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004022cc
push ecx
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x98]
call fcn.00411301
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
lea ebx, [eax - 1]
neg bl
sbb bl, bl
call fcn.004025cc
inc bl
je 0x40657f
mov ecx, dword [ebp - 0xe8]
lea eax, [ebp - 0xe0]
push eax
call fcn.0041331d
push 0x43fcc8
lea ecx, [ebp - 0xb4]
call fcn.00406bee
push ecx
mov ebx, str.InstallEventUid
mov byte [ebp - 4], 0xb
push ebx
lea ecx, [ebp - 0xe0]
call fcn.00413725
cmp byte [eax + 8], 0
je 0x406571
push ecx
push ebx
lea ecx, [ebp - 0xe0]
call fcn.00413725
lea ecx, [ebp - 0xb4]
push dword [eax]
call fcn.00406c97
mov ecx, dword [ebp - 0xb4]
lea ecx, [ecx - 0x10]
call fcn.004045c1
lea ecx, [ebp - 0x98]
call fcn.00406652
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 4
call fcn.004132a0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x9c]
lea ecx, [ecx - 0x10]
call fcn.004045c1
xor ebx, ebx
push dword [ebp - 0xb0]
call fcn.00419a2f
cmp dword [ebp - 0xa4], 0
pop ecx
ja 0x406317
xor ebx, ebx
lea ecx, [edi - 0x10]
call fcn.004045c1
lea ecx, [esi - 0x10]
call fcn.004045c1
mov edi, dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0xc4]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
sub eax, dword [ecx]
mov dword [ecx], eax
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x406601
push eax
call esi
test edi, edi
je 0x406608
push edi
call esi
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x406615
push eax
call esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004045c1
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.004045c1
mov eax, ebx
call fcn.0041c572
ret
lea ecx, [eax - 0x10]
call fcn.004045c1
jmp 0x4065c6
mov dword [ebp - 0xa4], ebx
jmp 0x4065c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4065c8