Function at 0x408c45
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.004105e0
mov eax, dword [0x43cddc]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
push ebx
push esi
xor esi, esi
push edi
mov ebx, 0x44cea8
cmp dword [0x451734], esi
jne 0x408eeb
mov edi, 0x800
push edi
push ebx
push esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
push 0x5c
push ebx
call fcn.004067f9
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
xor eax, eax
movzx ecx, word [eax + 0x44cea8]
mov word [ebp + eax + 0x78c], cx
add eax, 2
cmp cx, si
jne 0x408c99
lea eax, [ebp + 0x78c]
push 0x5c
push eax
call fcn.004067f9
pop ecx
pop ecx
test eax, eax
je 0x408cd9
lea eax, [ebp + 0x78c]
push 0x5c
push eax
call fcn.004067f9
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x78c]
push eax
call fcn.004067f9
pop ecx
test eax, eax
je 0x408cf4
mov dword [0x451734], 1
cmp dword [0x451734], esi
jne 0x408eeb
push str.11.241.2
push str.SoftwareJavaSoftJava_Web_Start_
push 0x4395ac
push 0x400
mov esi, 0x4506a8
push esi
call fcn.004067f9
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 0x408db8
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 0x408db8
movzx ecx, word [eax + 0x44cea8]
mov word [ebp + eax + 0x78c], cx
add eax, 2
test cx, cx
jne 0x408d5d
lea eax, [ebp + 0x78c]
push 0x5c
push eax
call fcn.004067f9
pop ecx
pop ecx
test eax, eax
je 0x408d9d
lea eax, [ebp + 0x78c]
push 0x5c
push eax
call fcn.004067f9
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x78c]
push eax
call fcn.004067f9
pop ecx
test eax, eax
je 0x408db8
mov dword [0x451734], 1
cmp dword [0x451734], 0
jne 0x408eeb
push edi
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
push 0x4395c4
push ebx
call fcn.004067f9
pop ecx
pop ecx
test eax, eax
je 0x408e96
push str.binjavaws.exe
push ebx
call fcn.004067f9
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
xor eax, eax
movzx ecx, word [eax + 0x44cea8]
mov word [ebp + eax + 0x78c], cx
add eax, 2
test cx, cx
jne 0x408df8
mov eax, 0x439604
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408e16
lea edi, [ebp + 0x78c]
sub eax, edx
sub edi, 2
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x408e2c
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 0x408e4f
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x408e5f
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.004067f9
pop ecx
test eax, eax
je 0x408e96
mov dword [0x451734], 1
cmp dword [0x451734], 0
jne 0x408eeb
mov esi, 0x400
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00408418
pop ecx
pop ecx
test eax, eax
je 0x408ede
lea eax, [ebp - 0x74]
push eax
push str._s_bin
push esi
push ebx
call fcn.004067f9
lea eax, [ebp - 0x74]
push eax
call fcn.004067f9
add esp, 0x14
test eax, eax
je 0x408ede
mov dword [0x451734], 1
cmp dword [0x451734], 0
jne 0x408eeb
xor eax, eax
jmp 0x408eed
mov eax, ebx
mov ecx, dword [ebp + 0xf8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ffe6
add ebp, 0xf90
leave
ret