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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x1079e94]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x828], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x824], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [esi]
mov dword [ebp - 0x834], eax
xor eax, eax
inc dword [0x1079e00]
push eax
push 0x93f
mov dword [ebp - 0x830], ebx
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x80c], eax
call fcn.01052a94
push eax
push 0x931
call fcn.01052a94
push eax
push ebx
mov ecx, esi
call dword [edi + 4]
mov edi, dword [esi]
push 0x7f02
push 0
mov dword [ebp - 0x808], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
mov ecx, esi
call dword [edi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x818], eax
call edi
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x820]
push eax
push ebx
call fcn.010417ab
test eax, eax
je 0x1042991
cmp dword [ebp - 0x820], 0
je 0x1042991
push dword [ebp - 0x818]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
call edi
sub eax, dword [ebp - 0x814]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov edx, dword [esi]
mov ecx, esi
push eax
push dword [ebp - 0x808]
mov dword [ebp - 0x818], eax
call dword [edx + 0x10]
mov edi, dword [esi]
push 0x932
call fcn.01052a94
push eax
push dword [ebp - 0x808]
mov ecx, esi
call dword [edi + 8]
push 0x942
call fcn.01052a94
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x814], eax
jne 0x1042773
mov dword [ebp - 0x814], 0x1008988
push dword [ebp - 0x814]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0x80c], eax
jne 0x10427aa
push 0x8007000e
push 0x6ae013f
call fcn.01053610
jmp 0x1042a12
push edi
push dword [ebp - 0x820]
mov dword [ebp - 0x81c], edi
call dword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
mov edi, eax
test edi, edi
mov dword [ebp - 0x810], edi
je 0x1042982
jmp 0x10427db
mov edi, dword [ebp - 0x810]
mov ebx, dword [ebp - 0x830]
push ebx
push dword [ebp - 0x81c]
lea eax, [ebp - 0x804]
push dword [ebp + 0x14]
push 0x100d224
push 0x400
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
and word [ebp - 6], 0
add esp, 0x18
push 0x10059c4
push dword [ebp - 0x81c]
push dword [0x1079e00]
push dword [0x107bb40]
push dword [edi + 8]
push dword [edi + 4]
call fcn.010250ab
test eax, eax
je 0x1042835
push eax
push 0x6cf013f
call fcn.01053610
push dword [ebp - 0x834]
push dword [ebp - 0x824]
push edi
call fcn.01042476
push dword [ebp - 0x814]
mov ebx, eax
push dword [ebp - 0x80c]
call dword [sym.imp.msvcrt.dll_wcscpy]
cmp ebx, 0xffffffff
pop ecx
pop ecx
je 0x1042888
push ebx
push 0x100d218
push dword [ebp - 0x814]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0x80c]
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [ebp - 0x818]
mov ebx, dword [esi]
push dword [ebp - 0x80c]
push 0x934
call fcn.01052a94
cmp dword [ebp - 0x81c], 0
push eax
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
jne 0x10428be
push dword [ebp - 0x808]
call dword [ebx + 0x14]
jmp 0x10428c7
call dword [ebx + 4]
mov dword [ebp - 0x808], eax
mov ebx, dword [esi]
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
mov ecx, esi
call dword [ebx + 0x1c]
push edi
push dword [ebp - 0x828]
mov ebx, eax
call fcn.01041df4
mov dword [ebp - 0x82c], eax
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x1c]
push dword [ebp - 0x82c]
mov eax, dword [esi]
push dword [ebp - 0x808]
mov ecx, esi
call dword [eax + 8]
push 0x204
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x104292d
push 0x8007000e
push 0x6f9013f
call fcn.01053610
jmp 0x1042961
push dword [ebp - 0x810]
xor eax, eax
mov ecx, 0x81
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [ebx], 1
call dword [sym.imp.CRYPT32.dll_CertDuplicateCertificateContext]
push ebx
push dword [ebp - 0x808]
mov dword [ebx + 4], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov edi, dword [ebp - 0x810]
inc dword [ebp - 0x81c]
push edi
push dword [ebp - 0x820]
call dword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
test eax, eax
mov dword [ebp - 0x810], eax
jne 0x10427cf
mov dword [ebp - 0x810], 1
jmp 0x1042a12
call fcn.0106d6ff
push dword [ebp - 0x818]
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push edi
push 0x678013f
push ebx
call fcn.0105364b
mov ebx, dword [esi]
push 0x933
call fcn.01052a94
push eax
push dword [ebp - 0x808]
mov ecx, esi
call dword [ebx + 8]
push 0x204
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x10429eb
push 0x8007000e
push 0x682013f
call fcn.01053610
jmp 0x1042a27
push edi
lea eax, [ebx + 4]
and word [eax], 0
push 0x100
push eax
mov dword [ebx], 3
call fcn.010425f6
mov eax, dword [esi]
push ebx
push dword [ebp - 0x808]
mov ecx, esi
call dword [eax + 0xc]
cmp dword [ebp - 0x80c], 0
je 0x1042a27
push dword [ebp - 0x80c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x810]
pop edi
pop esi
pop ebx
call fcn.0104b509
leave
ret 0x18