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

Disassembly:
mov eax, 0x1000d3be
call fcn.10007e4c
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.1000686e
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x10006a97
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
je 0x10006ac4
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 0x10006ac4
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
je 0x10006d2b
cmp dword [ebp + 0xc], 0
je 0x10006bbf
cmp dword [ebp + 0x10], 2
jge 0x10006b23
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 0x10006b0f
and dword [ebp - 0x14], 0
jmp 0x10006b1e
mov eax, dword [ebp - 0x40]
add eax, 0x24
push eax
mov ecx, dword [ebp + 8]
call fcn.10001581
jmp 0x10006bba
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 0x10006b5d
and dword [ebp - 0x14], 0
jmp 0x10006bba
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 8]
call fcn.10001396
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jae 0x10006bba
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 0x10006bb8
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x1c]
movsx eax, byte [eax + 0x24]
test eax, eax
jne 0x10006bb8
push 0x5e
mov ecx, dword [ebp + 8]
call fcn.10001811
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x10006b8f
jmp 0x10006b69
jmp 0x10006d2b
cmp dword [ebp + 0x10], 2
jge 0x10006c0d
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 0x10006c08
xor eax, eax
jmp 0x10006d3a
jmp 0x10006d2b
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 0x10006cda
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.100071c0
add esp, 0xc
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jge 0x10006ccf
push dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
call fcn.100013b8
movsx eax, al
cmp eax, 0x5e
jne 0x10006ccf
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 0x10006ca1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
jmp 0x10006c28
cmp dword [ebp - 0x28], 0
je 0x10006d0a
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 0x10006d1f
and dword [ebp - 0x3c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.100010fa
mov eax, dword [ebp - 0x3c]
jmp 0x10006d3a
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