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
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi], 0
mov dword [ebp - 0x34], eax
jge 0x411039
push str.downLoadFileSet___failed
lea ecx, [ebp - 0x1c]
call fcn.0040215a
mov byte [ebp - 4], 9
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
jmp 0x41131a
lea eax, [ebp - 0x50]
push eax
lea ebx, [ebp - 0x10]
mov ecx, edi
call fcn.0040c175
xor ebx, ebx
mov dword [esi], eax
cmp dword [0x48b518], ebx
jne 0x411322
cmp dword [ebp - 0x10], 6
jne 0x4110af
cmp dword [0x48b504], ebx
je 0x4110af
push 1
push 0x5a
call fcn.004077c6
push 0x45eb44
lea ecx, [ebp - 0x20]
call fcn.0040215a
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x20]
mov ebx, 0x48b458
mov byte [ebp - 4], 0xa
call fcn.0040820f
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004025e7
mov edx, esi
call fcn.004077e6
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp + 0x10]
xor ebx, ebx
jmp 0x4110b7
push ebx
push 1
call fcn.004077c6
cmp dword [edi + 0x14], ebx
je 0x411213
mov eax, dword [esi]
cmp eax, ebx
jge 0x41121b
cmp eax, 0x801901f8
ja 0x411213
cmp dword [ebp - 0x10], 1
jne 0x411213
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.0040215a
push str.http:__
push str.https:__
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0xb
call fcn.004086d4
test eax, eax
je 0x411204
push str.Port_443_Blocked:_HTTPS:___BITS_connection_failed_attempting_HTTP:___connection
lea ecx, [ebp - 0x24]
call fcn.0040215a
push ebx
lea eax, [ebp - 0x24]
xor esi, esi
push eax
inc esi
push esi
mov byte [ebp - 4], 0xc
call fcn.0040e50d
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
mov dword [0x48ba70], esi
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebx
push esi
mov dword [ebp - 0x34], eax
call fcn.004077c6
push str.IDS_ACTION_CONNECTING
lea ecx, [ebp - 0x28]
call fcn.0040215a
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x28]
mov ebx, 0x48b458
mov byte [ebp - 4], 0xd
call fcn.0040820f
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004025e7
mov edx, esi
call fcn.004077e6
mov eax, dword [ebp - 0x14]
call fcn.0040c142
cmp dword [0x48b518], 0
jne 0x411298
push dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
call fcn.00410c05
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi], eax
test eax, eax
jge 0x4111ee
push str.downLoadFileSet_HTTP:____failed
lea ecx, [ebp - 0x30]
call fcn.0040215a
mov byte [ebp - 4], 0xe
push dword [esi]
lea eax, [ebp - 0x30]
push eax
push 1
call fcn.0040e50d
mov ecx, dword [ebp - 0x30]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
jmp 0x4111ff
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x50]
push eax
lea ebx, [ebp - 0x10]
call fcn.0040c175
mov dword [esi], eax
mov edi, dword [ebp - 0x14]
xor ebx, ebx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025e7
cmp dword [esi], ebx
jl 0x4112ac
cmp dword [ebp - 0x4c], ebx
ja 0x411246
cmp dword [ebp - 0x50], 1
ja 0x411246
cmp dword [0x48b504], ebx
je 0x41124e
mov eax, dword [0x48b508]
neg eax
sbb eax, eax
and eax, 0x384
add eax, 0x64
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 1
call fcn.004077c6
cmp dword [0x48b518], ebx
jne 0x411322
cmp dword [ebp - 0x10], 6
je 0x411275
cmp dword [edi + 0x14], ebx
jne 0x411275
call dword [sym.imp.KERNEL32.dll_GetTickCount]
inc eax
sub eax, dword [ebp - 0x34]
dec eax
cmp eax, dword [ebp + 0x14]
ja 0x4112ea
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x48b518], ebx
jne 0x411322
cmp dword [ebp - 0x10], 6
jne 0x411039
jmp 0x41132f
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004025e7
mov edi, dword [ebp - 0x14]
jmp 0x411328
push str.HTTPS_and_HTTP_connection_failed
lea ecx, [ebp - 0x34]
call fcn.0040215a
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0xf
mov ecx, dword [esi]
push 0x222e0
mov edx, 0x48baa8
call fcn.0040c8ce
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004025e7
mov eax, edi
call fcn.0040c142
jmp 0x411322
push str.Network_too_slow_or_no_connection
lea ecx, [ebp - 0x34]
call fcn.0040215a
lea eax, [ebp - 0x34]
push eax
push 0x222e0
mov ecx, 0x80200010
mov edx, 0x48baa8
mov byte [ebp - 4], 0x10
call fcn.0040c8ce
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004025e7
cmp dword [ebp - 0x10], 6
je 0x41132f
mov eax, edi
call fcn.0040c142
mov esi, dword [ebp - 0x10]
push edi
mov dword [edi + 0x38], esi
call fcn.0041134e
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004025e7
mov eax, esi
call fcn.0043cfe2
ret