Function at 0x100981a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101437a7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2054
call fcn.10132000
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x2050], eax
push ebx
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x2068]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x1ffe
mov esi, ecx
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x62]
push ebx
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 7
mov word [esp + 0x68], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x38]
push eax
mov eax, dword [esi + 4]
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
push edi
push eax
mov dword [esp + 0x50], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x1009824f
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x100984a9
cmp dword [esp + 0x34], 7
jne 0x10098248
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esp + 0x2070], ebx
xor edi, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x2070], 1
lea ecx, [ecx]
cmp edi, ebx
jne 0x1009828b
lea ecx, [esp + 0x5c]
push ecx
jmp 0x10098290
lea edx, [esp + edi*2 + 0x5c]
push edx
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esp + 0x54], ebx
je 0x100982be
lea eax, [esp + 0x40]
push eax
lea esi, [esp + 0x24]
call fcn.10003480
mov ecx, dword [esp + 0x54]
lea edi, [edi + ecx + 1]
cmp edi, 0xffe
jb 0x10098280
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov edi, edi
test esi, esi
je 0x1009830f
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x1009830f
mov eax, dword [esp + 0x18]
mov edx, dword [eax + esi + 0x14]
mov ecx, dword [esp + 0x1c]
add ebx, 1
lea edx, [ecx + edx*2 + 2]
add eax, 0x1c
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
jmp 0x100982d0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
add edx, 2
cmp eax, edx
mov dword [esp + 0x1c], edx
jae 0x10098353
lea ebx, [esp + 0x20]
mov dword [ecx], edx
mov byte [esp + 0x2070], 0
call fcn.100036e0
lea ecx, [esp + 0x40]
mov dword [esp + 0x2070], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x100984a9
mov ebx, dword [esp + 0x14]
push eax
push 0
push ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [esp + 0x18], ebx
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea ecx, [ecx]
test esi, esi
je 0x1009844e
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x1009844e
test esi, esi
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + esi + 0x14]
mov dword [esp + 0x3c], eax
je 0x100983c0
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x100983ce
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + esi + 0x18], 8
jb 0x100983db
mov esi, dword [ecx + esi + 4]
jmp 0x100983df
lea esi, [ecx + esi + 4]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
lea edx, [ecx + ecx + 2]
push edx
push esi
push eax
call sub.MSVCR80.dll_memcpy
mov esi, dword [esp + 0x30]
add esp, 0xc
test esi, esi
je 0x1009841d
mov edi, dword [esp + 0x28]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1009842b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + esi + 0x14]
mov edx, dword [esp + 0x18]
add ebx, 1
lea ecx, [edx + ecx*2 + 2]
add eax, 0x1c
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jmp 0x10098370
test esi, esi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov dword [eax], edx
mov byte [esp + 0x2070], 0
je 0x10098484
cmp esi, edi
je 0x1009847b
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x10098468
mov esi, dword [esp + 0x24]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x2070], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x2068]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2050]
xor ecx, esp
call fcn.10130e50
mov esp, ebp
pop ebp
ret 0xc