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

Disassembly:
push 0xffffffffffffffff
push 0x1000fdff
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x1001601c]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001601c]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov eax, dword [0x1001659c]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x1001659c
mov dword [esp + 0x1c], esi
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
sub esp, 0x1c
mov dword [esp + 0x124], ebx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Usage
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], 0x80
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x34]
push eax
call fcn.10009770
add esp, 0x20
cmp al, bl
jne 0x10009a33
push 0x100113cb
xor edi, edi
lea eax, [esp + 0x18]
call fcn.1000d5e0
push ebx
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
jmp 0x10009c0d
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x80]
push edx
push ebx
push ebx
push str.GUID
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x10009afd
lea eax, [esp + 0x7c]
push eax
push 0x100116b4
lea edi, [esp + 0x1c]
call fcn.1000d760
add esp, 8
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x14]
cmp dword [esi - 4], 1
jle 0x10009a91
mov ecx, dword [esi - 0xc]
push ecx
mov edx, edi
push edx
call fcn.1000cb30
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x64]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp esi, ebx
mov byte [esp + 0x108], 1
jne 0x10009aac
xor eax, eax
jmp 0x10009abe
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10009ab1
sub eax, edx
js 0x10009af3
cmp eax, dword [esi - 8]
jg 0x10009af3
mov dword [esi - 0xc], eax
mov byte [eax + esi], bl
lea esi, [esp + 0x14]
call fcn.1000c740
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [esp + 0x108], bl
lea ecx, [esp + 0x60]
jmp 0x10009c07
push 0x80070057
call fcn.10002bb0
lea ecx, [esp + 0x28]
call fcn.10009500
mov byte [esp + 0x108], 2
cmp dword [eax + 0x18], 0x10
jb 0x10009b19
mov edx, dword [eax + 4]
jmp 0x10009b1c
lea edx, [eax + 4]
lea ebx, [esp + 0x14]
call fcn.1000c330
lea ecx, [esp + 0x28]
mov byte [esp + 0x108], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [esp + 0x14]
cmp dword [esi - 4], 1
mov edi, dword [esi - 0xc]
jle 0x10009b53
mov ecx, edi
push ecx
mov edx, ebx
push edx
call fcn.1000cb30
mov esi, dword [esp + 0x14]
add edi, 1
push edi
push esi
push 1
push 0
push str.GUID
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10009b7e
mov edx, 0x100113cb
lea ebx, [esp + 0x14]
call fcn.1000c330
mov esi, dword [esp + 0x14]
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi - 4], 1
jle 0x10009b9d
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.1000cb30
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
test esi, esi
mov byte [esp + 0x108], 3
jne 0x10009bb8
xor eax, eax
jmp 0x10009bd1
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10009bc0
sub eax, edx
js 0x10009af3
cmp eax, dword [esi - 8]
jg 0x10009af3
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
lea esi, [esp + 0x14]
call fcn.1000c740
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [esp + 0x108], 0
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esp + 0x108], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009c38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.1000e1de
add esp, 0xf8
ret