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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea eax, [ebp - 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push 0x415c74
push 0x80000002
mov dword [ebx], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405bae
push edi
push edi
push edi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 0x118]
mov esi, 0x104
push eax
mov dword [ebp - 8], edi
mov dword [ebp + 0xc], esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x405ba5
xor ecx, ecx
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x10], esi
jbe 0x405a94
cmp byte [ebp + eax - 0x118], 0x2e
jne 0x405a89
inc ecx
cmp ecx, 1
jg 0x405ab3
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x405a79
cmp ecx, 1
jg 0x405ab3
push 3
lea eax, [ebp - 0x118]
push 0x415ca0
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x405b88
lea eax, [ebp - 0x118]
push eax
push str.SOFTWAREJavaSoftJava_Runtime_Environment
lea eax, [ebp - 0x21c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0x20019
lea eax, [ebp - 0x21c]
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405b88
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, dword [ebp + 8]
pop ecx
mov ecx, dword [ebx]
lea ecx, [ecx + ecx*2]
mov dword [esi + ecx*8 + 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
lea eax, [eax + eax*2]
push dword [esi + eax*8 + 0xc]
lea eax, [ebp - 0x14]
push eax
push edi
push str.JavaHome
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [ebx]
lea eax, [eax + eax*2]
jne 0x405b6f
mov edi, dword [esi + eax*8 + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov esi, str._binjavaw.exe
repne scasb al, byte es:[edi]
dec edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 8]
mov dword [eax + ecx*8 + 0x14], 0x415cf4
mov ecx, dword [ebx]
lea ecx, [ecx + ecx*2]
mov dword [eax + ecx*8 + 0x10], 0x415cf8
inc dword [ebx]
xor edi, edi
jmp 0x405b7a
push dword [esi + eax*8 + 0xc]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x104
inc dword [ebp - 8]
push edi
push edi
push edi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp + 0xc], esi
push dword [ebp - 8]
jmp 0x405a5e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx], edi
mov esi, dword [ebp + 8]
jbe 0x405bda
lea eax, [esi + 0xc]
mov dword [ebp + 8], eax
call fcn.004055ec
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00405700
pop ecx
test eax, eax
pop ecx
je 0x405bda
add dword [ebp + 8], 0x18
inc edi
cmp edi, dword [ebx]
jb 0x405bbb
cmp edi, dword [ebx]
jne 0x405c08
call fcn.004055ec
mov ecx, dword [ebx]
lea ecx, [ecx + ecx*2]
mov dword [esi + ecx*8 + 0xc], eax
mov eax, dword [ebx]
lea eax, [eax + eax*2]
mov dword [esi + eax*8 + 0x14], 0x415d00
mov eax, dword [ebx]
lea eax, [eax + eax*2]
mov dword [esi + eax*8 + 0x10], str.Windows
inc dword [ebx]
pop edi
pop esi
pop ebx
leave
ret