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

Disassembly:
push 0x120
mov eax, 0x45eb23
call fcn.004422d2
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x78], eax
mov eax, dword [edi]
mov dword [ebp - 0x84], edi
call dword [eax + 0x84]
push eax
lea esi, [ebp - 0xd8]
call fcn.004074dc
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x74], str.Upgrading
cmp byte [ebp + 0xc], bl
jne 0x413dc0
mov dword [ebp - 0x74], str.Installing
lea edx, [ebp - 0xd8]
lea ecx, [ebp - 0xbc]
call fcn.00424fb8
mov esi, eax
mov byte [ebp - 4], 1
push dword [ebp - 0x74]
lea ecx, [ebp - 0x110]
call fcn.004073fe
push esi
push eax
lea eax, [ebp - 0xf4]
push eax
mov byte [ebp - 4], 2
call fcn.0041d583
add esp, 0xc
push str._...
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 3
call fcn.0041d5ce
add esp, 0xc
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0xf4]
call fcn.00408639
push ebx
push esi
lea ecx, [ebp - 0x110]
call fcn.00408639
push ebx
push esi
lea ecx, [ebp - 0xbc]
call fcn.00408639
push ebx
push esi
lea esi, [ebp - 0xd8]
mov byte [ebp - 4], 8
call fcn.00408971
push edi
lea ebx, [ebp - 0x68]
call fcn.004131c4
mov eax, dword [edi]
push 0x64
xor ebx, ebx
push ebx
mov ecx, edi
call dword [eax + 0x10]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
test al, al
je 0x413edb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xa0], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
test al, al
lea eax, [ebp - 0x30]
je 0x413ea8
push eax
mov ecx, edi
call fcn.004277b2
cmp dword [eax + 0x14], ebx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x30]
setne byte [ebp - 0x69]
call fcn.00408639
cmp byte [ebp - 0x69], bl
jne 0x413ecf
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.004275ff
cmp dword [eax + 0x14], ebx
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x30]
setne byte [ebp - 0x69]
call fcn.00408639
cmp byte [ebp - 0x69], bl
jne 0x413ecf
push str.BootstrapperUpdateOrInstallUnableToResolveCdnHost
jmp 0x413ed4
push str.BootstrapperUpdateOrInstallResolvedCdnHost
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
mov esi, dword [ebp - 0x78]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x38
cdq
pop ecx
idiv ecx
push 4
mov dword [ebp - 0x74], eax
call fcn.0043e764
pop ecx
cmp eax, ebx
je 0x413f03
lea ecx, [ebp - 0x9c]
mov dword [eax], ecx
jmp 0x413f05
xor eax, eax
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x34], 0
call fcn.0041a3d9
mov byte [ebp - 4], 0xa
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x38
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x70], ebx
test eax, eax
jbe 0x41403f
mov dword [ebp - 0x7c], ebx
jmp 0x413f4f
mov esi, dword [ebp - 0x78]
push dword [ebp - 0x70]
mov dword [ebp - 0x80], ebx
call fcn.00419a78
add eax, 0x1c
cmp dword [eax + 0x14], ebx
je 0x413f7e
push dword [ebp - 0x70]
call fcn.00419a78
add eax, 0x1c
cmp dword [eax + 0x18], 8
jb 0x413f78
mov eax, dword [eax + 4]
jmp 0x413f7b
add eax, 4
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x90]
push 0xc
cdq
pop ecx
idiv ecx
cmp dword [ebp - 0x70], eax
jb 0x413f9a
call fcn.0043e931
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x90]
push dword [ebp - 0x70]
lea ebx, [ecx + eax]
call fcn.00419a78
cmp dword [eax + 0x18], 8
jb 0x413fb9
mov eax, dword [eax + 4]
jmp 0x413fbc
add eax, 4
mov edi, dword [edi + 0x16c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x80]
push 5
pop ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], eax
mov al, byte [ebp + 0x10]
sub esp, 0x18
mov byte [ebp - 0x34], al
mov dword [ebp - 0x2c], fcn.0043665c
lea esi, [ebp - 0x44]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x38], ebx
rep movsd dword es:[edi], dword [esi]
push 6
pop ecx
lea esi, [ebp - 0x2c]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x74]
call fcn.0041ecc0
add esp, 0x18
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.00410214
mov eax, esi
push eax
mov byte [ebp - 4], 0xa
call fcn.0041027a
mov ecx, dword [ebp - 0x78]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x38
cdq
pop ecx
idiv ecx
inc dword [ebp - 0x70]
add dword [ebp - 0x7c], 0xc
mov edi, dword [ebp - 0x84]
xor ebx, ebx
cmp dword [ebp - 0x70], eax
jb 0x413f4c
mov dword [ebp - 0x74], ebx
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x90]
push 0xc
cdq
pop ecx
idiv ecx
xor esi, esi
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x70], ebx
cmp eax, ebx
jbe 0x4140b9
mov dword [ebp - 0x78], ebx
cmp ebx, eax
jb 0x414075
call fcn.0043e931
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x78]
add ecx, eax
cmp byte [ecx + 8], 0
je 0x414089
inc dword [ebp - 0x7c]
mov eax, dword [ecx + 4]
cmp eax, ebx
jle 0x414099
inc dword [ebp - 0x80]
add dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x90]
add esi, dword [ecx]
push 0xc
cdq
pop ecx
idiv ecx
inc dword [ebp - 0x70]
add dword [ebp - 0x78], 0xc
cmp dword [ebp - 0x70], eax
jb 0x414075
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x90]
push 0xc
cdq
pop ecx
idiv ecx
cmp dword [ebp - 0x7c], eax
je 0x41410e
cmp dword [ebp - 0x80], eax
jne 0x4140e3
push dword [ebp - 0x84]
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x10]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x74], 0x3e8
jl 0x4140ff
mov ecx, dword [edi + 0x48]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x20]
jmp 0x414103
add dword [ebp - 0x74], 0xa
push edi
call fcn.00418425
jmp 0x414042
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
test al, al
je 0x414284
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x4c]
mov esi, eax
mov eax, dword [edi]
sub esi, dword [ebp - 0xa0]
push ecx
mov ecx, edi
call dword [eax + 0x24]
push str.BootstrapperDeploy
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 0xc
call fcn.00407446
cmp dword [ebp - 0x34], 0x10
mov eax, dword [edi + 0x16c]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x48]
jae 0x41415d
lea ecx, [ebp - 0x48]
push eax
push esi
push ecx
mov ecx, str.Success
mov edx, edi
call fcn.004118a5
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.00409371
mov byte [ebp - 4], 0xd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
test al, al
je 0x4141bc
lea eax, [ebp - 0xbc]
push eax
mov ecx, edi
call fcn.004277b2
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xe
call fcn.004084ca
push ebx
push 1
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xd
call fcn.00408639
cmp dword [ebp - 0x1c], ebx
jne 0x4141f2
lea eax, [ebp - 0xbc]
push edi
push eax
call fcn.004275ff
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xf
call fcn.004084ca
push ebx
push 1
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xd
call fcn.00408639
mov eax, dword [edi]
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, edi
call dword [eax + 0x24]
push str.Client
mov byte [ebp - 4], 0x10
call fcn.004074a4
mov ebx, eax
neg ebx
push 0
sbb bl, bl
push 1
lea ecx, [ebp - 0x12c]
inc bl
mov byte [ebp - 4], 0xd
call fcn.00408639
test bl, bl
je 0x414266
cmp dword [ebp - 0x1c], 0
jne 0x414249
lea eax, [edi + 0x1b0]
cmp dword [eax + 0x18], 0x10
jb 0x414244
mov eax, dword [eax + 4]
jmp 0x414255
add eax, 4
jmp 0x414255
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x414255
lea eax, [ebp - 0x2c]
push eax
lea eax, [edi + 0xc8]
push esi
push eax
call fcn.00423a77
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00408639
push 0
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.00408639
xor ebx, ebx
mov edi, dword [edi + 0x48]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 0x90], ebx
je 0x4142a4
push dword [ebp - 0x90]
call fcn.0043e402
pop ecx
push dword [ebp - 0x9c]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
call fcn.0043e402
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.00408639
call fcn.00442355
ret 0xc