Function at 0x6d5b84f0
Capabilities:
Get file attributes
Get session user name
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x7078
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x7074], eax
push ebx
xor ebx, ebx
push ebp
push esi
push edi
push str._Remove_Keys_for_current_active_user_other_than_one_were_loggin_in
mov dword [esp + 0x60], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], 0x800
mov dword [esp + 0x14], ebx
call fcn.6d5951a0
add esp, 4
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x4098]
push ecx
push ebx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x6d5b89a8
lea esp, [esp]
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x6d5b8ae0
lea edx, [esp + 0x4084]
push edx
mov dword [edi + 4], ebx
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
cmp eax, ebx
je 0x6d5b8ae0
push 0xc
mov dword [esp + 0x18], edi
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x6d5b8ae0
lea ebp, [esi + 8]
push str.SoftwareClasses
mov dword [esi + 4], ebx
mov dword [ebp], 1
call fcn.6d5ca1c9
push 0xc
mov dword [esi], eax
mov dword [esp + 0x20], esi
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x6d5b8ae0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, eax
call fcn.6d593e50
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x6d5b8ae0
lea eax, [edi + 8]
push eax
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d5b863e
mov eax, dword [edi]
cmp eax, ebx
je 0x6d5b8625
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x6d5b8635
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebp
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d5b866f
mov eax, dword [esi]
cmp eax, ebx
je 0x6d5b8656
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x6d5b8666
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x4c]
push ecx
push 0x20019
push ebx
push eax
push SysStringLen
mov dword [esp + 0x60], ebx
call esi
cmp eax, ebx
jne 0x6d5b87fb
mov ecx, dword [esp + 0x5c]
xor eax, eax
cmp ecx, ebx
je 0x6d5b86ab
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x5c], ecx
cmp eax, ebx
jne 0x6d5b87fb
lea edx, [esp + 0x48]
push edx
push 0x2001f
push ebx
push str.CLSID
push ecx
mov dword [esp + 0x5c], ebx
call esi
cmp eax, ebx
jne 0x6d5b87fb
mov ecx, dword [esp + 0x50]
xor eax, eax
cmp ecx, ebx
je 0x6d5b86eb
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x50], ebp
cmp eax, ebx
jne 0x6d5b87fb
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x6d5b8ae0
push str.___Remove_from_user:
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.6d5ca1c9
push 0xc
mov dword [esi], eax
mov dword [esp + 0x18], esi
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x6d5b8ae0
lea eax, [esp + 0x4084]
lea edi, [esi + 8]
push eax
mov dword [esi + 4], ebx
mov dword [edi], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
cmp eax, ebx
je 0x6d5b8ae0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
call fcn.6d594760
push edi
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d5b87a4
mov eax, dword [esi]
cmp eax, ebx
je 0x6d5b878b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x6d5b879b
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x6d5b87b0
mov eax, dword [esi]
jmp 0x6d5b87b2
xor eax, eax
push eax
call fcn.6d5951a0
sub esp, 8
mov eax, esp
mov dword [esp + 0x5c], ebx
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
call fcn.6d5a5b70
mov eax, dword [esp + 0x68]
add esp, 0xc
cmp eax, ebx
je 0x6d5b87e4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x5c], ebx
cmp esi, ebx
je 0x6d5b893b
lea edx, [esi + 8]
push edx
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
jmp 0x6d5b8911
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x6d5b8ae0
lea ebp, [edi + 8]
push str.___Failed_to_open_CLSID_keys_in_user:
mov dword [edi + 4], ebx
mov dword [ebp], 1
call fcn.6d5ca1c9
push 0xc
mov dword [edi], eax
mov dword [esp + 0x18], edi
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x6d5b8ae0
lea eax, [esp + 0x4084]
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
cmp eax, ebx
je 0x6d5b8ae0
push 0xc
mov dword [esp + 0x1c], esi
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x6d5b8ae0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, eax
call fcn.6d593e50
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x6d5b8ae0
push ebp
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d5b88c6
mov eax, dword [edi]
cmp eax, ebx
je 0x6d5b88ad
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x6d5b88bd
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [sym.imp.kernel32.dll_InterlockedDecrement]
lea eax, [esi + 8]
push eax
call edi
test eax, eax
jne 0x6d5b88fc
mov eax, dword [esi]
cmp eax, ebx
je 0x6d5b88e3
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x6d5b88f3
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
push eax
call fcn.6d5951a0
add esp, 4
lea ecx, [esi + 8]
push ecx
call edi
test eax, eax
jne 0x6d5b893b
mov eax, dword [esi]
cmp eax, ebx
je 0x6d5b8922
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x6d5b8932
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x1c]
inc dword [esp + 0x10]
lea edx, [esi + 8]
push edx
mov dword [esp + 0x44], 0x800
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d5b897f
mov eax, dword [esi]
cmp eax, ebx
je 0x6d5b8966
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x6d5b8976
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x4098]
push ecx
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x6d5b8570
push str._Remove_Static_Version_Redirect_Keys_for_other_users
call fcn.6d5951a0
push 0xffe
lea ecx, [esp + 0x508e]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov word [esp + 0x5094], ax
call sub.MSVCR100.dll_memset
push 0xffe
lea eax, [esp + 0x109a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x10a0], dx
call sub.MSVCR100.dll_memset
push 0xffe
lea edx, [esp + 0x60a6]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x60ac], cx
call sub.MSVCR100.dll_memset
push 0xffe
lea ecx, [esp + 0x30b2]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x30b8], ax
call sub.MSVCR100.dll_memset
push 0xffe
lea eax, [esp + 0x20be]
xor edx, edx
push ebx
push eax
mov word [esp + 0x20c4], dx
call sub.MSVCR100.dll_memset
add esp, 0x40
push 0xffe
lea edx, [esp + 0x8a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x90], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], 0xa
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ecx
mov ebp, esp
push 0xc
mov edi, eax
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x6d5b8aea
push str.___Open_ProfilePath_key
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
cmp eax, ebx
jne 0x6d5b8aec
push 0x8007000e
call fcn.6d5ca1c9
xor esi, esi
mov dword [ebp], esi
cmp esi, ebx
jne 0x6d5b8afd
push 0x8007000e
call fcn.6d5ca1c9
push edi
call fcn.6d5acb80
add esp, 8
cmp edi, ebx
jne 0x6d5b8eaf
push 0x1000
lea ecx, [esp + 0x6088]
push ebx
mov ebp, 0x800
push ecx
mov dword [esp + 0x2c], ebp
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x6088]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x1000
lea ecx, [esp + 0x5088]
push ebx
push ecx
call sub.MSVCR100.dll_memset
push 0x1000
lea edx, [esp + 0x1094]
push ebx
push edx
call sub.MSVCR100.dll_memset
push 0x1000
lea eax, [esp + 0x30a0]
push ebx
push eax
call sub.MSVCR100.dll_memset
push 0x1000
lea ecx, [esp + 0x20ac]
push ebx
push ecx
call sub.MSVCR100.dll_memset
push 0x1000
lea edx, [esp + 0xb8]
push ebx
push edx
call sub.MSVCR100.dll_memset
mov edx, dword [esp + 0x78]
add esp, 0x3c
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3098]
push ecx
push ebx
push edx
mov dword [esp + 0x40], ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x6d5b8ea4
cmp esi, ebx
jne 0x6d5b8e8e
lea eax, [esp + 0x3084]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
lea ecx, [esp + 0x508c]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [esp + 0x44]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x5090]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x6d5b8da3
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x2088]
push edx
lea eax, [esp + 0x88]
push eax
push ebx
push str.ProfileImagePath
push ecx
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x6d5b8d47
push ebp
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x208c]
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
lea ecx, [esp + 0x6084]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.6d5a51f0
add esp, 8
test eax, eax
je 0x6d5b8d96
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
test al, 0x10
je 0x6d5b8cb8
push str.Local_SettingsApplication_DataMicrosoftWindowsUsrClass.dat
lea ecx, [esp + 0x88]
push ebp
push ecx
call dword [sym.imp.MSVCR100.dll_wcscat_s]
add esp, 0xc
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x6d5b8ae0
lea edx, [esp + 0x84]
lea edi, [esi + 8]
push edx
mov dword [esi + 4], ebx
mov dword [edi], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
cmp eax, ebx
je 0x6d5b8ae0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x1c], esi
call fcn.6d5b8390
push edi
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d5b8d96
mov eax, dword [esi]
cmp eax, ebx
je 0x6d5b8d1e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x6d5b8d2e
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x48]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x6d5b8df2
push ecx
mov ebp, esp
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x6d5b8d7b
push str.___Query_Value_ProfileImagePath
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
cmp eax, ebx
je 0x6d5b8ae0
jmp 0x6d5b8d7d
xor esi, esi
mov dword [ebp], esi
cmp esi, ebx
je 0x6d5b8ae0
push edi
call fcn.6d5acb80
add esp, 8
mov ebp, 0x800
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x6d5b8df2
push ecx
mov ebp, esp
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x6d5b8dd7
push str.___Open_Profile_Key
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
cmp eax, ebx
je 0x6d5b8ae0
jmp 0x6d5b8dd9
xor esi, esi
mov dword [ebp], esi
cmp esi, ebx
je 0x6d5b8ae0
push edi
call fcn.6d5acb80
add esp, 8
mov ebp, 0x800
mov esi, dword [esp + 0x10]
push 0x1000
lea edx, [esp + 0x5088]
push ebx
inc esi
push edx
mov dword [esp + 0x1c], esi
call sub.MSVCR100.dll_memset
push 0x1000
lea eax, [esp + 0x1094]
push ebx
push eax
call sub.MSVCR100.dll_memset
push 0x1000
lea ecx, [esp + 0x30a0]
push ebx
push ecx
call sub.MSVCR100.dll_memset
push 0x1000
lea edx, [esp + 0x20ac]
push ebx
push edx
call sub.MSVCR100.dll_memset
push 0x1000
lea eax, [esp + 0xb8]
push ebx
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [esp + 0x78]
add esp, 0x3c
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x3098]
push edx
push esi
push eax
mov dword [esp + 0x40], ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
jne 0x6d5b8bd1
jmp 0x6d5b8ea4
push ecx
mov ecx, esp
push str.Enumerate_Profile_Keys
call fcn.6d592e00
push esi
call fcn.6d5acb80
add esp, 8
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x68]
mov ebp, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebx
cmp eax, ebx
jbe 0x6d5b9057
lea ecx, [ecx]
push 1
push str.SeBackupPrivilege
call fcn.6d5b4000
add esp, 8
test eax, eax
je 0x6d5b9037
push 1
push str.SeRestorePrivilege
call fcn.6d5b4000
add esp, 8
test eax, eax
je 0x6d5b9037
push 0x1000
lea edx, [esp + 0x88]
push ebx
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp esi, ebx
je 0x6d5b917e
mov eax, dword [esi + 8]
mov esi, dword [esi]
cmp eax, ebx
je 0x6d5b8f29
mov eax, dword [eax]
jmp 0x6d5b8f2b
xor eax, eax
push 0x800
push eax
lea eax, [esp + 0x8c]
push 0x800
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
push edi
lea ecx, [esp + 0x1098]
push str.User_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x1088]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x6d5b901c
push 0x20019
lea ecx, [esp + 0x1088]
push ecx
push SysStringLen
lea ecx, [esp + 0x30]
call fcn.6d593190
mov ebp, dword [esp + 0x24]
test eax, eax
jne 0x6d5b9008
push 0x2001f
push str.CLSID
push ebp
lea ecx, [esp + 0x3c]
call fcn.6d593190
test eax, eax
jne 0x6d5b8ff3
push str.remove_key_from
call fcn.6d5951a0
lea edx, [esp + 0x88]
push edx
call fcn.6d5951a0
push ecx
mov ecx, dword [esp + 0x3c]
mov eax, esp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
call fcn.6d5a5b70
add esp, 0xc
mov dword [esp + 0x34], ebx
cmp ebp, ebx
je 0x6d5b9004
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x1084]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
inc edi
push ebx
push str.SeBackupPrivilege
call fcn.6d5b4000
push ebx
push str.SeRestorePrivilege
call fcn.6d5b4000
add esp, 0x10
jmp 0x6d5b9044
push 0x6d5d6974
call fcn.6d5951a0
add esp, 4
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x18]
jb 0x6d5b8ed0
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push str.Software
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x6d5b9188
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push str.Classes
push eax
mov ebp, eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x6d5b91bf
mov ecx, dword [esp + 0x5c]
xor eax, eax
cmp ecx, ebx
je 0x6d5b90ba
push ecx
call esi
mov ecx, dword [esp + 0x14]
mov edi, ecx
cmp eax, ebx
jne 0x6d5b91c3
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
push str.CLSID
push ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x6d5b91eb
mov ecx, dword [esp + 0x50]
xor eax, eax
cmp ecx, ebx
je 0x6d5b90f8
push ecx
call esi
mov ecx, dword [esp + 0x10]
mov esi, ecx
cmp eax, ebx
jne 0x6d5b91ef
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
call fcn.6d5a5b70
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
cmp ebp, ebx
je 0x6d5b912a
push ebp
call esi
xor ebp, ebp
cmp edi, ebx
je 0x6d5b9133
push edi
call esi
xor edi, edi
lea ecx, [esp + 0x68]
call fcn.6d5a52e0
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x6d5b9147
push eax
call esi
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x6d5b9152
push eax
call esi
cmp edi, ebx
je 0x6d5b9159
push edi
call esi
cmp ebp, ebx
je 0x6d5b9160
push ebp
call esi
mov ecx, dword [esp + 0x7084]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.6d5ca6ac
add esp, 0x7078
ret
push 0x80004005
call fcn.6d595d00
lea ecx, [esp + 0x68]
call fcn.6d5a52e0
mov eax, dword [esp + 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x6d5b91a2
push eax
call esi
cmp ebp, ebx
je 0x6d5b91a9
push ebp
call esi
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x6d5b91b4
push eax
call esi
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x6d5b9160
push eax
jmp 0x6d5b915e
mov edi, dword [esp + 0x5c]
lea ecx, [esp + 0x68]
call fcn.6d5a52e0
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x6d5b91d7
push eax
call esi
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x6d5b91e2
push eax
call esi
mov eax, dword [esp + 0x50]
jmp 0x6d5b914b
mov esi, dword [esp + 0x50]
lea ecx, [esp + 0x68]
call fcn.6d5a52e0
cmp dword [esp + 0x30], ebx
je 0x6d5b9209
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x24], ebx
je 0x6d5b921a
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x6d5b9225
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x6d5b9230
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, ebx
je 0x6d5b9160
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x6d5b9160