Function at 0x4109d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425135
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push eax
lea ecx, [ebp - 0x34]
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__]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
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 byte [ebp - 4], 1
push 1
push 2
lea ecx, [ebp - 0x10c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov byte [ebp - 4], 2
call dword [0x4341f8]
push 0
push 0x4284b0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], eax
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_first_of_unsigned_short_int_const___unsigned_int_const]
mov ecx, 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]
mov edx, dword [ecx]
push edx
push 0x4284b0
lea ecx, [ebp - 0x34]
mov edi, eax
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_last_of_unsigned_short_int_const___unsigned_int_const]
mov esi, eax
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [eax]
cmp edi, eax
je 0x410df0
cmp esi, eax
je 0x410df0
cmp edi, esi
je 0x410df0
mov ecx, dword [ebp - 0x20]
dec ecx
cmp esi, ecx
jae 0x410ab6
mov edx, 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]
mov eax, dword [edx]
push eax
lea ecx, [esi + 1]
push ecx
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x34]
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_]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x54]
call dword [0x426260]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
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_]
sub esi, edi
dec esi
push esi
inc edi
push edi
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x34]
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_]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x34]
call dword [0x426260]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
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 [ebp - 0x1c]
mov esi, 8
cmp eax, esi
mov eax, dword [ebp - 0x30]
jae 0x410af6
lea eax, [ebp - 0x30]
push eax
call fcn.0040f400
add esp, 4
test al, al
jne 0x410b23
push str.Vmount2.Vmount2Service
push str.VmountReadStringValue_refusing_unregistered_key
push 0x80004005
push 0x42658c
call fcn.00409570
mov esi, eax
jmp 0x410e51
cmp dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x30]
jae 0x410b2e
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
je 0x410bff
cmp dword [ebp - 0x1c], esi
jb 0x410b5f
mov edi, dword [ebp - 0x30]
test edi, edi
jne 0x410b62
xor eax, eax
jmp 0x410b88
lea edi, [ebp - 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00422260
mov edx, dword [ebp - 0x38]
mov eax, esp
push edx
push esi
push edi
push eax
call fcn.004014f0
mov esi, dword [sym.imp.MSVCP71.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___struct_std::char_traits_char___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
push ebx
push str._error
push eax
lea eax, [ebp - 0x10c]
push str.RegReadStringValue_cannot_open_key
push eax
call esi
add esp, 8
push eax
call esi
add esp, 8
push eax
call esi
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x10c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov byte [ebp - 4], 6
cmp dword [eax + 0x18], 0x10
jb 0x410bd9
mov eax, dword [eax + 4]
jmp 0x410bdc
add eax, 4
push str.Vmount2.Vmount2Service
push eax
push 0x80004005
push 0x42658c
call fcn.00409570
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
jmp 0x410e4b
mov ebx, 0x800
push ebx
lea ecx, [ebp - 0x64]
call fcn.0040c020
mov byte [ebp - 4], 7
cmp dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x18], ebx
jae 0x410c1f
lea eax, [ebp - 0x50]
mov edi, dword [ebp - 0x60]
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x14]
push edi
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x410c81
add ebx, ebx
push 0
push ebx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x18], ebx
call fcn.00410950
cmp dword [ebp - 0x3c], 8
mov eax, dword [ebp - 0x50]
jae 0x410c5e
lea eax, [ebp - 0x50]
mov edi, dword [ebp - 0x60]
lea ecx, [ebp - 0x18]
push ecx
push edi
lea edx, [ebp - 0x10]
push edx
push 0
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
je 0x410c42
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x410d78
cmp dword [ebp - 0x10], 1
je 0x410d2c
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x410ca8
xor eax, eax
jmp 0x410cce
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00422260
mov edx, dword [ebp - 0x38]
mov eax, esp
push edx
push esi
push edi
push eax
call fcn.004014f0
mov esi, dword [sym.imp.MSVCP71.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___struct_std::char_traits_char___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
push eax
mov eax, dword [ebp - 0x10]
push str._from
push eax
lea ecx, [ebp - 0x10c]
push str.RegReadStringValue_read_a_non_REG_SZ_value_type
push ecx
call esi
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push eax
call esi
add esp, 8
push eax
call esi
add esp, 8
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x10c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov byte [ebp - 4], 8
cmp dword [eax + 0x18], 0x10
jb 0x410db8
mov eax, dword [eax + 4]
jmp 0x410dbb
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.0040b810
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
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 dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
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_]
xor eax, eax
jmp 0x410e80
push esi
lea edx, [ebp - 0x10c]
push str.RegReadStringValue_failed_with_error
push edx
call dword [sym.imp.MSVCP71.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___struct_std::char_traits_char___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x10c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov byte [ebp - 4], 9
cmp dword [eax + 0x18], 0x10
jb 0x410db8
mov eax, dword [eax + 4]
jmp 0x410dbb
add eax, 4
push str.Vmount2.Vmount2Service
push eax
push 0x80004005
push 0x42658c
call fcn.00409570
mov esi, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x8c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.0040b810
jmp 0x410e51
lea ecx, [ebp - 0x10c]
push str.RegReadStringValue_given_a_malformed_szKeyName
push ecx
call dword [sym.imp.MSVCP71.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___struct_std::char_traits_char___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
add esp, 8
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x10c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 0x10
jb 0x410e27
mov eax, dword [eax + 4]
jmp 0x410e2a
add eax, 4
push str.Vmount2.Vmount2Service
push eax
push 0x80004005
push 0x42658c
call fcn.00409570
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
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 dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
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, esi
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc