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

Disassembly:
sub esp, 0x270
mov eax, dword [0x448010]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
mov bl, byte [esp + 0x278]
lea eax, [esp + 0x30]
push ebp
push esi
push edi
push eax
mov eax, dword [esp + 0x290]
mov esi, ecx
or eax, 0x20019
mov dword [esp + 0x2c], edx
push eax
mov ecx, str.SoftwareJavaSoftJava_Runtime_Environment_
mov dword [esp + 0x1c], esi
test bl, bl
mov eax, str.SoftwareJavaSoftJava_Development_Kit_
push 0
cmove eax, ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410bc4
mov ebp, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov eax, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0x208
push ecx
lea ecx, [esp + 0x84]
push ecx
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [esp + 0x44], eax
test eax, eax
jne 0x410b9c
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404f61
push ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x64]
call fcn.004112c8
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.004052ff
push esi
lea ecx, [esp + 0x60]
call fcn.0041129d
test eax, eax
js 0x410b9c
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
lea eax, [esp + 0x7c]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410b9c
cmp dword [esp + 0x1c], eax
mov edi, ebx
lea eax, [esp + 0x20]
cmovne edi, dword [esp + 0x1c]
push eax
push ebx
push ebx
push ebx
push str.JavaHome
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x410beb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004246fb
pop ecx
mov esi, eax
lea eax, [esp + 0x20]
push eax
push esi
push ebx
push ebx
push str.JavaHome
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x410af1
push esi
call fcn.00424704
pop ecx
test edi, edi
je 0x410b98
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410b98
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x4c]
call fcn.00410d3e
cmp dword [esp + 0x4c], 0
jle 0x410b2b
push ebx
lea ecx, [esp + 0x4c]
call fcn.00410ef8
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call fcn.0041129d
test eax, eax
js 0x410bdd
inc ebx
cmp ebx, dword [esp + 0x4c]
jl 0x410b06
lea ecx, [esp + 0x48]
call fcn.0040a5e2
or ebx, 0xffffffff
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x34]
call fcn.00410cc8
push esi
lea ecx, [esp + 0x28]
call fcn.00404f61
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
call fcn.00409766
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.004052ff
cmp ebx, 0xffffffff
je 0x410b84
mov edx, ebx
lea ecx, [esp + 0x30]
call fcn.00410dfb
mov ecx, dword [esp + 0x28]
mov edx, ebx
call fcn.00410e7b
push esi
call fcn.00424704
pop ecx
test edi, edi
je 0x410b96
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
inc eax
cmp dword [esp + 0x44], 0
mov dword [esp + 0x2c], eax
je 0x4109f5
lea ecx, [esp + 0x30]
call fcn.0040a5e2
test ebp, ebp
je 0x410bc4
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004246ea
add esp, 0x270
ret
lea ecx, [esp + 0x48]
call fcn.0040a5e2
jmp 0x410b37
test edi, edi
je 0x410b9c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410b9c