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

Disassembly:
push 0xffffffffffffffff
push 0x5b7266
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x350
mov edx, dword [esp + 0x364]
lea eax, [esp + 0xc]
push ebx
xor ebx, ebx
push eax
mov eax, dword [ecx + 0x18]
push 0x20019
push ebx
push edx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ba55
push ebx
push ebx
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x58]
push ebx
lea edx, [esp + 0x54]
push ecx
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40b739
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ba55
cmp dword [esp + 0x3c], ebx
jne 0x40b74f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ba55
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push edi
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x54]
push 0x104
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x4c], esi
jne 0x40ba36
movsx eax, byte [esp + 0x54]
push eax
call fcn.00589aac
add esp, 4
test eax, eax
je 0x40ba36
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
lea edx, [esp + 0x5c]
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ba36
mov ecx, dword [0x682f9c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x158]
push edx
push eax
push ebx
push ebx
push 0x65ce44
push ecx
mov dword [esp + 0x380], ebx
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b81a
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x54]
push ecx
push edx
push ebx
push ebx
push str.vers
push eax
mov dword [esp + 0x28], 0x104
call ebp
test eax, eax
jne 0x40b855
lea ecx, [esp + 0x54]
lea edx, [esp + 0x28]
push ecx
push 0x65bf6c
push edx
call fcn.0059e618
add esp, 0xc
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push ebx
mov esi, 4
push str.bEnabled
push edx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x40b88c
cmp dword [esp + 0x14], ebx
setne al
and eax, 0xff
mov dword [esp + 0x30], eax
jmp 0x40b890
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push ebx
push str.bExtensionInstalled
push eax
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x40b8c3
cmp dword [esp + 0x14], ebx
setne cl
and ecx, 0xff
mov dword [esp + 0x34], ecx
jmp 0x40b8c7
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push ebx
push str.bPluginInstalled
push ecx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x40b8fa
cmp dword [esp + 0x14], ebx
setne dl
and edx, 0xff
mov dword [esp + 0x38], edx
jmp 0x40b8fe
mov dword [esp + 0x38], ebx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push ebx
push str.isExtensionSupported
push edx
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x40b930
cmp dword [esp + 0x14], ebx
setne al
and eax, 0xff
mov dword [esp + 0x2c], eax
jmp 0x40b934
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push ebx
push str.isff15
push eax
mov dword [esp + 0x28], esi
call ebp
test eax, eax
jne 0x40b967
cmp dword [esp + 0x14], ebx
setne cl
and ecx, 0xff
mov dword [esp + 0x44], ecx
jmp 0x40b96b
mov dword [esp + 0x44], ebx
mov edx, dword [esp + 0x370]
push 0xffffffffffffffff
mov dword [esp + 0x40], ebx
mov edi, dword [edx + 0x1c]
lea esi, [edx + 0x14]
mov ecx, esi
lea eax, [edi + 1]
push eax
call fcn.00417c10
mov edx, dword [esi + 4]
lea ecx, [edi + edi*8]
mov eax, dword [edx + ecx*4]
lea esi, [edx + ecx*4]
cmp eax, dword [esp + 0x24]
je 0x40b9bf
cmp eax, ebx
je 0x40b9a6
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [esi], eax
lea edx, [esp + 0x28]
lea ecx, [esi + 4]
push edx
call fcn.005a5986
mov eax, dword [esp + 0x2c]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x30]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x44]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x28]
mov dword [esp + 0x368], 1
call fcn.005a584d
mov edx, dword [esp + 0x24]
mov dword [esp + 0x368], 0xffffffff
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
inc ecx
cmp esi, ebx
mov dword [esp + 0x20], ecx
je 0x40b75c
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x354]
pop ebx
mov dword fs:[0], ecx
add esp, 0x35c
ret 8