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

Disassembly:
push ebp
lea ebp, [esp - 0x4654]
mov eax, 0x4654
call fcn.00414690
push 0xffffffffffffffff
push 0x431edf
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x43ec80]
xor eax, ebp
mov dword [ebp + 0x4650], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x465c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x4660]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x4664]
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x4668]
push 0x20019
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x466c]
xor esi, esi
push esi
push eax
push 0x80000002
mov dword [ebp - 0x24], eax
call edi
test eax, eax
jne 0x40efa8
lea ecx, [ebp - 0x44]
call fcn.0040c918
mov eax, 0x1770
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x2ee0]
push eax
push esi
push dword [ebp - 0x20]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
call esi
mov ebx, 0x103
jmp 0x40ed96
cmp byte [ebp + 0x4674], 0
lea eax, [ebp + 0x2ee0]
mov dword [ebp - 0x18], eax
je 0x40ed0c
push 5
push str.zulu_
push eax
call fcn.00415051
add esp, 0xc
test eax, eax
jne 0x40ed0c
lea eax, [ebp + 0x2ee5]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x2ee0]
push eax
push dword [ebp - 0x18]
push str.test_key_name__S__S
call fcn.0040ff78
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x18]
call fcn.0040d1ce
add esp, 0x18
test al, al
je 0x40ed67
lea eax, [ebp + 0x2ee0]
push eax
lea ecx, [ebp - 0x84]
call fcn.00402f86
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0040475a
push 0
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0
call fcn.00402991
inc dword [ebp - 0x10]
mov eax, 0x1770
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x2ee0]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x20]
call esi
cmp eax, ebx
jne 0x40ecdd
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x4c]
call fcn.00406e61
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x14]
call fcn.00406e61
push 0x40d739
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0040e4de
add esp, 0x14
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x14]
call fcn.00406e61
jmp 0x40ee15
lea ecx, [ebp - 0x14]
call fcn.00413019
cmp dword [eax + 0x18], 0x10
jb 0x40edf9
mov eax, dword [eax + 4]
jmp 0x40edfc
add eax, 4
push eax
push dword [ebp - 0x24]
push str.found_in__S:__S
call fcn.0040ff78
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0040ad67
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
call fcn.00406e61
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040acc0
test al, al
je 0x40ede6
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x1c]
call fcn.00406e61
jmp 0x40ef6b
lea ecx, [ebp - 0x1c]
call fcn.00413019
cmp byte [ebp + 0x4670], 0
je 0x40eec3
mov eax, dword [eax + 0x14]
add eax, 0x64
push eax
call fcn.0041375e
pop ecx
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00413019
cmp dword [eax + 0x18], 0x10
jb 0x40ee7b
mov ebx, dword [eax + 4]
jmp 0x40ee7e
lea ebx, [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.00413019
mov eax, dword [eax + 0x14]
push ebx
push str._shotspotMSI
add eax, 0x64
push eax
push esi
call fcn.0041518e
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push esi
push dword [ebp - 0x20]
call edi
mov ebx, eax
neg ebx
sbb bl, bl
push esi
inc bl
call fcn.00416040
pop ecx
mov eax, str.Path
jmp 0x40eefd
cmp dword [eax + 0x18], 0x10
jb 0x40eece
mov eax, dword [eax + 4]
jmp 0x40eed1
add eax, 4
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push eax
push dword [ebp - 0x20]
call edi
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
cmp byte [ebp + 0x4674], 0
mov eax, str.InstallationPath
jne 0x40eefd
mov eax, str.JavaHome
test bl, bl
je 0x40ef63
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp + 0x1770]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push 0
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x24], 0x1770
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ef5a
lea eax, [ebp + 0x1770]
push eax
push dword [ebp - 0x50]
call fcn.0040a467
pop ecx
pop ecx
test al, al
je 0x40ef5a
push 1
push 1
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x50]
call fcn.0040dead
add esp, 0x1c
test al, al
jne 0x40efcd
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.0040ad67
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x4c]
call fcn.00406e61
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040acc0
test al, al
je 0x40ee48
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x44]
call fcn.0040437b
push dword [ebp - 0x44]
call fcn.00414445
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4650]
xor ecx, ebp
call fcn.00414678
add ebp, 0x4654
leave
ret
lea ecx, [ebp - 0x44]
call fcn.0040437b
push dword [ebp - 0x44]
call fcn.00414445
pop ecx
mov al, 1
jmp 0x40efaa