Function at 0x10006a9b
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1000d3fe
call fcn.10007e8c
sub esp, 0x3c
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0x14], 1
push str.CString
mov eax, dword [ebp - 0x40]
add eax, 0x14
push eax
call fcn.100068ae
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x10006ad7
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
je 0x10006b04
mov eax, dword [ebp - 0x40]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 4
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x10006b04
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
je 0x10006d6b
cmp dword [ebp + 0xc], 0
je 0x10006bff
cmp dword [ebp + 0x10], 2
jge 0x10006b63
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x40]
add eax, 0x24
push eax
push 0
push 0
mov ecx, dword [ebp - 0x40]
add ecx, 0xc
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10006b4f
and dword [ebp - 0x14], 0
jmp 0x10006b5e
mov eax, dword [ebp - 0x40]
add eax, 0x24
push eax
mov ecx, dword [ebp + 8]
call fcn.10001581
jmp 0x10006bfa
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x40]
add eax, 0x24
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x40]
add ecx, 0xc
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10006b9d
and dword [ebp - 0x14], 0
jmp 0x10006bfa
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 8]
call fcn.10001396
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jae 0x10006bfa
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + eax + 0x24]
push eax
mov ecx, dword [ebp + 8]
call fcn.100017f8
mov ecx, dword [ebp + 8]
call fcn.10001409
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jae 0x10006bf8
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x1c]
movsx eax, byte [eax + 0x24]
test eax, eax
jne 0x10006bf8
push 0x5e
mov ecx, dword [ebp + 8]
call fcn.10001811
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x10006bcf
jmp 0x10006ba9
jmp 0x10006d6b
cmp dword [ebp + 0x10], 2
jge 0x10006c4d
mov ecx, dword [ebp + 8]
call fcn.10001409
inc eax
push eax
mov ecx, dword [ebp + 8]
call fcn.10001bf8
push eax
xor eax, eax
cmp dword [ebp + 0x10], 0
setne al
inc eax
push eax
push 0
mov ecx, dword [ebp - 0x40]
add ecx, 0xc
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10006c48
xor eax, eax
jmp 0x10006d7a
jmp 0x10006d6b
mov ecx, dword [ebp + 8]
call fcn.10001409
mov dword [ebp - 0x28], eax
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x30]
call fcn.10001000
and dword [ebp - 4], 0
push dword [ebp - 0x20]
push 0x5e
mov ecx, dword [ebp + 8]
call fcn.10001449
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jle 0x10006d1a
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.10001865
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.10001549
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.100010fa
lea ecx, [ebp - 0x30]
call fcn.10001409
push eax
lea ecx, [ebp - 0x30]
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + eax + 0x24]
push eax
call fcn.10007200
add esp, 0xc
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jge 0x10006d0f
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
call fcn.100013b8
movsx eax, al
cmp eax, 0x5e
jne 0x10006d0f
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x24]
and byte [eax + 0x24], 0
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10006ce1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
jmp 0x10006c68
cmp dword [ebp - 0x28], 0
je 0x10006d4a
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x40]
add eax, 0x24
push eax
push 7
push 0
mov ecx, dword [ebp - 0x40]
add ecx, 0xc
call fcn.10001bf8
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10006d5f
and dword [ebp - 0x3c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100010fa
mov eax, dword [ebp - 0x3c]
jmp 0x10006d7a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100010fa
mov eax, dword [ebp - 0x40]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc