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

Disassembly:
push 0x44
mov eax, 0x460b7c
call fcn.00447d5b
push str.DownloadFileAndWait__
lea ecx, [ebp - 0x1c]
call fcn.00402060
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.00411fad
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
xor eax, eax
cmp dword [0x49c534], ebx
sete al
xor esi, esi
inc esi
push esi
push esi
mov dword [ebp - 0x2c], eax
call fcn.0040bb14
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
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 - 0x14], ebx
call main
pop ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], esi
cmp eax, ebx
je 0x414cbb
push dword [0x49c994]
push eax
call fcn.0040f54b
mov edi, eax
jmp 0x414cbd
xor edi, edi
or dword [ebp - 4], 0xffffffff
cmp dword [edi], ebx
jne 0x414d0e
push str.DownloadFileAndWait__:_queue_is_empty
lea ecx, [ebp - 0x1c]
call fcn.00402060
mov dword [ebp - 4], 2
push dword [edi + 0xc]
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00411fad
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ecx], eax
call fcn.00415216
push 4
pop eax
jmp 0x415210
push 8
push dword [ebp + 0xc]
push str.https:__
call main
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x50]
push eax
lea ebx, [ebp - 0x14]
mov ecx, edi
call fcn.0040fcd3
mov ecx, dword [ebp + 0x10]
push 0
push esi
mov dword [ecx], eax
call fcn.0040bb14
call fcn.00434582
push eax
lea ecx, [ebp - 0x18]
call fcn.0040210b
push str.IDS_ACTION_CONNECTING
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 3
call fcn.00402060
lea esi, [ebp - 0x18]
lea ebx, [ebp - 0x1c]
mov ecx, 0x49c488
mov byte [ebp - 4], 4
call fcn.0040c354
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040253e
mov edx, esi
call fcn.0040bb34
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jl 0x414e2d
cmp dword [ebp - 0x14], 2
je 0x414da8
cmp dword [ebp - 0x14], 1
jne 0x414e27
push str.DownloadFileAndWait:_Last_Bits_job_still_downloading_manifest_or_ARMupdate
lea ecx, [ebp - 0x1c]
call fcn.00402060
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.00411fad
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
push 1
push edi
call fcn.0040f6be
push str.DownloadFileAndWait:_Cancel_Last_BITS_Job
lea ecx, [ebp - 0x1c]
call fcn.00402060
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
mov byte [ebp - 4], 6
call fcn.00411fad
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, edi
call fcn.0040fca0
lea eax, [ebp - 0x50]
push eax
lea ebx, [ebp - 0x14]
mov ecx, edi
call fcn.0040fcd3
mov dword [esi], eax
mov eax, dword [esi]
test eax, eax
jge 0x414e81
cmp eax, 0x80200001
je 0x414e81
push str.DownloadFileAndWait_isComplete_returns_error
lea ecx, [ebp - 0x1c]
call fcn.00402060
mov byte [ebp - 4], 7
push dword [esi]
lea eax, [ebp - 0x1c]
push eax
push 1
call fcn.00411fad
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [edi + 0x14], 0
je 0x414e81
mov eax, edi
call fcn.0040fca0
lea eax, [ebp - 0x50]
push eax
lea ebx, [ebp - 0x14]
mov ecx, edi
call fcn.0040fcd3
mov dword [esi], eax
cmp dword [ebp - 0x14], 6
je 0x4151f7
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00402060
push dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push edi
mov byte [ebp - 4], 8
call fcn.00414add
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
mov dword [esi], eax
call fcn.0040253e
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp dword [esi], 0
mov dword [ebp - 0x34], eax
jge 0x414ef9
push str.downLoadFileSet___failed
lea ecx, [ebp - 0x1c]
call fcn.00402060
mov byte [ebp - 4], 9
push dword [esi]
lea eax, [ebp - 0x1c]
push eax
push 1
call fcn.00411fad
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
jmp 0x4151e2
lea eax, [ebp - 0x50]
push eax
lea ebx, [ebp - 0x14]
mov ecx, edi
call fcn.0040fcd3
xor ebx, ebx
mov dword [esi], eax
cmp dword [0x49c548], ebx
jne 0x4151ea
cmp dword [ebp - 0x14], 6
jne 0x414f6c
cmp dword [0x49c534], ebx
je 0x414f6c
push 1
push 0x5a
call fcn.0040bb14
push 0x46a618
lea ecx, [ebp - 0x20]
call fcn.00402060
lea esi, [ebp - 0x18]
lea ebx, [ebp - 0x20]
mov ecx, 0x49c488
mov byte [ebp - 4], 0xa
call fcn.0040c354
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040253e
mov edx, esi
call fcn.0040bb34
mov esi, dword [ebp + 0x10]
xor ebx, ebx
jmp 0x414f74
push ebx
push 1
call fcn.0040bb14
cmp dword [edi + 0x14], ebx
je 0x4150de
mov eax, dword [esi]
cmp eax, ebx
jge 0x4150e6
cmp eax, 0x801901f8
ja 0x4150de
cmp dword [ebp - 0x14], 1
jne 0x4150de
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.00402060
push str.http:__
push str.https:__
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0xb
call main
test eax, eax
je 0x4150cf
push str.Port_443_Blocked:_HTTPS:___BITS_connection_failed_attempting_HTTP:___connection
lea ecx, [ebp - 0x24]
call fcn.00402060
push ebx
lea eax, [ebp - 0x24]
push eax
push 1
mov byte [ebp - 4], 0xc
call fcn.00411fad
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
lea eax, [ebp - 0xd]
push eax
push ebx
push 0x467f88
push str.SSL_Connection_Failure
mov esi, 0x49c488
mov byte [ebp - 0xd], bl
call fcn.004091b7
mov dword [edi + 0x14], ebx
mov dword [edi + 0x10], ebx
call dword [sym.imp.kernel32.dll_GetTickCount]
push ebx
push 1
mov dword [ebp - 0x34], eax
call fcn.0040bb14
push str.IDS_ACTION_CONNECTING
lea ecx, [ebp - 0x28]
call fcn.00402060
lea esi, [ebp - 0x18]
lea ebx, [ebp - 0x28]
mov ecx, 0x49c488
mov byte [ebp - 4], 0xd
call fcn.0040c354
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.0040253e
mov edx, esi
call fcn.0040bb34
mov eax, edi
call fcn.0040fca0
cmp dword [0x49c548], 0
jne 0x415163
push dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00414add
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi], eax
test eax, eax
jge 0x4150bd
push str.downLoadFileSet_HTTP:____failed
lea ecx, [ebp - 0x30]
call fcn.00402060
mov byte [ebp - 4], 0xe
push dword [esi]
lea eax, [ebp - 0x30]
push eax
push 1
call fcn.00411fad
mov ecx, dword [ebp - 0x30]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
jmp 0x4150cd
lea eax, [ebp - 0x50]
push eax
lea ebx, [ebp - 0x14]
mov ecx, edi
call fcn.0040fcd3
mov dword [esi], eax
xor ebx, ebx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [esi], ebx
jl 0x415174
cmp dword [ebp - 0x4c], ebx
ja 0x415111
cmp dword [ebp - 0x50], 1
ja 0x415111
cmp dword [0x49c534], ebx
je 0x415119
mov eax, dword [0x49c538]
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.0040bb14
cmp dword [0x49c548], ebx
jne 0x4151ea
cmp dword [ebp - 0x14], 6
je 0x415140
cmp dword [edi + 0x14], ebx
jne 0x415140
call dword [sym.imp.kernel32.dll_GetTickCount]
inc eax
sub eax, dword [ebp - 0x34]
dec eax
cmp eax, dword [ebp + 0x14]
ja 0x4151b2
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
cmp dword [0x49c548], ebx
jne 0x4151ea
cmp dword [ebp - 0x14], 6
jne 0x414ef9
jmp 0x4151f7
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040253e
jmp 0x4151f0
push str.HTTPS_and_HTTP_connection_failed
lea ecx, [ebp - 0x34]
call fcn.00402060
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0xf
mov ecx, dword [esi]
push 0x222e0
mov edx, 0x49ccc0
call fcn.0041042c
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, edi
call fcn.0040fca0
jmp 0x4151ea
push str.Network_too_slow_or_no_connection
lea ecx, [ebp - 0x34]
call fcn.00402060
lea eax, [ebp - 0x34]
push eax
push 0x222e0
mov ecx, 0x80200010
mov edx, 0x49ccc0
mov byte [ebp - 4], 0x10
call fcn.0041042c
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp - 0x14], 6
je 0x4151f7
mov eax, edi
call fcn.0040fca0
mov esi, dword [ebp - 0x14]
push edi
mov dword [edi + 0x38], esi
call fcn.00415216
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, esi
call fcn.00447e33
ret