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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d63c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa38
mov eax, dword [0x43c1d0]
mov ecx, dword [str.SoftwareJavaSoftJava_Runtime_Environment]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xa18]
push eax
push 0x20019
xor ebx, ebx
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xa18], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x405751
push 0x436848
lea edx, [ebp - 0xa44]
push edx
mov dword [ebp - 0xa44], eax
call fcn.0041347e
mov dword [ebp - 0xa2c], ebx
mov edx, dword [ebp - 0xa2c]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xa40]
push eax
mov eax, dword [ebp - 0xa18]
lea ecx, [ebp - 0x214]
push ecx
push edx
push eax
mov dword [ebp - 0xa40], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
je 0x4057e5
cmp eax, 0x103
jne 0x4057ce
mov ecx, dword [ebp - 0xa18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
cmp ecx, ebx
jne 0x4057c4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00412f2e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
jmp 0x4057ab
push 0x436848
lea edx, [ebp - 0xa3c]
push edx
mov dword [ebp - 0xa3c], eax
call fcn.0041347e
mov edx, dword [ebp - 0xa18]
lea eax, [ebp - 0xa1c]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x214]
push ecx
push edx
mov dword [ebp - 0xa1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405a2c
call fcn.00420ac4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xa30], edi
mov byte [ebp - 4], 1
call fcn.00420ac4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xa28], esi
lea eax, [ebp - 0xa24]
push eax
mov eax, dword [str.JavaHome]
lea ecx, [ebp - 0xa14]
push ecx
mov ecx, dword [ebp - 0xa1c]
lea edx, [ebp - 0xa38]
push edx
push ebx
push eax
push ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0xa24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4058a5
lea edx, [ebp - 0xa14]
push edx
call fcn.00412f9e
add esp, 4
push eax
lea eax, [ebp - 0xa14]
push eax
lea ecx, [ebp - 0xa30]
call fcn.00401ae0
mov edi, dword [ebp - 0xa30]
lea ecx, [ebp - 0xa24]
push ecx
mov ecx, dword [str.RuntimeLib]
lea edx, [ebp - 0xa14]
push edx
mov edx, dword [ebp - 0xa1c]
lea eax, [ebp - 0xa38]
push eax
push ebx
push ecx
push edx
mov dword [ebp - 0xa24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405905
lea eax, [ebp - 0xa14]
push eax
call fcn.00412f9e
add esp, 4
push eax
lea ecx, [ebp - 0xa14]
push ecx
lea ecx, [ebp - 0xa28]
call fcn.00401ae0
mov esi, dword [ebp - 0xa28]
cmp dword [edi - 0xc], ebx
jle 0x4059e4
cmp dword [esi - 0xc], ebx
jle 0x4059e4
lea eax, [edi - 0x10]
push eax
call fcn.004015e0
lea ecx, [eax + 0x10]
add esp, 4
mov dword [ebp - 0xa20], ecx
mov edx, dword [ecx - 0xc]
lea eax, [edx - 1]
cmp eax, ebx
mov byte [ebp - 4], 3
jl 0x405a37
cmp eax, edx
jg 0x405a37
cmp word [ecx + eax*2], 0x5c
je 0x40595a
push 0x5c
lea ecx, [ebp - 0xa20]
call fcn.00405020
push str.binjava.exe
lea ecx, [ebp - 0xa20]
call fcn.00402320
lea edx, [ebp - 0xa28]
push edx
call fcn.00404fe0
add esp, 4
test al, al
je 0x4059c0
lea eax, [ebp - 0xa20]
push eax
call fcn.00404fe0
add esp, 4
test al, al
je 0x4059c0
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0xa34]
call fcn.00402900
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0xa34]
push edx
mov byte [ebp - 4], 4
call fcn.00405670
lea ecx, [ebp - 0xa34]
call fcn.00401910
mov eax, dword [ebp - 0xa20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4059e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0xa1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc dword [ebp - 0xa2c]
jmp 0x405757
push 0x80070057
call fcn.00401060
mov eax, dword [ebp - 0xa18]
test eax, eax
je 0x405a52
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00404fc0
test eax, eax
jbe 0x405a67
mov ecx, esi
call fcn.00405620
mov eax, 0x4057a9
ret