Function at 0x1002f3e6
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064e51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x108
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x1002f6e9
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xbc], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax]
test eax, eax
je 0x1002f56b
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x50], eax
mov eax, dword [0x1066f390]
and eax, 1
jne 0x1002f48c
mov eax, dword [0x1066f390]
or eax, 1
mov dword [0x1066f390], eax
and dword [ebp - 4], 0
mov ecx, 0x1066f350
call fcn.100224f8
push 0x100655a0
call fcn.1004b916
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0xcc]
push eax
mov ecx, 0x1066f350
call fcn.100225af
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xd0]
push eax
mov ecx, 0x1066f350
call fcn.100225c6
mov ecx, eax
call fcn.100224e5
movzx eax, al
test eax, eax
je 0x1002f4f3
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
push eax
mov ecx, 0x1066f350
call fcn.1002fd94
mov ecx, dword [ebp - 0x50]
mov ax, word [eax]
mov word [ecx], ax
jmp 0x1002f909
mov eax, dword [ebp - 0x2c]
push dword [eax]
lea eax, [ebp - 0xe8]
push eax
call fcn.1002df63
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xb0]
call fcn.1002244e
mov ax, word [eax]
mov word [ebp - 0x18], ax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.10022412
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push eax
mov ecx, 0x1066f350
call fcn.1002fd94
mov cx, word [ebp - 0x18]
mov word [eax], cx
mov eax, dword [ebp - 0x50]
mov cx, word [ebp - 0x18]
mov word [eax], cx
jmp 0x1002f909
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x48], 0x1355
mov dword [ebp - 0xc0], 0x10008258
cmp dword [ebp - 0x48], 0x1687
jle 0x1002f657
and dword [ebp - 0x30], 0
jmp 0x1002f5ab
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x50dd
jge 0x1002f641
and dword [ebp - 0x28], 0
jmp 0x1002f5c5
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3574
jge 0x1002f63c
and dword [ebp - 0x3c], 0
jmp 0x1002f5db
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x3da8
jge 0x1002f63a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
shl eax, cl
xor eax, dword [ebp - 0x30]
cdq
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], edx
push dword [ebp - 0xc4]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0x100]
call fcn.1000a53d
pop ecx
pop ecx
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
call fcn.1000befa
push eax
call fcn.1004bc81
pop ecx
lea ecx, [ebp - 0x100]
call fcn.10009a15
jmp 0x1002f5d4
jmp 0x1002f5be
jmp 0x1002f5a4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x48], 0x102a
jge 0x1002f67c
push dword [ebp - 0xc0]
call fcn.1004bc81
pop ecx
jmp 0x1002f698
or dword [ebp - 4], 0xffffffff
jmp 0x1002f6a2
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
jmp 0x1002f6c4
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 2
jge 0x1002f6e4
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov ecx, dword [ebp - 0xa4]
call fcn.1000c0cd
mov dword [eax], 0xfffffff7
jmp 0x1002f6b9
jmp 0x1002f909
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
test eax, eax
je 0x1002f725
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [eax], 0xfffffffa
jmp 0x1002f909
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x54], 0x5936
mov dword [ebp - 0x94], 0x10008300
cmp dword [ebp - 0x54], 0x5aba
jle 0x1002f809
and dword [ebp - 0x34], 0
jmp 0x1002f759
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x347d
jge 0x1002f809
and dword [ebp - 0x38], 0
jmp 0x1002f773
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xa40
jge 0x1002f804
and dword [ebp - 0x20], 0
jmp 0x1002f78d
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x5b38
jge 0x1002f7ff
and dword [ebp - 0x24], 0
jmp 0x1002f7a3
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x6c7a
jge 0x1002f7fd
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x20]
and eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edx
push dword [ebp - 0xb4]
push dword [ebp - 0xb8]
lea ecx, [ebp - 0x118]
call fcn.1000a53d
pop ecx
pop ecx
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
call fcn.1000befa
push eax
call fcn.1004bc81
pop ecx
lea ecx, [ebp - 0x118]
call fcn.10009a15
jmp 0x1002f79c
jmp 0x1002f786
jmp 0x1002f76c
jmp 0x1002f752
mov dword [ebp - 0x84], 0x1477
cmp dword [ebp - 0x84], 0x481
jge 0x1002f895
lea eax, [ebp - 0x40]
push eax
push 0x100078f4
call fcn.1004bba6
pop ecx
pop ecx
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x14], 2
jmp 0x1002f846
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x40]
jg 0x1002f886
mov eax, dword [ebp - 0x40]
cdq
idiv dword [ebp - 0x14]
test edx, edx
je 0x1002f85f
jmp 0x1002f83f
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x40]
jne 0x1002f874
mov dword [ebp - 0x4c], 1
jmp 0x1002f878
and dword [ebp - 0x4c], 0
push 2
pop eax
sub eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
jmp 0x1002f83f
push dword [ebp - 0x44]
push 0x100078f8
call fcn.1004bc81
pop ecx
pop ecx
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 4], 4
cmp dword [ebp - 0x54], 0x5915
jge 0x1002f8bd
push dword [ebp - 0x94]
call fcn.1004bc81
pop ecx
jmp 0x1002f8d9
or dword [ebp - 4], 0xffffffff
jmp 0x1002f8e3
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax]
test eax, eax
je 0x1002f909
push 0x5401
push 0x6bbd
push 0
push 0x4764
call fcn.1002aa21
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret