Function at 0x40868e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.0040ed90
mov eax, dword [0x436208]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
push ebx
push esi
xor esi, esi
push edi
mov ebx, 0x4462c0
cmp dword [0x44ab4c], esi
jne 0x408934
mov edi, 0x800
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push ebx
call fcn.004102d7
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
xor eax, eax
movzx ecx, word [eax + 0x4462c0]
mov word [ebp + eax + 0x78c], cx
add eax, 2
cmp cx, si
jne 0x4086e2
lea eax, [ebp + 0x78c]
push 0x5c
push eax
call fcn.004102d7
pop ecx
pop ecx
test eax, eax
je 0x408722
lea eax, [ebp + 0x78c]
push 0x5c
push eax
call fcn.004102d7
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x78c]
push eax
call fcn.00407dd3
pop ecx
test eax, eax
je 0x40873d
mov dword [0x44ab4c], 1
cmp dword [0x44ab4c], esi
jne 0x408934
push str.11.121.2
push str.SoftwareJavaSoftJava_Web_Start_
push 0x43312c
push 0x400
mov esi, 0x449ac0
push esi
call fcn.0040fd7a
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408801
lea eax, [ebp - 0x7c]
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
push 0
push str.Home
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408801
movzx ecx, word [eax + 0x4462c0]
mov word [ebp + eax + 0x78c], cx
add eax, 2
test cx, cx
jne 0x4087a6
lea eax, [ebp + 0x78c]
push 0x5c
push eax
call fcn.004102d7
pop ecx
pop ecx
test eax, eax
je 0x4087e6
lea eax, [ebp + 0x78c]
push 0x5c
push eax
call fcn.004102d7
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x78c]
push eax
call fcn.00407dd3
pop ecx
test eax, eax
je 0x408801
mov dword [0x44ab4c], 1
cmp dword [0x44ab4c], 0
jne 0x408934
push edi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x433144
push ebx
call fcn.0040efb7
pop ecx
pop ecx
test eax, eax
je 0x4088df
push str.binjavaws.exe
push ebx
call fcn.0040efb7
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
xor eax, eax
movzx ecx, word [eax + 0x4462c0]
mov word [ebp + eax + 0x78c], cx
add eax, 2
test cx, cx
jne 0x408841
mov eax, 0x433184
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40885f
lea edi, [ebp + 0x78c]
sub eax, edx
sub edi, 2
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x408875
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, str.jre_bin
rep movsb byte es:[edi], byte [esi]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408898
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4088a8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x78c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00407dd3
pop ecx
test eax, eax
je 0x4088df
mov dword [0x44ab4c], 1
cmp dword [0x44ab4c], 0
jne 0x408934
mov esi, 0x400
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00408061
pop ecx
pop ecx
test eax, eax
je 0x408927
lea eax, [ebp - 0x74]
push eax
push str._s_bin
push esi
push ebx
call fcn.0040fd7a
lea eax, [ebp - 0x74]
push eax
call fcn.00407dd3
add esp, 0x14
test eax, eax
je 0x408927
mov dword [0x44ab4c], 1
cmp dword [0x44ab4c], 0
jne 0x408934
xor eax, eax
jmp 0x408936
mov eax, ebx
mov ecx, dword [ebp + 0xf8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e66b
add ebp, 0xf90
leave
ret