Function at 0x410d5c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x44
mov eax, 0x456672
call fcn.0043cf0a
push str.DownloadFileAndWait__
lea ecx, [ebp - 0x1c]
call fcn.0040215a
xor esi, esi
push esi
lea eax, [ebp - 0x1c]
push eax
push 2
mov dword [ebp - 4], esi
call fcn.0040e50d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
xor eax, eax
cmp dword [0x48b504], esi
sete al
xor ebx, ebx
inc ebx
push ebx
push ebx
mov dword [ebp - 0x2c], eax
call fcn.004077c6
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
xor eax, eax
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x3c
stosd dword es:[edi], eax
mov dword [ebp - 0x10], esi
call fcn.00429794
pop ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], ebx
cmp eax, esi
je 0x410de7
push dword [0x48b954]
push eax
call fcn.0040b9ca
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x410dec
mov dword [ebp - 0x14], esi
mov edi, esi
or dword [ebp - 4], 0xffffffff
cmp dword [edi], esi
jne 0x410e3d
push str.DownloadFileAndWait__:_queue_is_empty
lea ecx, [ebp - 0x1c]
call fcn.0040215a
mov dword [ebp - 4], 2
push dword [edi + 0xc]
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.0040e50d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ecx], eax
call fcn.0041134e
push 4
pop eax
jmp 0x411348
push 8
push dword [ebp + 0xc]
push str.https:__
call fcn.0043c16c
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x50]
push eax
lea ebx, [ebp - 0x10]
mov ecx, edi
call fcn.0040c175
mov ecx, dword [ebp + 0x10]
push esi
push 1
mov dword [ecx], eax
call fcn.004077c6
call fcn.00429b48
push eax
lea ecx, [ebp - 0x18]
call fcn.0040fc71
push str.IDS_ACTION_CONNECTING
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 3
call fcn.0040215a
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x1c]
mov ebx, 0x48b458
mov byte [ebp - 4], 4
call fcn.0040820f
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025e7
mov edx, esi
call fcn.004077e6
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jl 0x410f6a
cmp dword [ebp - 0x10], 2
je 0x410edb
cmp dword [ebp - 0x10], 1
jne 0x410f5f
push str.DownloadFileAndWait:_Last_Bits_job_still_downloading_manifest_or_ARMupdate
lea ecx, [ebp - 0x1c]
call fcn.0040215a
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.0040e50d
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
mov edi, dword [ebp - 0x14]
push 1
push edi
call fcn.0040bb3d
push str.DownloadFileAndWait:_Cancel_Last_BITS_Job
lea ecx, [ebp - 0x1c]
call fcn.0040215a
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
mov byte [ebp - 4], 6
call fcn.0040e50d
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
mov eax, edi
call fcn.0040c142
lea eax, [ebp - 0x50]
push eax
lea ebx, [ebp - 0x10]
mov ecx, edi
call fcn.0040c175
mov dword [esi], eax
jmp 0x410f62
mov edi, dword [ebp - 0x14]
mov eax, dword [esi]
test eax, eax
jl 0x410f6d
jmp 0x410fc1
mov edi, dword [ebp - 0x14]
cmp eax, 0x80200001
je 0x410fc1
push str.DownloadFileAndWait_isComplete_returns_error
lea ecx, [ebp - 0x1c]
call fcn.0040215a
mov byte [ebp - 4], 7
push dword [esi]
lea eax, [ebp - 0x1c]
push eax
push 1
call fcn.0040e50d
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
cmp dword [edi + 0x14], 0
je 0x410fc1
mov eax, edi
call fcn.0040c142
lea eax, [ebp - 0x50]
push eax
lea ebx, [ebp - 0x10]
mov ecx, edi
call fcn.0040c175
mov dword [esi], eax
cmp dword [ebp - 0x10], 6
je 0x41132f
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.0040215a
push dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push edi
mov byte [ebp - 4], 8
call fcn.00410c05
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
mov dword [esi], eax
call fcn.004025e7