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 esi, esi
push eax
push 0x20019
push esi
push 0x415c78
push reloc.WSOCK32.dll_bind
mov dword [ebx], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405baf
push esi
push esi
push esi
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x118]
mov edi, 0x104
push eax
mov dword [ebp - 8], esi
mov dword [ebp + 0xc], edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x405ba6
xor ecx, ecx
cmp dword [ebp + 0xc], esi
mov dword [ebp - 0x10], edi
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 0x415ca4
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x405b89
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 esi
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405b89
push edi
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 0
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 0x405b73
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]
mov edi, 0x104
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 8]
mov dword [eax + ecx*8 + 0x14], 0x415cf8
mov ecx, dword [ebx]
lea ecx, [ecx + ecx*2]
mov dword [eax + ecx*8 + 0x10], 0x415cfc
inc dword [ebx]
jmp 0x405b7e
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]
xor esi, esi
inc dword [ebp - 8]
push esi
push esi
push esi
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp + 0xc], edi
push dword [ebp - 8]
jmp 0x405a5e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp dword [ebx], esi
mov esi, dword [ebp + 8]
jbe 0x405bdd
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 0x405bdd
add dword [ebp + 8], 0x18
inc edi
cmp edi, dword [ebx]
jb 0x405bbe
cmp edi, dword [ebx]
jne 0x405c0b
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], 0x415d04
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