Function at 0x403cc7
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4068e2
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 0x403d22
lea ecx, [ebp - 0x18]
call fcn.00402e41
mov ecx, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
je 0x403d4a
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00402e41
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402e41
cmp dword [ebp - 0x18], ebx
je 0x403d9c
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403d9c
push esi
push 0x409698
push ecx
lea ecx, [ebp - 0x14]
call fcn.004065d2
test eax, eax
jne 0x403d72
push esi
push str.Java_Runtime_Environment
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.004065d2
test eax, eax
je 0x403da3
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x403d85
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x403d92
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x403d9c
push dword [ebp - 0x18]
call esi
xor eax, eax
jmp 0x403ed3
push edi
mov edi, 0x40a930
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 0x403ea3
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 0x403e62
push 9
mov edi, str.1.5.0_09
lea esi, [ebp - 0xa0]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x403e62
lea edi, [ebp - 0xa0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jbe 0x403e62
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 0x403df3
xor edi, edi
cmp dword [ebp - 0x20], edi
je 0x403ea5
lea eax, [ebp - 0x120]
push eax
push 0x4096cc
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x403ea5
xor edi, edi
cmp dword [ebp - 0x10], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x403eb8
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x14], edi
je 0x403ec5
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x18], edi
pop edi
je 0x403ed0
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