Function at 0x100061ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1002626e
call fcn.100255f0
sub esp, 0x240
push ebx
push esi
lea eax, [ebp - 0x18]
push edi
push eax
push 1
pop esi
xor ebx, ebx
push esi
push ebx
push str.SOFTWAREALSTOMDCSOI
push reloc.OLEAUT32.dll_SysReAllocString
mov word [ebp - 0x24c], bx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10006321
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x104
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.SQL_SAAccount
mov dword [ebp - 0x24], esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [0x10042704]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea eax, [ebp - 0x24c]
push eax
call edi
push dword [ebp - 0x18]
mov dword [0x10042704], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x10042704]
lea ecx, [ebp - 0x1c]
call fcn.1000636f
mov ecx, dword [eax]
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x1000625d
call fcn.10006437
mov dword [ebp - 0x10], eax
jmp 0x10006260
mov dword [ebp - 0x10], ebx
mov al, byte [ebp - 0x11]
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push dword [ebp - 0x10]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea ecx, [ebp - 0x34]
push dword [ebp - 0x10]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x10006299
call fcn.1000640a
mov dword [ebp - 0x1c], ebx
mov al, byte [ebp - 0x34]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x10], esp
push ebx
mov dword [ebp - 0x10], ecx
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [ebp - 0x10]
push dword [eax]
lea eax, [ebp - 0x34]
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea eax, [ebp - 0x44]
push eax
call fcn.10006481
add esp, 0x14
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x100062e1
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0xffffffffffffffff
push eax
call fcn.10006330
pop ecx
mov dword [ebp - 0x10], eax
pop ecx
push ebx
call esi
push dword [0x10042704]
call esi
push dword [ebp - 0x10]
call edi
push 1
lea ecx, [ebp - 0x44]
mov dword [0x10042704], eax
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret