Function at 0x12182f90
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 8
call dword [sym.imp.kernel32.dll_SetLastError]
cmp dword [ebp + 0xc], 0
je 0x12182fd5
mov eax, dword [ebp + 0xc]
push eax
call fcn.121758f0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x12182fd5
jmp 0x12183293
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x12183238
cmp dword [ebp - 4], 1
je 0x12183019
cmp dword [ebp - 4], 7
je 0x12183019
cmp dword [ebp - 4], 2
je 0x12183019
mov dword [ebp - 0x1c], 0
jmp 0x12183020
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x14], 0
je 0x12183034
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
cmp dword [ebp + 0x1c], 0
je 0x1218309f
cmp dword [ebp + 0x18], 0
je 0x12183080
xor eax, eax
cmp dword [ebp - 0x14], 0
setne al
inc eax
imul eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
cmp dword [ecx], eax
jae 0x1218307e
xor edx, edx
cmp dword [ebp - 0x14], 0
setne dl
inc edx
imul edx, dword [ebp - 8]
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
mov dword [ebp - 0x18], 0xea
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.kernel32.dll_SetLastError]
jmp 0x12183293
jmp 0x1218309f
mov dword [ebp - 0x18], 0
xor edx, edx
cmp dword [ebp - 0x14], 0
setne dl
inc edx
imul edx, dword [ebp - 8]
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
jmp 0x12183293
cmp dword [ebp + 0x18], 0
je 0x121831fc
mov dword [ebp - 0x18], 8
push 8
call dword [sym.imp.kernel32.dll_SetLastError]
mov ecx, dword [ebp - 8]
push ecx
push 0
call fcn.121758f0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x121830d4
jmp 0x12183293
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x121831fc
cmp dword [ebp - 4], 1
je 0x1218311a
cmp dword [ebp - 4], 7
je 0x1218311a
cmp dword [ebp - 4], 2
je 0x1218311a
mov dword [ebp - 0x20], 0
jmp 0x12183121
mov dword [ebp - 0x20], 1
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
cmp dword [ebp + 0x18], 0
je 0x121831e3
cmp dword [ebp - 0x14], 0
je 0x121831b3
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
mov byte [eax - 1], 0
cmp dword [ebp - 4], 7
jne 0x1218317b
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
shr edx, 1
cmp edx, dword [ebp - 8]
jae 0x1218315f
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
shr ecx, 1
mov dword [ebp - 0x24], ecx
jmp 0x12183165
mov edx, dword [ebp - 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.121758f0
add esp, 0xc
jmp 0x121831b1
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
shr ecx, 1
cmp ecx, dword [ebp - 8]
jae 0x12183193
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
shr eax, 1
mov dword [ebp - 0x28], eax
jmp 0x12183199
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 0x18]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
jmp 0x121831e1
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
cmp eax, dword [ebp - 8]
jae 0x121831c7
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 0x2c], edx
jmp 0x121831cd
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x18]
push eax
call sub.MSVCR71.dll_memcpy
add esp, 0xc
jmp 0x121831fc
cmp dword [ebp + 0x1c], 0
je 0x121831fc
xor ecx, ecx
cmp dword [ebp - 0x14], 0
setne cl
inc ecx
imul ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x1c]
mov dword [edx], ecx
cmp dword [ebp + 0x1c], 0
je 0x12183236
cmp dword [ebp - 0x14], 0
je 0x12183214
mov eax, dword [ebp - 8]
shl eax, 1
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
jmp 0x12183236
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
cmp eax, dword [ebp - 8]
jae 0x12183228
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 0x30], edx
jmp 0x1218322e
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x30]
mov dword [ecx], edx
jmp 0x12183293
cmp dword [ebp - 0x18], 0xea
jne 0x12183293
cmp dword [ebp - 4], 1
je 0x1218325c
cmp dword [ebp - 4], 7
je 0x1218325c
cmp dword [ebp - 4], 2
je 0x1218325c
mov dword [ebp - 0x34], 0
jmp 0x12183263
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x1c], 0
je 0x12183293
mov dword [ebp - 0x18], 0xea
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.kernel32.dll_SetLastError]
xor edx, edx
cmp dword [ebp - 0x14], 0
setne dl
inc edx
imul edx, dword [ebp - 8]
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
cmp dword [ebp - 0x10], 0
je 0x121832a3
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.kernel32.dll_GlobalFree]
cmp dword [ebp - 0xc], 0
je 0x121832b3
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0x18