Function at 0x402ad6
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1cdc
call fcn.00411710
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x25c]
xor ebx, ebx
cmp dword [eax + 0x4448], ebx
push edi
mov dword [ebp - 4], esi
je 0x402ba7
push dword [ebp + 0x10]
call sub.msvcrt.dll_strlen
cmp eax, 0xff
pop ecx
jle 0x402ba7
cmp dword [ebp + 0x14], 0xa
jle 0x402ba7
mov edi, 0x3ff
push edi
lea eax, [ebp - 0x4af]
push ebx
push eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x4b0], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push 0x41281c
push dword [ebp + 0x10]
lea eax, [ebp - 0x4b0]
mov dword [ebp - 0x10], ebx
push edi
push eax
lea ebx, [ebp - 0x10]
call fcn.00405968
add esp, 0x18
test eax, eax
je 0x402ba5
push dword [ebp + 0xc]
lea eax, [ebp - 0x4b0]
push eax
call sub.msvcrt.dll__mbsicmp
test eax, eax
pop ecx
pop ecx
jne 0x402b78
inc dword [ebp - 0xc]
push 0
push 0
push 0x41281c
push dword [ebp + 0x10]
lea eax, [ebp - 0x4b0]
push edi
push eax
lea ebx, [ebp - 0x10]
call fcn.00405968
add esp, 0x18
test eax, eax
jne 0x402b60
cmp dword [ebp - 0xc], 3
jg 0x403586
xor ebx, ebx
mov eax, dword [esi + 0x25c]
mov ecx, dword [eax + 0x4444]
cmp ecx, ebx
jl 0x402bc0
cmp dword [ebp + 0x14], ecx
jg 0x403586
mov ecx, dword [eax + 0x340c]
cmp ecx, 6
je 0x402bd0
cmp ecx, 7
jne 0x402bea
mov ebx, dword [esi + 0x1d0]
lea ecx, [eax + 0x2001]
mov eax, dword [eax + 0x3420]
push ecx
call fcn.0040c780
xor ebx, ebx
mov eax, dword [esi + 0x25c]
cmp dword [eax + 0x3410], ebx
je 0x402c52
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x1cd8], bl
mov edi, 0xfff
push 1
push 0x412820
push 0x412824
add eax, 0x2402
push eax
lea eax, [ebp - 0x1cd8]
push edi
push eax
lea ebx, [ebp - 0x10]
call fcn.00405968
add esp, 0x18
test eax, eax
je 0x402c50
lea eax, [ebp - 0x1cd8]
push eax
push dword [ebp + 0x10]
call sub.msvcrt.dll__stricmp
test eax, eax
pop ecx
pop ecx
je 0x403586
mov eax, dword [esi + 0x25c]
jmp 0x402c06
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x8af]
push ebx
push eax
mov dword [ebp - 8], ebx
mov byte [ebp - 0x8b0], bl
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x25c]
mov ecx, dword [esi + 0x2c]
add esp, 0xc
cmp ecx, dword [eax + 0x3408]
jl 0x402c8b
mov dword [esi + 0x258], 1
cmp dword [esi + 0x258], ebx
jne 0x403586
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call edi
sub eax, dword [esi + 0x254]
cmp eax, 0x32
jbe 0x402d0d
push dword [ebp + 0x10]
call sub.msvcrt.dll_strlen
cmp eax, 0x300
pop ecx
push 0xa
pop ebx
jae 0x402cc7
call fcn.00406415
push dword [ebp + 0x10]
jmp 0x402cd1
call fcn.00406415
push 0x412535
push dword [esi + 0x2c]
push eax
lea eax, [ebp - 0x8b0]
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
lea eax, [ebp - 0x8b0]
push eax
push 0
push 0x401
push dword [esi + 0x1c8]
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00401d41
call edi
mov dword [esi + 0x254], eax
xor ebx, ebx
inc dword [esi + 0x260]
or dword [ebp - 0x40], 0xffffffff
push 0x412828
push dword [ebp + 0x10]
call sub.msvcrt.dll__mbsicmp
test eax, eax
pop ecx
pop ecx
push dword [0x41571c]
jne 0x402d47
call fcn.00401de6
or eax, 0x20019
push eax
push str.SoftwareClassesVirtualStoreMachineSOFTWARE
push 0x80000001
jmp 0x402d58
call fcn.00401de6
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
lea esi, [ebp - 8]
call fcn.004100b7
cmp eax, ebx
jne 0x403578
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xcd8]
push eax
push 1
push dword [ebp + 8]
mov dword [ebp - 0x74], 0x424
call dword [sym.imp.ADVAPI32.dll_RegGetKeySecurity]
test eax, eax
jne 0x402df3
mov esi, 0x415b04
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x3c], ebx
call fcn.0040dcfc
test eax, eax
je 0x402df3
push str.GetSecurityDescriptorOwner
push dword [0x415b04]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
je 0x402df3
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0xcd8]
push ecx
call eax
cmp eax, ebx
je 0x402df3
cmp dword [ebp - 0xc], ebx
je 0x402df3
mov eax, dword [0x41571c]
cmp dword [eax + 0x447c], ebx
je 0x402de0
add eax, 0x4484
jmp 0x402de2
xor eax, eax
push dword [ebp - 0xc]
push eax
push 0x41514c
call fcn.0040dd1c
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x7c], ebx
lea edi, [ebp - 0x78]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], ebx
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00405b58
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x25c]
mov eax, dword [esi + 0x342c]
cmp eax, 2
pop ecx
pop ecx
mov dword [ebp + 8], 1
jne 0x402ec5
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
xor ecx, ecx
or ecx, edx
mov edx, dword [esi + 0x4454]
mov dword [ebp - 0x2c], edx
mov edx, dword [esi + 0x4450]
mov dword [ebp - 0x18], ecx
xor ecx, ecx
or ecx, edx
mov edx, dword [ebp - 0x2c]
xor edi, edi
or eax, edi
or edx, edi
cmp eax, edx
jb 0x402f8c
ja 0x402e95
cmp dword [ebp - 0x18], ecx
jb 0x402f8c
mov edx, dword [esi + 0x445c]
mov dword [ebp - 0x2c], edx
mov edx, dword [esi + 0x4458]
xor ecx, ecx
or ecx, edx
mov edx, dword [ebp - 0x2c]
xor edi, edi
or edx, edi
cmp eax, edx
jb 0x402f8f
ja 0x402f8c
cmp dword [ebp - 0x18], ecx
jmp 0x402f8a
cmp eax, 1
jne 0x402f8f
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00405b58
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x25c]
mov eax, dword [esi + 0x3430]
cmp eax, 1
pop ecx
pop ecx
jne 0x402f11
mov eax, dword [esi + 0x3434]
neg eax
jmp 0x402f45
cmp eax, 2
jne 0x402f21
mov eax, dword [esi + 0x3434]
imul eax, eax, 0xffffffc4
jmp 0x402f45
cmp eax, 3
jne 0x402f34
mov eax, dword [esi + 0x3434]
imul eax, eax, 0xfffff1f0
jmp 0x402f45
cmp eax, 4
jne 0x402f4f
mov eax, dword [esi + 0x3434]
imul eax, eax, 0xfffeae80
push eax
lea edi, [ebp - 0x18]
call fcn.00405519
pop ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
xor ecx, ecx
or ecx, edx
mov edx, dword [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x30], ecx
xor ecx, ecx
or ecx, dword [ebp - 0x18]
or eax, edi
or edx, edi
cmp eax, edx
jb 0x402f8c
ja 0x402f75
cmp dword [ebp - 0x30], ecx
jb 0x402f8c
mov edx, dword [ebp - 0x1c]
xor edi, edi
xor ecx, ecx
or ecx, dword [ebp - 0x20]
or edx, edi
cmp eax, edx
jb 0x402f8f
ja 0x402f8c
cmp dword [ebp - 0x30], ecx
jbe 0x402f8f
mov dword [ebp + 8], ebx
mov eax, dword [esi + 0x3438]
cmp eax, ebx
mov edi, 0x100
je 0x403057
mov esi, dword [ebp - 0x40]
cmp esi, ebx
jl 0x402fbf
cmp esi, dword [0x415158]
jge 0x402fbf
imul esi, esi, 0x524
add esi, dword [0x41514c]
jmp 0x402fc1
xor esi, esi
cmp esi, ebx
je 0x40304f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x2e8], ebx
mov dword [ebp - 0x1c], ebx
jle 0x403026
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
add ecx, 0x2cc
call fcn.00405e0c
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x424]
push eax
push dword [ebp - 0x14]
call sub.msvcrt.dll__stricmp
test eax, eax
pop ecx
pop ecx
je 0x403038
lea eax, [esi + 0x4a4]
push eax
push dword [ebp - 0x14]
call sub.msvcrt.dll__stricmp
test eax, eax
pop ecx
pop ecx
je 0x403038
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x2e8]
jl 0x402fd7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x25c]
cmp dword [eax + 0x3438], 1
jmp 0x403052
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x25c]
cmp dword [eax + 0x3438], 2
jne 0x403057
jmp 0x403483
cmp eax, 1
jne 0x403057
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
je 0x403483
mov edx, dword [ebp - 0x24]
cmp dword [ebp - 0x58], edx
jbe 0x40306b
mov edx, dword [ebp - 0x58]
cmp dword [ebp - 0x5c], edx
jbe 0x403073
mov edx, dword [ebp - 0x5c]
add edx, edi
lea eax, [ebp - 0x54]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x3c], edx
mov dword [ebp + 8], edx
call fcn.00405e60
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x70]
call fcn.00405e60
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x25c]
or dword [ebp - 0xc], 0xffffffff
cmp dword [eax + 0x3404], 2
mov dword [ebp - 0x14], ebx
jne 0x4031b5
cmp dword [eax + 0x3414], ebx
je 0x4031b5
mov esi, dword [ebp - 4]
push dword [ebp + 0x10]
lea edi, [esi + 0x264]
call fcn.00405ebb
push dword [ebp + 0xc]
lea edi, [esi + 0x278]
call fcn.00405ebb
push 0xffffffffffffffff
lea eax, [esi + 0x264]
push eax
xor eax, eax
mov ecx, esi
call fcn.004027fa
test eax, eax
jne 0x40311f
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.004027fa
test eax, eax
je 0x4031b5
push 0xffffffffffffffff
push dword [ebp + 0x10]
mov eax, 0x41512c
mov dword [ebp - 0x14], 1
call fcn.00405d69
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x25c]
cmp dword [eax + 0x3424], ebx
je 0x4031b5
lea esi, [ebp - 0xac]
call fcn.00402145
mov eax, dword [ebp - 0xc]
or dword [ebp - 0x9c], 0xffffffff
or dword [ebp - 0x98], 0xffffffff
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x80], eax
mov eax, esi
mov esi, dword [ebp - 4]
push eax
mov eax, esi
mov dword [ebp - 0x94], 0x63
call fcn.00407b26
mov ecx, dword [esi + 0x25c]
cmp dword [ecx + 0x4480], ebx
je 0x4031b5
mov ecx, esi
mov edx, dword [ecx + 0x2c]
dec edx
mov edi, eax
push edx
mov eax, ecx
call fcn.0040790c
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x25c]
mov ecx, dword [edi + 0x2c]
cmp ecx, dword [eax + 0x3408]
jl 0x4031d3
mov dword [edi + 0x258], 1
cmp dword [edi + 0x258], ebx
je 0x4031e8
lea esi, [ebp - 0x70]
call fcn.00405e96
jmp 0x403570
cmp dword [eax + 0x3424], ebx
je 0x403205
cmp dword [eax + 0x3428], ebx
je 0x403205
cmp dword [eax + 0x3404], 2
je 0x40346e
mov ecx, dword [ebp - 0x70]
cmp ecx, ebx
mov esi, 0x412535
jne 0x403213
mov ecx, esi
mov eax, dword [ebp - 0x54]
cmp eax, ebx
jne 0x40321c
mov eax, esi
lea edx, [ebp + 8]
push edx
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40346e
mov eax, dword [edi + 0x25c]
xor ecx, ecx
inc ecx
cmp dword [eax + 0x3404], ecx
mov dword [ebp + 0xc], ebx
je 0x403258
cmp dword [ebp - 0x14], ebx
je 0x403260
mov dword [ebp + 0xc], ecx
jmp 0x40332f
cmp dword [eax + 0x3418], ebx
je 0x403282
push 0xffffffffffffffff
lea eax, [ebp - 0x54]
push eax
xor eax, eax
mov ecx, edi
call fcn.004027fa
test eax, eax
je 0x403282
mov dword [ebp + 0xc], 1
mov eax, dword [edi + 0x25c]
cmp dword [eax + 0x341c], ebx
jne 0x4032a4
mov eax, dword [eax + 0x340c]
cmp eax, 4
je 0x4032a4
cmp eax, 5
jne 0x40332f
push dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
xor eax, eax
mov ecx, edi
call fcn.004027fa
test eax, eax
je 0x4032bf
mov dword [ebp + 0xc], 1
cmp dword [ebp + 0xc], ebx
jne 0x403300
cmp dword [ebp - 0x1c], 1
je 0x4032d0
cmp dword [ebp - 0x1c], 2
jne 0x403300
mov ecx, dword [ebp + 8]
cmp ecx, ebx
jbe 0x403300
mov eax, dword [ebp - 0x70]
cmp eax, ebx
jne 0x4032e0
mov eax, esi
cmp byte [eax + ecx - 1], bl
jne 0x403300
dec ecx
push ecx
lea eax, [ebp - 0x70]
push eax
xor eax, eax
mov ecx, edi
call fcn.004027fa
test eax, eax
je 0x403300
mov dword [ebp + 0xc], 1
mov eax, dword [edi + 0x25c]
cmp dword [eax + 0x444c], ebx
je 0x40332f
cmp dword [ebp + 0xc], ebx
jne 0x40332f
push dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
xor eax, eax
inc eax
mov ecx, edi
call fcn.004027fa
test eax, eax
je 0x40332f
mov dword [ebp + 0xc], 1
mov eax, dword [edi + 0x25c]
cmp dword [eax + 0x4468], ebx
je 0x403353
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x4460]
jb 0x403350
cmp ecx, dword [eax + 0x4464]
jbe 0x403353
mov dword [ebp + 0xc], ebx
cmp dword [eax + 0x446c], ebx
je 0x40336e
mov ecx, dword [ebp - 0x1c]
xor edx, edx
inc edx
shl edx, cl
test dword [eax + 0x4470], edx
jne 0x40336e
mov dword [ebp + 0xc], ebx
mov ecx, dword [edi + 0x2c]
cmp ecx, dword [eax + 0x3408]
jl 0x403383
mov dword [edi + 0x258], 1
cmp dword [edi + 0x258], ebx
jne 0x4031db
cmp dword [ebp + 0xc], ebx
je 0x403458
lea esi, [ebp - 0xac]
call fcn.00402145
cmp dword [ebp - 0x54], ebx
mov eax, 0x412535
je 0x4033b0
mov eax, dword [ebp - 0x54]
push 0xffffffffffffffff
push eax
mov esi, 0x41512c
mov eax, esi
call fcn.00405d69
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x70]
cmp eax, ebx
jne 0x4033d1
mov eax, 0x412535
push dword [ebp + 8]
push eax
mov eax, esi
call fcn.00405d69
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
jne 0x403422
push eax
push dword [ebp + 0x10]
mov eax, esi
call fcn.00405d69
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xac]
push eax
mov eax, edi
call fcn.00407b26
mov ecx, dword [edi + 0x25c]
cmp dword [ecx + 0x4480], ebx
je 0x403458
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c]
dec edx
mov edi, eax
push edx
mov eax, ecx
call fcn.0040790c
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
inc dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov dword [ebp + 8], eax
call fcn.00401d41
jmp 0x403205
lea esi, [ebp - 0x70]
call fcn.00405e96
lea esi, [ebp - 0x54]
call fcn.00405e96
mov edi, 0x100
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x4af]
push ebx
push eax
mov dword [ebp + 8], ebx
mov byte [ebp - 0x4b0], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x4b0]
push eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x4c], ebx
push ebx
jmp 0x40355c
call fcn.00401d41
mov eax, dword [ebp - 4]
cmp dword [eax + 0x258], ebx
jne 0x403570
push dword [ebp + 0x10]
lea edi, [ebp - 0x54]
call fcn.00405ebb
push 0x41281c
or eax, 0xffffffff
call fcn.00405f13
lea eax, [ebp - 0x4b0]
push eax
or eax, 0xffffffff
call fcn.00405f13
mov edi, dword [ebp - 0x54]
cmp edi, ebx
mov eax, 0x412535
je 0x403512
mov eax, edi
push str.HKCRVirtualStoreMACHINESOFTWAREClassesVirtualStoreMACHINE
push eax
call sub.msvcrt.dll__stricmp
test eax, eax
pop ecx
pop ecx
je 0x403544
cmp edi, ebx
jne 0x40352c
mov edi, 0x412535
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
inc eax
push eax
push edi
lea eax, [ebp - 0x4b0]
push eax
push dword [ebp - 8]
call fcn.00402ad6
inc dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x4b0]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
mov dword [ebp + 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4034c9
lea esi, [ebp - 0x54]
call fcn.00405e96
cmp dword [ebp - 8], ebx
je 0x403586
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 0x10