Function at 0x6d5b1730
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x1024
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x1020], eax
push ebx
push esi
xor ebx, ebx
push 0x2001f
push str.SOFTWAREJavaSoftJava_Plug_in
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
xor esi, esi
call fcn.6d593190
test eax, eax
je 0x6d5b1785
lea esi, [ebx + 1]
push 0x2001f
push str.SOFTWAREJavaSoftJava_Web_Start
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x28]
call fcn.6d593190
test eax, eax
je 0x6d5b17dd
cmp esi, ebx
je 0x6d5b17dd
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x6d5b17b6
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x6d5b17c1
push eax
call esi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1020]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x1024
ret
push ebp
mov ebp, dword [esp + 0x14]
push edi
push 0x800
lea eax, [esp + 0x34]
push eax
push ebx
push ebp
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x6d5b1983
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push ebx
push ecx
inc edi
call fcn.6d5b0bc0
add esp, 8
test eax, eax
jne 0x6d5b1965
mov edi, dword [esp + 0x20]
cmp edi, ebx
je 0x6d5b1861
cmp dword [edi], ebx
je 0x6d5b1855
push str.Advapi32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x6d5b185a
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, ebx
je 0x6d5b185a
mov edx, dword [edi]
push ebx
push edx
push ebx
push ebx
lea ecx, [esp + 0x40]
push ecx
push ebp
call eax
jmp 0x6d5b18b1
cmp dword [edi + 4], ebx
jne 0x6d5b18a5
mov eax, 1
jmp 0x6d5b18b1
cmp byte [0x6d5e2db8], bl
jne 0x6d5b1890
push str.Advapi32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x6d5b1889
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x6d5e2db4], eax
mov byte [0x6d5e2db8], 1
mov eax, dword [0x6d5e2db4]
cmp eax, ebx
je 0x6d5b18a5
push ebx
push esi
lea ecx, [esp + 0x38]
push ecx
push ebp
call eax
jmp 0x6d5b18b1
lea edx, [esp + 0x30]
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
jne 0x6d5b1a27
cmp ebp, ebx
je 0x6d5b18c6
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov esi, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x10], ebx
cmp esi, ebx
je 0x6d5b1927
cmp dword [esi], ebx
je 0x6d5b191b
push str.Advapi32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
cmp eax, ebx
jne 0x6d5b18ee
mov eax, 1
jmp 0x6d5b1942
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, ebx
je 0x6d5b18e7
mov ecx, dword [esi]
push ebx
push ecx
lea edx, [esp + 0x18]
push edx
push 0x2001f
push ebx
push str.SOFTWAREJavaSoftJava_Plug_in
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x6d5b1942
cmp dword [esi + 4], ebx
je 0x6d5b18e7
lea eax, [esp + 0x10]
push eax
jmp 0x6d5b192c
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push ebx
push str.SOFTWAREJavaSoftJava_Plug_in
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x6d5b1ab0
xor eax, eax
cmp ebp, ebx
je 0x6d5b1957
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x10]
xor esi, esi
cmp eax, ebx
jne 0x6d5b1ab0
push 0x800
lea edx, [esp + 0x34]
push edx
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x6d5b1803
mov dword [esp + 0x18], ebp
cmp ebp, ebx
je 0x6d5b1992
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x24]
push 0x800
lea eax, [esp + 0x34]
push eax
push ebx
push esi
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x6d5b1b85
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ebx
push ecx
inc ebp
call fcn.6d5b0f60
add esp, 8
test eax, eax
jne 0x6d5b1b6b
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x28]
call fcn.6d5930e0
cmp eax, ebx
jne 0x6d5b1bbd
cmp esi, ebx
je 0x6d5b19f0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
cmp edi, ebx
je 0x6d5b1b27
cmp dword [edi], ebx
je 0x6d5b1b17
push str.Advapi32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
cmp eax, ebx
jne 0x6d5b1ae6
mov eax, 1
jmp 0x6d5b1b42
cmp eax, 5
mov dword [esp + 0x18], ebp
mov eax, str.access_denied
je 0x6d5b1a3a
mov eax, str.runtime_error
push eax
lea ecx, [esp + 0x14]
call fcn.6d596c20
push str._when_deleting_key
lea ecx, [esp + 0x18]
call fcn.6d592e00
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.6d594760
lea ecx, [esp + 0x14]
call fcn.6d592330
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.6d592e00
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.6d594760
lea ecx, [esp + 0x14]
call fcn.6d592330
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x6d5b1a9a
mov eax, dword [eax]
jmp 0x6d5b1a9c
xor eax, eax
push eax
call fcn.6d5951a0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.6d592330
jmp 0x6d5b1ac1
push str.Error_open_Java_Plug_in_key
mov dword [esp + 0x1c], ebp
call fcn.6d5951a0
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x6d5b1ad0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, ebx
je 0x6d5b1c69
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x6d5b1ba4
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, ebx
je 0x6d5b1a1d
mov ecx, dword [edi]
push ebx
push ecx
lea edx, [esp + 0x18]
push edx
push 0x2001f
push ebx
push str.SOFTWAREJavaSoftJava_Web_Start
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x6d5b1b42
cmp dword [edi + 4], ebx
je 0x6d5b1a1d
lea eax, [esp + 0x10]
push eax
jmp 0x6d5b1b2c
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push ebx
push str.SOFTWAREJavaSoftJava_Web_Start
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x6d5b1c42
xor eax, eax
cmp esi, ebx
je 0x6d5b1b57
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
cmp eax, ebx
jne 0x6d5b1c42
push 0x800
lea edx, [esp + 0x34]
push edx
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x6d5b19b6
cmp esi, ebx
je 0x6d5b1b90
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x6d5b1b9f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x1030]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x1024
ret
cmp eax, 5
mov eax, str.access_denied
je 0x6d5b1bcc
mov eax, str.runtime_error
push eax
lea ecx, [esp + 0x14]
call fcn.6d596c20
push str._when_deleting_key
lea ecx, [esp + 0x18]
call fcn.6d592e00
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.6d594760
lea ecx, [esp + 0x14]
call fcn.6d592330
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.6d592e00
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.6d594760
lea ecx, [esp + 0x14]
call fcn.6d592330
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x6d5b1c2c
mov eax, dword [eax]
jmp 0x6d5b1c2e
xor eax, eax
push eax
call fcn.6d5951a0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.6d592330
jmp 0x6d5b1c4f
push str.Error_open_Java_Web_Start_key
call fcn.6d5951a0
add esp, 4
cmp esi, ebx
je 0x6d5b1c5a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x6d5b1c69
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x6d5b1ba4