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

Disassembly:
push 0xe0
mov eax, 0x437b9c
call fcn.0041f563
mov dword [ebp - 0xe4], edx
mov dword [ebp - 0xe8], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc4], eax
xor eax, eax
xor ebx, ebx
inc eax
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 4], eax
mov edi, ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xbc], ebx
cmp dword [esi - 4], eax
jle 0x406af0
push dword [esi - 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040299d
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x406b07
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0040299d
mov eax, dword [ebp + 8]
push esi
push eax
push str._nSend_install_event_host__s_request__s
call fcn.00419acb
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_4.0__compatible__MSIE_7.0__Trident_5.0___IM_CustomChannel_
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0xb8], eax
test eax, eax
jne 0x406b3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x406f11
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00402e17
lea esi, [eax + 0x10]
mov dword [ebp - 0xc0], esi
mov byte [ebp - 4], 2
cmp dword [esi - 4], 1
jle 0x406b6e
push dword [esi - 0xc]
lea ecx, [ebp - 0xc0]
call fcn.0040299d
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 0x406b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.00404b8d
jmp 0x406f11
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00402e17
lea edi, [eax + 0x10]
mov dword [ebp - 0xc8], edi
mov byte [ebp - 4], 3
cmp dword [edi - 4], 1
jle 0x406bd1
push dword [edi - 0xc]
lea ecx, [ebp - 0xc8]
call fcn.0040299d
mov edi, dword [ebp - 0xc8]
push ebx
push ebx
push ebx
push ebx
push edi
push 0x442b04
push dword [ebp - 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x406f78
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 0x406f78
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 0x406f78
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 0x406f78
mov eax, dword [ebp - 0xa4]
inc eax
push eax
call fcn.0041b520
mov dword [ebp - 0xb0], eax
pop ecx
test eax, eax
je 0x406f70
mov ecx, dword [ebp - 0xa4]
inc ecx
push ecx
push ebx
push eax
call fcn.0041ed30
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 0x406f78
cmp dword [ebp - 0xbc], 0
je 0x406ee0
push dword [ebp - 0xb0]
lea ecx, [ebp - 0x9c]
call fcn.00407521
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x9c]
cmp dword [eax - 0xc], 0
jl 0x406f66
push 0x442e80
push eax
call fcn.0041d96b
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x9c]
test ecx, ecx
je 0x406f66
sub ecx, eax
js 0x406f66
mov eax, dword [eax - 0xc]
sub eax, ecx
lea ecx, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.004075e4
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 5
call fcn.00407565
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xcc]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
mov eax, dword [ebp - 0x9c]
cmp dword [eax - 0xc], 0
jl 0x406f66
push 0x442e84
push eax
call fcn.0041d96b
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x9c]
test ecx, ecx
je 0x406f66
sub ecx, eax
js 0x406f66
lea eax, [ecx + 2]
push eax
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00407634
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 6
call fcn.00407565
mov ecx, dword [ebp - 0xec]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
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.00412d26
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x9c]
cmp dword [eax - 4], 1
jle 0x406e0d
push dword [eax - 0xc]
lea ecx, [ebp - 0x9c]
call fcn.0040776d
mov eax, dword [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402746
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.00412d72
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
lea ebx, [eax - 1]
neg bl
sbb bl, bl
call fcn.00402a97
inc bl
je 0x406eb2
mov ecx, dword [ebp - 0xe8]
lea eax, [ebp - 0xe0]
push eax
call fcn.00414d8e
push 0x442e88
lea ecx, [ebp - 0xb4]
call fcn.00407521
push ecx
mov ebx, str.InstallEventUid
mov byte [ebp - 4], 0xb
push ebx
lea ecx, [ebp - 0xe0]
call fcn.0041525f
cmp byte [eax + 8], 0
je 0x406ea4
push ecx
push ebx
lea ecx, [ebp - 0xe0]
call fcn.0041525f
lea ecx, [ebp - 0xb4]
push dword [eax]
call fcn.004075b3
mov ecx, dword [ebp - 0xb4]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
lea ecx, [ebp - 0x98]
call fcn.00406f85
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 4
call fcn.00414d11
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x9c]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
xor ebx, ebx
push dword [ebp - 0xb0]
call fcn.0041c95f
cmp dword [ebp - 0xa4], 0
pop ecx
ja 0x406c4a
xor ebx, ebx
lea ecx, [edi - 0x10]
call fcn.00404b8d
lea ecx, [esi - 0x10]
call fcn.00404b8d
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 0x406f34
push eax
call esi
test edi, edi
je 0x406f3b
push edi
call esi
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x406f48
push eax
call esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00404b8d
mov eax, ebx
call fcn.0041f512
ret
lea ecx, [eax - 0x10]
call fcn.00404b8d
jmp 0x406ef9
mov dword [ebp - 0xa4], ebx
jmp 0x406ef9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x406efb