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

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x428934]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push ebx
mov ebx, dword [ebp + 0x1b4]
push esi
push edi
mov edi, dword [ebp + 0x1b0]
lea eax, [ebp - 0x6c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x427b9c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x78], edi
mov dword [ebx], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407bf8
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push eax
mov dword [ebp - 0x70], esi
push esi
jmp 0x407bd7
push 3
lea eax, [ebp + 0xa0]
push 0x427bc8
push eax
mov dword [ebp - 0x7c], 0x104
call fcn.0040a3b1
add esp, 0xc
test eax, eax
js 0x407bc2
lea eax, [ebp + 0xa0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407ab6
sub eax, edx
cmp eax, 3
jbe 0x407bc2
lea eax, [ebp + 0xa0]
push eax
push str.SOFTWAREJavaSoftJava_Runtime_Environment
lea eax, [ebp - 0x64]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x74]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x64]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407bc2
push 0x104
call fcn.00409ff3
pop ecx
mov ecx, dword [ebx]
imul ecx, ecx, 0x18
mov dword [ecx + edi + 0xc], eax
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebx]
imul eax, eax, 0x18
push dword [eax + edi + 0xc]
lea eax, [ebp - 0x80]
push eax
push esi
push str.JavaHome
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407baa
mov eax, str._binjavaw.exe
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407b46
mov ecx, dword [ebx]
imul ecx, ecx, 0x18
mov edi, dword [ecx + edi + 0xc]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407b59
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0xa0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040b088
mov edx, dword [ebx]
imul edx, edx, 0x18
pop ecx
mov ecx, dword [ebp - 0x78]
mov dword [edx + ecx + 4], eax
mov eax, dword [ebx]
imul eax, eax, 0x18
mov dword [eax + ecx + 0x14], 0x427c1c
mov eax, dword [ebx]
imul eax, eax, 0x18
mov dword [eax + ecx + 0x10], 0x427c20
inc dword [ebx]
xor esi, esi
mov edi, ecx
jmp 0x407bb9
mov eax, dword [ebx]
imul eax, eax, 0x18
push dword [eax + edi + 0xc]
call fcn.00409e82
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x70]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
mov dword [ebp - 0x68], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x407a88
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x68], esi
cmp dword [ebx], esi
jbe 0x407c23
lea esi, [edi + 0xc]
call fcn.0040793b
mov ecx, dword [esi]
push eax
push ecx
call fcn.00417552
pop ecx
pop ecx
test eax, eax
je 0x407c23
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
add esi, 0x18
cmp eax, dword [ebx]
jb 0x407c02
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebx]
jne 0x407c54
call fcn.0040793b
mov ecx, dword [ebx]
imul ecx, ecx, 0x18
mov dword [ecx + edi + 0xc], eax
mov eax, dword [ebx]
imul eax, eax, 0x18
mov dword [eax + edi + 0x14], 0x427c28
mov eax, dword [ebx]
imul eax, eax, 0x18
mov dword [eax + edi + 0x10], str.Windows
inc dword [ebx]
mov ecx, dword [ebp + 0x1a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e73
add ebp, 0x1a8
leave
ret