Function at 0x4796c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73cb2b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa54
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0xa4c]
mov byte [ebp - 0xa39], 0
push eax
push 1
push 0
push str.SOFTWAREJavaSoftJava_Runtime_Environment
xorps xmm0, xmm0
mov dword [ebp - 0xa4c], 0
push reloc.OLEAUT32.dll_SysReAllocString
movups xmmword [ebp - 0xa60], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47999f
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0070dcd0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xa44]
add esp, 0xc
mov dword [ebp - 0xa48], 1
mov dword [ebp - 0xa44], 0x104
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xa48]
push eax
push 0
push str.CurrentVersion
push dword [ebp - 0xa4c]
call esi
test eax, eax
jne 0x47998e
sub esp, 0x18
lea ecx, [ebp - 0x220]
mov edx, esp
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ecx + 2]
mov dword [ebp - 0xa40], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4797c0
sub ecx, dword [ebp - 0xa40]
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044bdc0
lea ecx, [ebp - 0xa60]
call fcn.00462480
add esp, 0x18
test al, al
je 0x47998e
cmp dword [ebp - 0xa60], 0
jle 0x47998e
push str.SOFTWAREJavaSoftJava_Runtime_Environment_
lea ecx, [ebp - 0xa38]
call fcn.0044c260
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479825
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa38]
call fcn.00460700
cmp dword [ebp - 0xa24], 8
lea ecx, [ebp - 0xa40]
push ecx
push 1
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xa40], 0
cmovae eax, dword [ebp - 0xa38]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x479983
push 0x800
push eax
lea eax, [ebp - 0xa20]
push eax
call fcn.0070dcd0
add esp, 0xc
mov dword [ebp - 0xa48], 1
lea eax, [ebp - 0xa44]
mov dword [ebp - 0xa44], 0x400
push eax
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0xa48]
push eax
push 0
push str.JavaHome
push dword [ebp - 0xa40]
call esi
test eax, eax
jne 0x479972
lea ecx, [ebp - 0xa20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4798e2
sub ecx, edx
sar ecx, 1
je 0x479972
push 0x800
lea eax, [ebp - 0xa20]
push 0
push eax
call fcn.0070dcd0
add esp, 0xc
mov dword [ebp - 0xa48], 1
lea eax, [ebp - 0xa44]
mov dword [ebp - 0xa44], 0x400
push eax
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0xa48]
push eax
push 0
push str.RuntimeLib
push dword [ebp - 0xa40]
call esi
test eax, eax
jne 0x479972
lea ecx, [ebp - 0xa20]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479950
sub ecx, edx
sar ecx, 1
je 0x479972
lea ecx, [ebp - 0xa20]
call fcn.00461b90
mov byte [ebp - 0xa39], al
mov ecx, dword [ebp - 0xa40]
test ecx, ecx
je 0x479983
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xa38]
call fcn.0044bf40
mov eax, dword [ebp - 0xa4c]
test eax, eax
je 0x47999f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0xa39]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret