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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f59e
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4a0b70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.DownloadFileAndWait__
lea ecx, [ebp - 0x54]
call fcn.00401ee0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x54]
push eax
push 2
call fcn.00467240
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00405260
mov ecx, 0x4a4b78
call fcn.004046d0
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], 2
push 1
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, 0x4a4b78
call fcn.0045da90
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x38], 0
push 0x28
call fcn.0040ff84
add esp, 4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x5c], 0
je 0x45628c
mov ecx, 0x4a4b78
call fcn.004067f0
mov ecx, eax
call fcn.00406770
mov ecx, eax
call fcn.00401fc0
push eax
mov ecx, dword [ebp - 0x5c]
call fcn.0046abb0
mov dword [ebp - 0xa8], eax
jmp 0x456296
mov dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
cmp dword [edx], 0
jne 0x456331
push str.DownloadFileAndWait__:_queue_is_empty
lea ecx, [ebp - 0x60]
call fcn.00401ee0
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
call fcn.00406880
push eax
lea eax, [ebp - 0x60]
push eax
push 1
call fcn.00467240
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00405260
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x64], 0
je 0x45631d
push 1
mov ecx, dword [ebp - 0x64]
call fcn.004068a0
mov dword [ebp - 0xac], eax
jmp 0x456327
mov dword [ebp - 0xac], 0
mov eax, 4
jmp 0x4569e0
push 8
mov eax, dword [ebp + 0xc]
push eax
push 0x47d50c
call fcn.00431326
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x14], eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.0046a180
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push 0
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, 0x4a4b78
call fcn.0045da90
lea ecx, [ebp - 0x10]
call fcn.004051c0
mov dword [ebp - 4], 3
push 0x47d520
lea ecx, [ebp - 0x6c]
call fcn.00401ee0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, 0x4a4b78
call fcn.0045de70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.00405260
lea edx, [ebp - 0x10]
push edx
mov ecx, 0x4a4b78
call fcn.0045da30
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jl 0x45645f
cmp dword [ebp - 0x38], 2
je 0x4563de
cmp dword [ebp - 0x38], 1
jne 0x45645f
push str.DownloadFileAndWait:_Last_Bits_job_still_downloading_manifest_or_ARMupdate
lea ecx, [ebp - 0x70]
call fcn.00401ee0
mov byte [ebp - 4], 5
push 0
lea ecx, [ebp - 0x70]
push ecx
push 2
call fcn.00467240
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00405260
push 1
mov ecx, dword [ebp - 0x34]
call fcn.00469af0
push str.DownloadFileAndWait:_Cancel_Last_BITS_Job
lea ecx, [ebp - 0x74]
call fcn.00401ee0
mov byte [ebp - 4], 6
push 0
lea edx, [ebp - 0x74]
push edx
push 2
call fcn.00467240
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.00405260
mov ecx, dword [ebp - 0x34]
call fcn.00469890
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.0046a180
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jge 0x4564cc
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0x80200001
je 0x4564cc
push str.DownloadFileAndWait_isComplete_returns_error
lea ecx, [ebp - 0x78]
call fcn.00401ee0
mov byte [ebp - 4], 7
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x78]
push ecx
push 1
call fcn.00467240
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.00405260
mov ecx, dword [ebp - 0x34]
call fcn.00407b10
test eax, eax
je 0x4564cc
mov ecx, dword [ebp - 0x34]
call fcn.00469890
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.0046a180
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [ebp - 0x38], 6
je 0x456977
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x7c]
call fcn.00401ee0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x7c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00455320
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.00405260
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jge 0x456556
push str.downLoadFileSet___failed
lea ecx, [ebp - 0x80]
call fcn.00401ee0
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x80]
push edx
push 1
call fcn.00467240
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.00405260
jmp 0x456977
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.0046a180
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
cmp dword [ebp - 0x38], 6
jne 0x4565dd
mov ecx, 0x4a4b78
call fcn.004046d0
test eax, eax
je 0x4565dd
push 1
push 0x5a
mov ecx, 0x4a4b78
call fcn.0045da90
push 0x47d6dc
lea ecx, [ebp - 0x84]
call fcn.00401ee0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov ecx, 0x4a4b78
call fcn.0045de70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x84]
call fcn.00405260
lea edx, [ebp - 0x10]
push edx
mov ecx, 0x4a4b78
call fcn.0045da30
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4565ed
push 0
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, 0x4a4b78
call fcn.0045da90
mov ecx, dword [ebp - 0x34]
call fcn.00407b10
test eax, eax
je 0x456794
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jge 0x456794
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0x801901f8
ja 0x456794
cmp dword [ebp - 0x38], 1
jne 0x456794
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401ee0
mov byte [ebp - 4], 0xb
push 0x47d704
push 0x47d66c
lea ecx, [ebp - 0x44]
call fcn.00403150
test eax, eax
je 0x456788
push str.Port_443_Blocked:_HTTPS:___BITS_connection_failed_attempting_HTTP:___connection
lea ecx, [ebp - 0x88]
call fcn.00401ee0
mov byte [ebp - 4], 0xc
push 0
lea ecx, [ebp - 0x88]
push ecx
push 1
call fcn.00467240
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x88]
call fcn.00405260
mov ecx, 0x4a4b78
call fcn.004030c0
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x5c], 1
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x40], eax
push 0
push 1
mov ecx, 0x4a4b78
call fcn.0045da90
push 0x47d714
lea ecx, [ebp - 0x8c]
call fcn.00401ee0
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x8c]
push eax
mov ecx, 0x4a4b78
call fcn.0045de70
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x8c]
call fcn.00405260
lea ecx, [ebp - 0x10]
push ecx
mov ecx, 0x4a4b78
call fcn.0045da30
mov ecx, dword [ebp - 0x34]
call fcn.00469890
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.00455320
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jge 0x456773
push str.downLoadFileSet_HTTP:____failed
lea ecx, [ebp - 0x90]
call fcn.00401ee0
mov byte [ebp - 4], 0xe
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x90]
push edx
push 1
call fcn.00467240
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x90]
call fcn.00405260
jmp 0x456788
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.0046a180
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00405260
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jge 0x4567e8
push str.HTTPS_and_HTTP_connection_failed
lea ecx, [ebp - 0x94]
call fcn.00401ee0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x94]
push eax
push 0x578
mov ecx, 0x4a4b78
call fcn.00401100
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call fcn.00405260
mov ecx, dword [ebp - 0x34]
call fcn.00469890
jmp 0x456977
cmp dword [ebp - 0x28], 0
ja 0x4567f8
cmp dword [ebp - 0x2c], 1
jbe 0x4568be
lea ecx, [ebp - 0x4c]
call fcn.004051c0
mov byte [ebp - 4], 0x10
push 0
push 0x64
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.004360c0
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x2c]
push ecx
push edx
push eax
call fcn.00439fd0
push eax
push str.___Percent_Complete:__d__
lea edx, [ebp - 0x4c]
push edx
call fcn.00401dd0
add esp, 0xc
push 0
lea eax, [ebp - 0x4c]
push eax
push 2
call fcn.00467240
add esp, 0xc
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push str.___Bytes_Total:__I64x_tBytes_Transferred:__I64x
lea edx, [ebp - 0x4c]
push edx
call fcn.00401dd0
add esp, 0x18
push 0
lea eax, [ebp - 0x4c]
push eax
push 2
call fcn.00467240
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push str.___Files_Total:__d_t_tFiles_Transferred:__d
lea eax, [ebp - 0x4c]
push eax
call fcn.00401dd0
add esp, 0x10
push 0
lea ecx, [ebp - 0x4c]
push ecx
push 2
call fcn.00467240
add esp, 0xc
push 0
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, 0x4a4b78
call fcn.0045da90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.00405260
jmp 0x4568e9
mov ecx, 0x4a4b78
call fcn.004046d0
test eax, eax
je 0x4568e9
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov eax, dword [ebp - 0x3c]
neg eax
push eax
mov ecx, 0x4a4b78
call fcn.0045da90
mov ecx, 0x4a4b78
call fcn.004030e0
test eax, eax
je 0x4568f9
jmp 0x456977
cmp dword [ebp - 0x38], 6
je 0x456965
mov ecx, dword [ebp - 0x34]
call fcn.00407b10
test eax, eax
jne 0x456965
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 1
mov dword [ebp - 0x50], eax
or ecx, 0xffffffff
sub ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x50]
cmp ecx, dword [ebp + 0x14]
jbe 0x456965
push str.Network_too_slow_or_no_connection
lea ecx, [ebp - 0x98]
call fcn.00401ee0
mov byte [ebp - 4], 0x11
push 0x80200010
lea edx, [ebp - 0x98]
push edx
push 0x578
mov ecx, 0x4a4b78
call fcn.00401100
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
call fcn.00405260
jmp 0x456977
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x38], 6
jne 0x456556
cmp dword [ebp - 0x38], 6
je 0x456985
mov ecx, dword [ebp - 0x34]
call fcn.00469890
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x9c], ecx
cmp dword [ebp - 0x9c], 0
je 0x4569b8
push 1
mov ecx, dword [ebp - 0x9c]
call fcn.004068a0
mov dword [ebp - 0xb0], eax
jmp 0x4569c2
mov dword [ebp - 0xb0], 0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0xa4], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405260
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret