Function at 0x1006d71
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
je 0x1007266
cmp dword [ebp + 0xc], ebx
je 0x1007266
cmp dword [ebp + 0x10], ebx
je 0x1007266
cmp dword [ebp + 0x14], ebx
je 0x1007266
mov edi, dword [ebp + 0x20]
cmp edi, ebx
je 0x1007266
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01006a40
cmp dword [ebp + 0x1c], ebx
mov esi, eax
je 0x1006e7c
cmp esi, ebx
jne 0x1006e7c
cmp dword [ebp + 0x18], ebx
je 0x1006e04
cmp dword [ebp + 0x18], 1
jne 0x1006e0d
cmp dword [edi], 1
je 0x1007262
push ebx
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x1006e3c
push edi
call fcn.01002093
mov eax, edi
jmp 0x1007270
cmp dword [ebp - 0xc], ebx
mov eax, dword [ebp - 4]
je 0x1006e52
cmp eax, ebx
jne 0x1006e52
mov edi, 0x100
mov dword [ebp - 4], edi
jmp 0x1006e60
mov edi, 0x100
cmp eax, edi
jae 0x1006e60
add eax, eax
mov dword [ebp - 4], eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
call esi
mov esi, eax
cmp esi, ebx
je 0x1006e89
push esi
call fcn.01002093
mov eax, esi
jmp 0x1007270
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
mov eax, dword [ebp - 0x10]
je 0x1006e9b
cmp eax, ebx
jne 0x1006e9b
mov eax, edi
jmp 0x1006ea1
cmp eax, edi
jae 0x1006ea1
add eax, eax
cmp dword [ebp + 0x18], ebx
je 0x1006eac
cmp dword [ebp + 0x18], 1
jne 0x1006ebe
cmp dword [ebp - 0xc], ecx
jne 0x1007259
cmp dword [ebp - 4], eax
jne 0x1007259
inc eax
inc dword [ebp - 4]
cmp eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
jbe 0x1006ecf
mov dword [ebp - 4], eax
jmp 0x1006ed5
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
call fcn.0100b5ae
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x1006f11
call fcn.0100b5ae
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x1006f08
mov eax, dword [ebp - 4]
add eax, eax
push eax
call fcn.010099e1
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x1006f1f
lea eax, [ebp - 0x20]
push eax
call fcn.0100b623
lea eax, [ebp - 0x1c]
push eax
call fcn.0100b623
push 0xe
call fcn.01002093
push 0xe
jmp 0x100726f
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor edi, edi
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
jbe 0x1006f7f
cmp dword [ebp - 8], ebx
jne 0x1006f7f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
add eax, eax
cmp eax, ebx
je 0x1006f49
mov byte [ecx], bl
inc ecx
dec eax
jne 0x1006f43
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
push edi
push dword [ebp + 8]
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1006f79
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0100ba41
cmp eax, 0xffffffff
jne 0x1006f79
mov dword [ebp - 8], 0xe
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x1006f2f
xor edi, edi
cmp dword [ebp - 0x14], ebx
jbe 0x1006fd6
cmp dword [ebp - 8], ebx
jne 0x1006fd6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
add eax, eax
cmp eax, ebx
je 0x1006fa0
mov byte [ecx], bl
inc ecx
dec eax
jne 0x1006f9a
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
push edi
push dword [ebp + 0x10]
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1006fd0
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.0100ba41
cmp eax, 0xffffffff
jne 0x1006fd0
mov dword [ebp - 8], 0xe
inc edi
cmp edi, dword [ebp - 0x14]
jb 0x1006f86
lea eax, [ebp - 0x18]
push eax
call fcn.01009f4b
cmp dword [ebp - 8], ebx
jne 0x1007035
push ebx
push dword [ebp + 0xc]
call fcn.01009813
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0x14]
lea eax, [ecx + eax + 5]
mov dword [ebp - 4], eax
call fcn.01009813
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax + 5]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, eax
push eax
call fcn.010099e1
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x100702e
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
call fcn.010099e1
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x1007035
mov dword [ebp - 8], 0xe
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 0x2c], ebx
jbe 0x1007185
mov edi, 0x10014b0
cmp dword [ebp - 8], ebx
jne 0x1007185
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0100bc80
push ebx
push 1
mov esi, eax
push esi
push dword [ebp - 0x20]
call fcn.0100bf7b
cmp eax, 0xffffffff
mov dword [ebp - 0x3c], eax
je 0x1007245
cmp dword [ebp + 0x18], 4
je 0x1007080
cmp dword [ebp + 0x18], 2
jne 0x100708b
push 3
push esi
push dword [ebp + 0xc]
call fcn.0100629e
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp - 0x24]
call fcn.01009ee4
push dword [ebp - 4]
push edi
push dword [ebp - 0x24]
call fcn.0100a3ad
push dword [ebp - 4]
push esi
push dword [ebp - 0x24]
call fcn.0100a3ad
push dword [ebp - 0x10]
push dword [ebp + 0x14]
push dword [ebp - 0x28]
call fcn.01009ee4
push dword [ebp - 0x10]
push edi
push dword [ebp - 0x28]
call fcn.0100a3ad
push dword [ebp - 0x10]
push esi
push dword [ebp - 0x28]
call fcn.0100a3ad
lea eax, [ebp - 0x34]
push eax
push 0x20019
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1007185
lea eax, [ebp - 0x38]
push eax
push 0x20019
push ebx
push esi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1007185
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 0x20]
inc eax
push eax
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0x28]
push dword [ebp - 0x38]
push dword [ebp - 0x24]
push dword [ebp - 0x34]
call fcn.01006d71
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
call fcn.01001b65
lea eax, [ebp - 0x38]
push eax
call fcn.01001b65
cmp dword [ebp - 8], ebx
jne 0x1007167
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0100bb76
push dword [ebp - 0x3c]
push dword [ebp - 0x20]
call fcn.0100bb76
dec dword [ebp - 0xc]
dec dword [ebp - 0x14]
cmp dword [esi], 1
jne 0x1007248
cmp dword [ebp + 0x18], ebx
je 0x100717f
cmp dword [ebp + 0x18], 1
jne 0x1007248
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
xor esi, esi
cmp dword [ebp - 0xc], ebx
jbe 0x10071be
xor edi, edi
inc edi
cmp dword [ebp - 8], ebx
jne 0x10071be
push esi
push dword [ebp - 0x1c]
call fcn.0100bc80
cmp dword [ebp + 0x18], 3
je 0x10071a9
cmp dword [ebp + 0x18], 4
jne 0x10071b3
push edi
push eax
push dword [ebp + 0xc]
call fcn.0100629e
mov eax, dword [ebp + 0x20]
inc esi
cmp esi, dword [ebp - 0xc]
mov dword [eax], edi
jb 0x100718f
xor esi, esi
cmp dword [ebp - 0x14], ebx
jbe 0x10071f9
cmp dword [ebp - 8], ebx
jne 0x10071f9
push esi
push dword [ebp - 0x20]
call fcn.0100bc80
cmp dword [ebp + 0x18], 3
je 0x10071df
cmp dword [ebp + 0x18], 4
jne 0x10071ea
push 2
push eax
push dword [ebp + 0x14]
call fcn.0100629e
mov eax, dword [ebp + 0x20]
inc esi
cmp esi, dword [ebp - 0x14]
mov dword [eax], 1
jb 0x10071c5
lea eax, [ebp - 0x18]
push eax
call fcn.01009f4b
lea eax, [ebp - 0x34]
push eax
call fcn.01001b65
lea eax, [ebp - 0x38]
push eax
call fcn.01001b65
lea eax, [ebp - 0x24]
push eax
call fcn.01009f4b
lea eax, [ebp - 0x28]
push eax
call fcn.01009f4b
lea eax, [ebp - 0x1c]
push eax
call fcn.0100b623
lea eax, [ebp - 0x20]
push eax
call fcn.0100b623
push dword [ebp - 8]
call fcn.01002093
mov eax, dword [ebp - 8]
jmp 0x1007270
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x2c], eax
jb 0x1007046
jmp 0x1007185
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
xor eax, eax
jmp 0x1007270
push 0x57
call fcn.01002093
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x20