Function at 0x1000a110
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1000fda0
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x1001601c]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001601c]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
sub esp, 0x1c
xor ebx, ebx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Usage
mov dword [esp + 0x54], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], ebx
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 ecx, [esp + 0x34]
push ecx
call fcn.10009770
add esp, 0x20
cmp al, bl
je 0x1000a1b3
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.Demographic
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
push esi
je 0x1000a1bd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1000a3be
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x28]
mov edx, dword [0x1001659c]
mov eax, 0x104
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x1001659c
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x17c], bl
mov byte [esp + 0x74], bl
call eax
mov edx, dword [0x1001659c]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x1001659c
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x190]
push edx
push ebx
push esi
mov dword [esp + 0x2b4], ebx
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
xor ecx, ecx
cmp eax, 0x103
setne cl
mov eax, ecx
cmp eax, ebx
je 0x1000a36e
jmp 0x1000a260
lea eax, [esp + 0x17c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1000a270
sub eax, edx
lea edx, [esp + 0x17c]
mov edi, eax
push edx
lea eax, [esp + 0x30]
call fcn.1000d5e0
lea eax, [esp + 0x74]
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1000a295
sub eax, edi
lea ecx, [esp + 0x74]
mov edi, eax
push ecx
lea eax, [esp + 0x34]
call fcn.1000d5e0
mov edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0x40]
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__]
mov byte [esp + 0x294], 1
mov edi, dword [esp + 0x30]
push edi
lea ecx, [esp + 0x5c]
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__]
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x298], 2
call fcn.1000c820
lea ecx, [esp + 0x58]
mov byte [esp + 0x294], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x294], bl
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 eax, 0x104
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x190]
push edx
add ebp, 1
push ebp
push eax
mov byte [esp + 0x19c], bl
mov byte [esp + 0x94], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
xor ecx, ecx
cmp eax, 0x103
setne cl
mov eax, ecx
cmp eax, ebx
jne 0x1000a260
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0xfffffff0
mov dword [esp + 0x294], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1000a39c
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a3bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.1000e1de
add esp, 0x284
ret