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

Disassembly:
push 0xffffffffffffffff
push 0x549376
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
mov edx, dword [esp + 0x15c]
lea eax, [esp + 0xc]
push ebp
xor ebp, ebp
push eax
mov eax, dword [ecx + 0x18]
push 0x20019
push ebp
push edx
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409868
push ebp
push ebp
mov eax, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea ecx, [esp + 0x58]
push ebp
lea edx, [esp + 0x58]
push ecx
push edx
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x409599
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409868
cmp dword [esp + 0x40], ebp
jne 0x4095af
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409868
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push edi
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov edi, 0x104
lea eax, [esp + 0x54]
push edi
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x48], esi
jne 0x409849
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0x20019
lea ecx, [esp + 0x5c]
push ebp
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409849
mov eax, dword [0x5b5ecc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x54]
push eax
push ecx
push ebp
push ebp
push 0x598b90
push edx
mov dword [esp + 0x178], ebp
mov dword [esp + 0x28], edi
call ebx
test eax, eax
jne 0x409653
lea eax, [esp + 0x54]
lea ecx, [esp + 0x24]
push eax
push 0x597ddc
push ecx
call fcn.0053091a
add esp, 0xc
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x54]
push edx
push eax
push ebp
push ebp
push str.vers
push ecx
mov dword [esp + 0x28], edi
call ebx
test eax, eax
jne 0x40968a
lea edx, [esp + 0x54]
lea eax, [esp + 0x28]
push edx
push 0x597ddc
push eax
call fcn.0053091a
add esp, 0xc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
push ebp
mov esi, 4
push str.bEnabled
push eax
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x4096c2
cmp dword [esp + 0x14], ebp
setne cl
and ecx, 0xff
mov dword [esp + 0x30], ecx
jmp 0x4096c6
mov dword [esp + 0x30], ebp
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebp
push ebp
push str.bExtensionInstalled
push ecx
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x4096f9
cmp dword [esp + 0x14], ebp
setne dl
and edx, 0xff
mov dword [esp + 0x34], edx
jmp 0x4096fd
mov dword [esp + 0x34], ebp
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebp
push ebp
push str.bPluginInstalled
push edx
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x40972f
cmp dword [esp + 0x14], ebp
setne al
and eax, 0xff
mov dword [esp + 0x38], eax
jmp 0x409733
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push ebp
push ebp
push str.isExtensionSupported
push eax
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x409766
cmp dword [esp + 0x14], ebp
setne cl
and ecx, 0xff
mov dword [esp + 0x2c], ecx
jmp 0x40976a
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebp
push ebp
push str.isff15
push ecx
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x40979d
cmp dword [esp + 0x14], ebp
setne dl
and edx, 0xff
mov dword [esp + 0x44], edx
jmp 0x4097a1
mov dword [esp + 0x44], ebp
mov eax, dword [esp + 0x168]
push 0xffffffffffffffff
mov dword [esp + 0x40], ebp
mov edi, dword [eax + 0x1c]
lea esi, [eax + 0x14]
lea ecx, [edi + 1]
push ecx
mov ecx, esi
call fcn.00411d80
mov eax, dword [esi + 4]
lea edx, [edi + edi*8]
lea ecx, [esp + 0x24]
lea esi, [eax + edx*4]
push ecx
mov ecx, esi
call fcn.00537c3d
lea edx, [esp + 0x28]
lea ecx, [esi + 4]
push edx
call fcn.00537c3d
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 + 0x160], 1
call fcn.00537b04
lea ecx, [esp + 0x24]
mov dword [esp + 0x160], 0xffffffff
call fcn.00537b04
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
inc ecx
cmp esi, ebp
mov dword [esp + 0x20], ecx
je 0x4095bc
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x154
ret 8