Function at 0x408752
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1fc0]
mov eax, 0x2040
call fcn.0040ee40
mov eax, dword [0x436248]
xor eax, ebp
mov dword [ebp + 0x1fbc], eax
cmp dword [0x44ab8c], 0
push ebx
mov ebx, 0x446300
jne 0x408a6f
push esi
push edi
mov edi, 0x800
push edi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
pop esi
push esi
push ebx
call fcn.00410387
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
xor eax, eax
movzx ecx, word [eax + 0x446300]
mov word [ebp + eax + 0x17bc], cx
add eax, 2
test cx, cx
jne 0x4087a8
lea eax, [ebp + 0x17bc]
push esi
push eax
call fcn.00410387
pop ecx
pop ecx
test eax, eax
je 0x4087e6
lea eax, [ebp + 0x17bc]
push esi
push eax
call fcn.00410387
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
push 0x43307c
push esi
push 0x433094
push esi
lea eax, [ebp + 0x17bc]
push eax
lea eax, [ebp - 0x44]
push 0x43309c
push eax
call fcn.0040fd8b
push 0x4330b4
push esi
push 0x4330cc
push esi
lea eax, [ebp + 0x17bc]
push eax
lea eax, [ebp + 0xfbc]
push 0x4330d4
push eax
call fcn.0040fd8b
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040e2bd
add esp, 0x40
test eax, eax
jne 0x40885f
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0xfbc]
push eax
call fcn.0040e2bd
pop ecx
pop ecx
test eax, eax
jne 0x40885f
mov dword [0x44ab8c], 1
cmp dword [0x44ab8c], 0
jne 0x408a6d
push str.11.101.2
push str.SoftwareJavaSoftJava_Web_Start_
push 0x433144
mov esi, 0x449b00
push esi
call fcn.0040fd8b
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40893b
lea eax, [ebp - 0x78]
push eax
push ebx
lea eax, [ebp - 0x80]
push eax
push 0
push str.Home
push dword [ebp - 0x7c]
mov dword [ebp - 0x78], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40893b
push 0x43315c
push 0x5c
push ebx
lea eax, [ebp + 0xfbc]
push 0x433170
push eax
call fcn.0040fd8b
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0xfbc]
push eax
call fcn.0040e2bd
add esp, 0x1c
test eax, eax
je 0x408931
call fcn.00407dd1
test eax, eax
jne 0x408a63
lea eax, [ebp + 0x7bc]
push 0x400
push eax
call fcn.00408013
pop ecx
pop ecx
test eax, eax
je 0x40893b
lea eax, [ebp + 0x7bc]
push eax
push 0x433180
push ebx
call fcn.0040fd8b
add esp, 0xc
mov dword [0x44ab8c], 1
cmp dword [0x44ab8c], 0
jne 0x408a6d
push edi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x433190
push ebx
call fcn.0040f067
pop ecx
pop ecx
test eax, eax
je 0x408a2e
push str.binjavaws.exe
push ebx
call fcn.0040f067
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
xor eax, eax
movzx ecx, word [eax + 0x446300]
mov word [ebp + eax + 0x17bc], cx
add eax, 2
test cx, cx
jne 0x40897b
mov eax, str.jrelib
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408999
lea edi, [ebp + 0x17bc]
sub eax, edx
sub edi, 2
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4089af
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 0x4089d2
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4089e2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x74]
push eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.0040e2bd
pop ecx
pop ecx
test eax, eax
jne 0x408a2e
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x17bc]
push eax
call fcn.0040e2bd
pop ecx
pop ecx
test eax, eax
jne 0x408a2e
mov dword [0x44ab8c], 1
cmp dword [0x44ab8c], 0
jne 0x408a6d
lea eax, [ebp + 0x7bc]
push 0x400
push eax
call fcn.00408013
pop ecx
pop ecx
test eax, eax
je 0x408a6d
lea eax, [ebp + 0x7bc]
push eax
push str._s_bin
push ebx
call fcn.0040fd8b
add esp, 0xc
mov dword [0x44ab8c], 1
pop edi
pop esi
mov ecx, dword [ebp + 0x1fbc]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040e71b
add ebp, 0x1fc0
leave
ret