Function at 0x41070f
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x415143
call fcn.004132b0
sub esp, 0x88
mov eax, dword [0x4205bc]
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 0x410739
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 0x4108c0
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 [0x42058c]
push dword [ebp - 0x4c]
call esi
test eax, eax
jne 0x4108b6
cmp dword [ebp - 0x50], 1
jne 0x4108b6
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 [0x42058c]
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 0x41acec
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 0x41081c
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 0x410853
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 0x41088e
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x410864
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
push ebx
push eax
call fcn.00410664
mov ebx, eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0040f89d
push dword [eax]
mov edi, dword [ebp + 8]
call fcn.0041067b
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 0x4107c5
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.00413187
leave
ret