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

Disassembly:
mov eax, 0x1000d40e
call fcn.10007e9c
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.100068b2
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x10006adb
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
je 0x10006b08
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 0x10006b08
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
je 0x10006d6f
cmp dword [ebp + 0xc], 0
je 0x10006c03
cmp dword [ebp + 0x10], 2
jge 0x10006b67
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 0x10006b53
and dword [ebp - 0x14], 0
jmp 0x10006b62
mov eax, dword [ebp - 0x40]
add eax, 0x24
push eax
mov ecx, dword [ebp + 8]
call fcn.10001581
jmp 0x10006bfe
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 0x10006ba1
and dword [ebp - 0x14], 0
jmp 0x10006bfe
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 8]
call fcn.10001396
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jae 0x10006bfe
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 0x10006bfc
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x1c]
movsx eax, byte [eax + 0x24]
test eax, eax
jne 0x10006bfc
push 0x5e
mov ecx, dword [ebp + 8]
call fcn.10001811
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x10006bd3
jmp 0x10006bad
jmp 0x10006d6f
cmp dword [ebp + 0x10], 2
jge 0x10006c51
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 0x10006c4c
xor eax, eax
jmp 0x10006d7e
jmp 0x10006d6f
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 0x10006d1e
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.10007210
add esp, 0xc
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jge 0x10006d13
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
call fcn.100013b8
movsx eax, al
cmp eax, 0x5e
jne 0x10006d13
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 0x10006ce5
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
jmp 0x10006c6c
cmp dword [ebp - 0x28], 0
je 0x10006d4e
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 0x10006d63
and dword [ebp - 0x3c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100010fa
mov eax, dword [ebp - 0x3c]
jmp 0x10006d7e
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