Function at 0x4d1340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f860
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 0x4d1478
lea ecx, [ebp - 0x18]
call fcn.004d16b0
mov ecx, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x4d1478
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 0x4d1408
lea ecx, [ebp - 0x20]
call fcn.004d16b0
mov ecx, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x20], ecx
je 0x4d1422
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4d1559
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], ebx
jmp 0x4d1559
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 0x4d1447
mov byte [esi], bl
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4d145c
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov dword [ebp - 0x18], ebx
jmp 0x4d1462
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x4d1647
push eax
call esi
mov dword [ebp - 0x20], ebx
jmp 0x4d1647
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 0x4d1559
lea ecx, [ebp - 0x14]
call fcn.004d16b0
mov ecx, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x4d1559
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 0x4d14ff
lea ecx, [ebp - 0x1c]
call fcn.004d16b0
mov ecx, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
je 0x4d1512
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4d1559
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
jmp 0x4d1559
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 0x4d15a8
mov eax, dword [ebp - 0x14]
mov byte [esi], bl
cmp eax, ebx
je 0x4d1548
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4d1559
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.004d16b0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004d16b0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004d16b0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004d16b0
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 0x4d1615
cmp byte [ecx + esi - 1], 0x5c
je 0x4d15ea
mov edi, 0x7aae48
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 0x4d162a
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov dword [ebp - 0x14], ebx
jmp 0x4d1630
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4d1647
push eax
call esi
mov dword [ebp - 0x1c], ebx
jmp 0x4d1647
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 2
call fcn.004d16b0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004d16b0
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x4d166f
push eax
call esi
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4d1679
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