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

Disassembly:
push 0xffffffffffffffff
push 0x5af936
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 0x40bb85
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 0x40b869
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40bb85
cmp dword [esp + 0x3c], ebx
jne 0x40b87f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40bb85
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 0x40bb66
movsx eax, byte [esp + 0x54]
push eax
call fcn.0058219c
add esp, 4
test eax, eax
je 0x40bb66
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 0x40bb66
mov ecx, dword [0x679a04]
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 0x653e94
push ecx
mov dword [esp + 0x380], ebx
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b94a
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 0x40b985
lea ecx, [esp + 0x54]
lea edx, [esp + 0x28]
push ecx
push 0x652fd0
push edx
call fcn.00596d08
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 0x40b9bc
cmp dword [esp + 0x14], ebx
setne al
and eax, 0xff
mov dword [esp + 0x30], eax
jmp 0x40b9c0
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 0x40b9f3
cmp dword [esp + 0x14], ebx
setne cl
and ecx, 0xff
mov dword [esp + 0x34], ecx
jmp 0x40b9f7
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 0x40ba2a
cmp dword [esp + 0x14], ebx
setne dl
and edx, 0xff
mov dword [esp + 0x38], edx
jmp 0x40ba2e
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 0x40ba60
cmp dword [esp + 0x14], ebx
setne al
and eax, 0xff
mov dword [esp + 0x2c], eax
jmp 0x40ba64
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 0x40ba97
cmp dword [esp + 0x14], ebx
setne cl
and ecx, 0xff
mov dword [esp + 0x44], ecx
jmp 0x40ba9b
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.00417a40
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 0x40baef
cmp eax, ebx
je 0x40bad6
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.0059e079
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.0059df40
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 0x40b88c
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