Function at 0x4ba5a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3fc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
push 0xf003f
push ebx
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esi], bl
mov dword [ebp - 0x28], ebx
call edi
cmp eax, ebx
jne 0x4ba6d8
lea ecx, [ebp - 0x18]
call fcn.004ba910
mov ecx, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x4ba6d8
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x78]
push edx
lea edx, [ebp - 0x28]
push eax
push edx
push ebx
push str.CurrentVersion
push ecx
mov dword [ebp - 0x24], 0x50
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push eax
push 0xf003f
lea ecx, [ebp - 0x78]
push ebx
push ecx
push edx
mov dword [ebp - 0x28], ebx
call edi
cmp eax, ebx
jne 0x4ba668
lea ecx, [ebp - 0x20]
call fcn.004ba910
mov ecx, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x20], ecx
je 0x4ba682
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4ba7b9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], ebx
jmp 0x4ba7b9
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
push edx
lea eax, [ebp + 8]
push esi
push eax
push ebx
push str.RuntimeLib
push ecx
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x4ba6a7
mov byte [esi], bl
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4ba6bc
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov dword [ebp - 0x18], ebx
jmp 0x4ba6c2
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x4ba8a7
push eax
call esi
mov dword [ebp - 0x20], ebx
jmp 0x4ba8a7
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
push ecx
push 0xf003f
push ebx
push str.SOFTWAREJavaSoftJava_Development_Kit
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp eax, ebx
jne 0x4ba7b9
lea ecx, [ebp - 0x14]
call fcn.004ba910
mov ecx, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x4ba7b9
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x78]
push edx
lea edx, [ebp - 0x28]
push eax
push edx
push ebx
push str.CurrentVersion
push ecx
mov dword [ebp - 0x24], 0x50
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
push 0xf003f
lea ecx, [ebp - 0x78]
push ebx
push ecx
push edx
mov dword [ebp - 0x28], ebx
call edi
cmp eax, ebx
jne 0x4ba75f
lea ecx, [ebp - 0x1c]
call fcn.004ba910
mov ecx, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
je 0x4ba772
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4ba7b9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
jmp 0x4ba7b9
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
push edx
lea eax, [ebp + 0xc]
push esi
push eax
push ebx
push str.JavaHome
push ecx
mov dword [ebp + 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x4ba808
mov eax, dword [ebp - 0x14]
mov byte [esi], bl
cmp eax, ebx
je 0x4ba7a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4ba7b9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004ba910
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004ba910
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004ba910
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004ba910
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, ebx
jle 0x4ba875
cmp byte [ecx + esi - 1], 0x5c
je 0x4ba84a
mov edi, 0x5d8444
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.jre_binclientjvm.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4ba88a
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov dword [ebp - 0x14], ebx
jmp 0x4ba890
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4ba8a7
push eax
call esi
mov dword [ebp - 0x1c], ebx
jmp 0x4ba8a7
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 2
call fcn.004ba910
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004ba910
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x4ba8cf
push eax
call esi
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4ba8d9
push eax
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret