Function at 0x485000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac140
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 0x485138
lea ecx, [ebp - 0x18]
call fcn.00485370
mov ecx, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x485138
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 0x4850c8
lea ecx, [ebp - 0x20]
call fcn.00485370
mov ecx, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x20], ecx
je 0x4850e2
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x485219
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], ebx
jmp 0x485219
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 0x485107
mov byte [esi], bl
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x48511c
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov dword [ebp - 0x18], ebx
jmp 0x485122
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x485307
push eax
call esi
mov dword [ebp - 0x20], ebx
jmp 0x485307
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 0x485219
lea ecx, [ebp - 0x14]
call fcn.00485370
mov ecx, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x485219
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 0x4851bf
lea ecx, [ebp - 0x1c]
call fcn.00485370
mov ecx, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
je 0x4851d2
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x485219
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
jmp 0x485219
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 0x485268
mov eax, dword [ebp - 0x14]
mov byte [esi], bl
cmp eax, ebx
je 0x485208
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x485219
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.00485370
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00485370
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00485370
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00485370
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 0x4852d5
cmp byte [ecx + esi - 1], 0x5c
je 0x4852aa
mov edi, 0x9666d8
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 0x4852ea
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov dword [ebp - 0x14], ebx
jmp 0x4852f0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x485307
push eax
call esi
mov dword [ebp - 0x1c], ebx
jmp 0x485307
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 2
call fcn.00485370
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00485370
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x48532f
push eax
call esi
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x485339
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