Function at 0x410246
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x414c83
call fcn.00412de0
sub esp, 0x88
mov eax, dword [0x4205ac]
mov dword [ebp - 0x10], eax
push ebx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [ebp + 0x24], 8
mov dword [ebp - 4], ebx
jae 0x410270
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x4c]
push ecx
push 0x20019
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4103f7
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x54]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
push ebx
push dword [0x42057c]
push dword [ebp - 0x4c]
call esi
test eax, eax
jne 0x4103ed
cmp dword [ebp - 0x50], 1
jne 0x4103ed
mov eax, dword [ebp - 0x54]
shr eax, 1
lea eax, [eax + eax + 2]
push edi
push eax
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov edi, eax
lea eax, [ebp - 0x54]
push eax
push edi
lea eax, [ebp - 0x50]
push eax
push ebx
push dword [0x42057c]
push dword [ebp - 0x4c]
call esi
push edi
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
push edi
mov byte [ebp - 4], 1
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [ebp - 0x58], ebx
mov edi, dword [ebp - 0x58]
push edi
push 0x41acfc
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::find_unsigned_short_int_const___unsigned_int_const]
lea ecx, [ebp - 0x2c]
mov esi, eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
cmp esi, dword [eax]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
jne 0x410353
push dword [eax]
lea eax, [ebp - 0x78]
push edi
push eax
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
jmp 0x41038a
mov eax, esi
sub eax, edi
push eax
push edi
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea eax, [esi + 1]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x18], ebx
je 0x4103c5
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41039b
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
push ebx
push eax
call fcn.0041019b
mov ebx, eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0040f3ed
push dword [eax]
mov edi, dword [ebp + 8]
call fcn.004101b2
push ebx
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 0x1c
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
cmp esi, dword [eax]
jne 0x4102fc
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
pop edi
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00412cbe
leave
ret