Function at 0x6d5a4cf0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x3018
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x3014], eax
mov eax, dword [esp + 0x301c]
push ebx
push ebp
push esi
push edi
xor ecx, ecx
push 0xffe
push ecx
lea edx, [esp + 0x2e]
push edx
mov dword [esp + 0x24], eax
xor ebp, ebp
mov word [esp + 0x30], cx
call sub.MSVCR100.dll_memset
xor eax, eax
push 0xffe
push eax
lea ecx, [esp + 0x103a]
push ecx
mov word [esp + 0x103c], ax
call sub.MSVCR100.dll_memset
add esp, 0x18
mov dword [esp + 0x10], 0x800
cmp dword [esp + 0x3034], ebp
je 0x6d5a4e6b
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebp
push str.SOFTWAREJavaSoftJava_Plug_in
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x6d5a4fc6
mov edx, dword [esp + 0x14]
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x6d5a4fc6
mov ebx, dword [esp + 0x3030]
mov edi, dword [sym.imp.MSVCR100.dll_swprintf_s]
lea esp, [esp]
lea eax, [esp + 0x24]
push eax
push str.SOFTWAREJavaSoftJava_Plug_in
push str._s_s
lea ecx, [esp + 0x1030]
push 0x800
push ecx
call edi
add esp, 0x14
lea edx, [esp + 0x1c]
push edx
push 0x20019
push 0
lea eax, [esp + 0x1030]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x6d5a4e37
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push str.JavaHome
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6d5a4e37
mov edx, dword [esp + 0x18]
push ebx
push edx
call fcn.6d5a4c90
add esp, 8
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
inc ebp
push ebp
push edx
mov dword [esp + 0x30], 0x800
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x6d5a4dc0
jmp 0x6d5a4fc6
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x6d5a4fc6
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x6d5a4fc6
mov ebx, dword [sym.imp.MSVCR100.dll_swprintf_s]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
lea ecx, [esp + 0x24]
push ecx
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push str._s_s
lea edx, [esp + 0x1030]
push 0x800
push edx
call ebx
add esp, 0x14
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x1030]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x6d5a4f97
xor edx, edx
push 0xffe
push edx
lea eax, [esp + 0x202e]
push eax
mov word [esp + 0x2030], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x2028]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push str.RuntimeLib
push ecx
mov dword [esp + 0x28], 0x800
call esi
test eax, eax
jne 0x6d5a4f97
cmp dword [esp + 0x10], eax
jbe 0x6d5a4f97
mov edx, dword [esp + 0x3030]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov dword [esp + 0x18], edx
lea edx, [esp + 0x28]
push edx
push 0
push str.JavaHome
push eax
call esi
test eax, eax
jne 0x6d5a4f97
mov ecx, dword [esp + 0x3030]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.6d5a4c90
add esp, 8
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
inc ebp
push ebp
push edx
mov dword [esp + 0x30], 0x800
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x6d5a4ec0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
lea edx, [eax + 2]
pop ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x6d5a4fd1
sub eax, edx
sar eax, 1
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [esp + 0x3014]
sbb eax, eax
xor ecx, esp
neg eax
call fcn.6d5ca6ac
add esp, 0x3018
ret