Function at 0x405403
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x40835a
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x114
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x1c]
mov esi, 0x20019
push eax
push esi
push ebx
push str.SOFTWARE
push 0x80000002
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40545e
lea ecx, [ebp - 0x18]
call fcn.00402de6
mov ecx, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
je 0x405486
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00402de6
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402de6
cmp dword [ebp - 0x18], ebx
je 0x4054d8
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4054d8
push esi
push 0x40cb14
push ecx
lea ecx, [ebp - 0x14]
call fcn.004079c4
test eax, eax
jne 0x4054ae
push esi
push str.Java_Runtime_Environment
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.004079c4
test eax, eax
je 0x4054df
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4054c1
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x4054ce
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x4054d8
push dword [ebp - 0x18]
call esi
xor eax, eax
jmp 0x40560f
push edi
mov edi, 0x40de34
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x120]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0xa0]
push eax
push ebx
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
and ecx, 3
mov dword [ebp - 0x1c], 1
rep movsb byte es:[edi], byte [esi]
call ebx
test eax, eax
jne 0x4055df
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
pop ecx
test eax, eax
pop ecx
jle 0x40559e
push 9
mov edi, str.1.5.0_22
lea esi, [ebp - 0xa0]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40559e
lea edi, [ebp - 0xa0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jbe 0x40559e
lea edi, [ebp - 0xa0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x120]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [ebp - 0x20], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
lea ecx, [ebp - 0xa0]
push 0x80
push ecx
push eax
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x40552f
xor edi, edi
cmp dword [ebp - 0x20], edi
je 0x4055e1
lea eax, [ebp - 0x120]
push eax
push 0x40cb48
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4055e1
xor edi, edi
cmp dword [ebp - 0x10], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4055f4
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x14], edi
je 0x405601
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x18], edi
pop edi
je 0x40560c
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret