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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
cmp dword [ebp + 0xc], 0
push ebx
push esi
mov esi, edx
mov dword [esp + 0x48], ecx
push edi
mov dword [esp + 0x38], esi
je 0x4202ac
push dword [ebp + 0x10]
push 0
push 0
push 0x9478
call dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x154
mov dword [esp + 0x60], eax
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
test eax, eax
je 0x4202d9
push dword [ebp + 8]
mov ecx, eax
push esi
call fcn.0041fd8c
mov ebx, eax
mov dword [esp + 0x58], eax
jmp 0x4202df
xor ebx, ebx
mov dword [esp + 0x58], ebx
mov ecx, ebx
call fcn.0041fdfd
mov edi, eax
mov dword [esp + 0x48], edi
test edi, edi
je 0x420303
test ebx, ebx
je 0x4202fc
push ecx
mov ecx, ebx
call fcn.0042a1b6
mov eax, edi
jmp 0x420854
and dword [esp + 0x54], 0
push 0x14
pop ecx
call fcn.00436b3a
push 0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esp + 0x54], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
xor ecx, ecx
mov eax, dword [esi + 0x18]
or edx, 0xffffffff
mov esi, dword [esi + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
xor eax, eax
and dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov esi, dword [esi]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], eax
cmp byte [esi + 0xd], al
jne 0x4204d5
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.00420195
cmp eax, 1
jne 0x420480
mov ecx, dword [esp + 0x38]
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [ecx + 0xc]
call fcn.0042facc
lea ecx, [esi + 0x24]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
add dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
push ebx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x6c]
push dword [eax + 0x24]
call fcn.00423f04
xor eax, eax
lea edx, [esp + 0x1c]
push eax
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0xd0], eax
call fcn.004246e7
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
call fcn.0044b175
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0043baa0
lea ecx, [eax + 0x10]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x28]
je 0x420422
lea eax, [ecx - 0x10]
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.0043baa0
mov ecx, dword [esp + 0x34]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
add dword [esp + 0x24], 8
mov ecx, dword [esp + 0x14]
jmp 0x420438
lea ecx, [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00432eb4
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.0043c924
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.0043c924
cmp dword [ebp + 0xc], 0
je 0x420466
push dword [ebp + 0x10]
push 0
push 0
push 0x948e
call dword [ebp + 0xc]
test eax, eax
jne 0x4204fe
mov ecx, dword [esp + 0xc8]
test ecx, ecx
je 0x420477
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esp + 0x68]
call fcn.00423f65
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4204a2
mov eax, dword [esi + 4]
jmp 0x420498
cmp esi, dword [eax + 8]
jne 0x42049e
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x42048e
mov esi, eax
jmp 0x4204b8
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4204b8
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4204ac
cmp byte [esi + 0xd], 0
je 0x420360
mov eax, dword [esp + 0x24]
or edx, 0xffffffff
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], ecx
cmp ecx, eax
je 0x42073f
mov eax, dword [ecx + 4]
mov esi, dword [eax + 4]
sub esi, dword [eax]
sar esi, 2
dec esi
mov dword [esp + 0x1c], esi
cmp esi, edx
je 0x4206fe
mov edx, dword [esp + 0x40]
imul eax, edx, 0x64
jmp 0x420529
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x48], 0x4c7
test ecx, ecx
je 0x420517
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esp + 0x68]
call fcn.00423f65
jmp 0x42073f
mov edx, dword [esp + 0x40]
add eax, 0x64
inc edx
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x40], edx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
call fcn.0043c5cd
push eax
lea ecx, [esp + 0x30]
call fcn.0043ac50
push ecx
mov ecx, dword [esp + 0x18]
push 8
push str.UpdateId
mov ecx, dword [ecx + esi*4]
call fcn.00438387
test eax, eax
je 0x4205a3
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x420581
mov eax, 0x491414
mov dword [esp + 0x10], eax
test eax, eax
jne 0x420581
xor ecx, ecx
jmp 0x42058f
push eax
call dword [sym.imp.msvcrt.dll_strlen]
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x10]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.0043a5ab
lea ecx, [esp + 0x2c]
call fcn.00431640
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x58]
call fcn.00434f3e
cmp byte [esp + 0x64], 0
je 0x4206da
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x68]
push ebx
push dword [eax + esi*4]
call fcn.00423f04
and dword [esp + 0xc8], 0
lea ecx, [esp + 0x68]
call fcn.004243db
cmp eax, 1
jne 0x420690
and dword [esp + 0x10], 0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x68]
call fcn.00424645
test eax, eax
je 0x420616
mov eax, dword [esp + 0x10]
test eax, eax
je 0x420690
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x420690
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x34]
and dword [esp + 0x34], 0
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0xc]
xor eax, eax
cmp dword [esp + 0x34], eax
push esi
setne al
mov dword [esp + 0x18], eax
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
cmp eax, 1
jne 0x420690
push 0x2c
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
test eax, eax
je 0x420665
lea ecx, [esp + 0x68]
push ecx
mov ecx, eax
call fcn.00424967
jmp 0x420667
xor eax, eax
push dword [esp + 0x18]
lea ecx, [eax + 0x1c]
mov dword [esp + 0x18], eax
call fcn.0043b599
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [ecx + 8]
call fcn.00431d83
cmp dword [ebp + 0xc], 0
je 0x4206c0
mov eax, dword [esp + 0x38]
cdq
idiv dword [esp + 0x44]
push dword [ebp + 0x10]
push 0
push eax
push 0x9478
call dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0
push 0
push 0x948e
call dword [ebp + 0xc]
test eax, eax
jne 0x420711
mov ecx, dword [esp + 0xc8]
test ecx, ecx
je 0x4206d1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esp + 0x68]
call fcn.00423f65
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.0043c924
mov ecx, dword [esp + 0x18]
dec esi
mov eax, dword [esp + 0x38]
or edx, 0xffffffff
mov dword [esp + 0x1c], esi
cmp esi, edx
jne 0x420525
add ecx, 8
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x3c]
jne 0x4204dd
jmp 0x42073f
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x48], 0x4c7
test ecx, ecx
je 0x42072a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esp + 0x68]
call fcn.00423f65
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx - 0x10]
call fcn.0043c924
push dword [ebx + 0x150]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 4
mov ecx, ebx
mov esi, dword [ebx]
push dword [esi + 4]
push ebx
call fcn.004336a7
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
and dword [ebx + 4], 0
mov ebx, dword [esp + 0x58]
mov eax, dword [ebx + 0x148]
cmp dword [eax + 0x14], 0
je 0x42079a
mov esi, dword [0x4ab274]
mov ecx, 0x4ab274
push dword [esi + 4]
push ecx
call fcn.00433988
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
and dword [0x4ab278], 0
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
jne 0x4207ac
push ecx
mov ecx, ebx
call fcn.0042a1b6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x5c]
push eax
lea eax, [esp + 0x50]
push 0x49473c
push eax
call fcn.00449eea
add esp, 0xc
push dword [eax]
push 0x494758
push 3
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [esp + 0x4c]
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov esi, dword [esp + 0x20]
test esi, esi
je 0x420827
mov ebx, dword [esp + 0x24]
cmp esi, ebx
je 0x420809
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.0043c924
add esi, 8
cmp esi, ebx
jne 0x4207f4
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ecx, esi
sub edx, esi
and edx, 0xfffffff8
call fcn.0043a508
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
test edi, edi
js 0x420831
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x50]
push dword [eax + 4]
lea eax, [esp + 0x54]
push eax
mov ecx, eax
call fcn.004353bc
mov ecx, dword [esp + 0x50]
push 0x14
pop edx
call fcn.0043a508
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc