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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x3c], ecx
mov ebx, edx
mov dword [esp + 0x1c], ebx
cmp dword [ebp + 0xc], edi
je 0x4207b1
push dword [ebp + 0x10]
push edi
push edi
push 0x9478
call dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x154
mov dword [esp + 0x58], eax
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
test eax, eax
je 0x4207de
push dword [ebp + 8]
mov ecx, eax
push ebx
call fcn.00420230
mov ebx, eax
mov dword [esp + 0x20], ebx
jmp 0x4207e4
mov ebx, edi
mov dword [esp + 0x20], edi
mov ecx, ebx
call fcn.004202a1
mov esi, eax
mov dword [esp + 0x38], esi
test esi, esi
je 0x420814
test ebx, ebx
je 0x42080d
mov ecx, ebx
call fcn.00420639
push 0x154
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, esi
jmp 0x420c82
push 0x14
pop ecx
mov dword [esp + 0x5c], edi
call fcn.00437b16
push edi
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esp + 0x5c], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
xor edx, edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 0x18]
mov esi, dword [eax + 0x14]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
xor ecx, ecx
and dword [esp + 0x48], ecx
mov dword [esp + 0x40], ecx
mov esi, dword [esi]
mov dword [esp + 0x18], ecx
cmp byte [esi + 0xd], cl
jne 0x420ba1
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.00420696
cmp eax, 1
jne 0x420974
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [ecx + 0xc]
call fcn.00430844
lea ecx, [esi + 0x24]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
push ebx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x64]
push dword [eax + 0x24]
call fcn.004242f3
xor eax, eax
lea edx, [esp + 0x28]
push eax
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0xc8], eax
call fcn.00424ac2
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
call fcn.0044c1b4
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0043cad2
mov ecx, dword [esp + 0x10]
add eax, 0x10
mov dword [esp + 0x4c], eax
add eax, 0xfffffff0
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
cmp ecx, dword [esp + 0x48]
je 0x42092e
mov ecx, eax
call fcn.0043cad2
mov ecx, dword [esp + 0x24]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
add dword [esp + 0x44], 8
jmp 0x42093d
lea eax, [esp + 0x4c]
push eax
push ecx
lea ecx, [esp + 0x48]
call fcn.00433bd1
mov ecx, dword [esp + 0x18]
call fcn.0043d912
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043d912
cmp dword [ebp + 0xc], 0
je 0x42096b
push dword [ebp + 0x10]
push 0
push 0
push 0x948e
call dword [ebp + 0xc]
test eax, eax
jne 0x4209c7
lea ecx, [esp + 0x60]
call fcn.004247b3
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x420996
mov eax, dword [esi + 4]
jmp 0x42098c
cmp esi, dword [eax + 8]
jne 0x420992
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x420982
mov esi, eax
jmp 0x4209ac
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4209ac
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4209a0
cmp byte [esi + 0xd], 0
je 0x420870
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], edx
jmp 0x420b9d
lea ecx, [esp + 0x60]
mov dword [esp + 0x38], 0x4c7
call fcn.004247b3
jmp 0x420bc8
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, 0xffffffff
je 0x420b9a
mov edx, dword [esp + 0x34]
imul eax, edx, 0x64
add eax, 0x64
inc edx
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x34], edx
mov eax, dword [eax]
mov dword [esp + 0x10], eax
call fcn.0043d5bb
push eax
lea ecx, [esp + 0x18]
call fcn.0043bbe8
push ecx
mov ecx, dword [esp + 0x14]
push 8
push str.UpdateId
mov ecx, dword [ecx + esi*4]
call fcn.004392e4
test eax, eax
je 0x420a58
mov eax, dword [eax + 4]
test eax, eax
jne 0x420a45
mov eax, 0x4934ec
push eax
lea ecx, [esp + 0x18]
call fcn.004394dd
lea ecx, [esp + 0x14]
call fcn.0043233a
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x60]
call fcn.00435e8d
cmp byte [esp + 0x50], 0
je 0x420b70
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x60]
push ebx
push dword [eax + esi*4]
call fcn.004242f3
and dword [esp + 0xc0], 0
lea ecx, [esp + 0x60]
call fcn.00424785
cmp eax, 1
jne 0x420b37
and dword [esp + 0x10], 0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x60]
call fcn.00424a20
test eax, eax
je 0x420ac7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x420b37
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x420b37
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x24]
and dword [esp + 0x24], 0
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0xc]
mov eax, dword [esi]
xor ebx, ebx
cmp dword [esp + 0x24], ebx
push esi
setne bl
call dword [eax + 8]
cmp ebx, 1
jne 0x420b2f
push 0x2c
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
test eax, eax
je 0x420b0c
lea ecx, [esp + 0x60]
push ecx
mov ecx, eax
call fcn.00424d3a
mov esi, eax
jmp 0x420b0e
xor esi, esi
push dword [esp + 0x18]
lea ecx, [esi + 0x1c]
call fcn.0043c5cb
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], esi
lea ecx, [ecx + 8]
call fcn.00432987
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
cmp dword [ebp + 0xc], 0
je 0x420b67
mov eax, dword [esp + 0x28]
cdq
idiv dword [esp + 0x30]
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 0x420bab
lea ecx, [esp + 0x60]
call fcn.004247b3
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0043d912
mov ecx, dword [esp + 0x18]
dec esi
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
jne 0x4209fd
mov edx, dword [esp + 0x2c]
add ecx, 8
mov dword [esp + 0x18], ecx
cmp ecx, edx
jne 0x4209dd
jmp 0x420bc8
lea ecx, [esp + 0x60]
mov dword [esp + 0x38], 0x4c7
call fcn.004247b3
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043d912
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.004344df
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
and dword [ebx + 4], 0
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 0x148]
cmp dword [eax + 0x14], 0
je 0x420c23
mov esi, dword [0x4ad1ec]
mov ecx, 0x4ad1ec
push dword [esi + 4]
push ecx
call fcn.004347d3
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
and dword [0x4ad1f0], 0
mov ecx, ebx
call fcn.00420672
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x54]
push eax
lea eax, [esp + 0x40]
push 0x49687c
push eax
call fcn.0044af44
add esp, 0xc
push dword [eax]
push 0x496898
push 3
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx - 0x10]
call fcn.0043d912
lea ecx, [esp + 0x40]
call fcn.004303c5
test edi, edi
js 0x420c75
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x58]
call fcn.00430407
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc