Function at 0x40b240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x448684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x10b]
push 0
push eax
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x11c], edx
mov byte [ebp - 0x10c], 0
call fcn.00412950
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
push 1
push 0
push str.SOFTWAREZone_LabsZoneAlarm
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b2d8
push str.IsInstalled:_cannot_open_ZoneAlarm_key
push edi
call fcn.0040a440
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040aaf0
mov ecx, esi
call fcn.004095f0
jmp 0x40b35d
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x114]
push edx
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
push str.InstallDirectory
push edx
mov dword [ebp - 0x114], 0x105
call esi
test eax, eax
jne 0x40b330
cmp dword [ebp - 0x114], eax
jne 0x40b372
mov eax, dword [ebp - 0x118]
cmp eax, 1
je 0x40b329
cmp eax, 2
jne 0x40b372
mov byte [ebp - 0x10c], 0
push str.IsInstalled:_cannot_locate_InstallDirecctory
push edi
call fcn.0040a440
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040aaf0
mov ecx, esi
call fcn.004095f0
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004126c6
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp - 0x10c], 0
je 0x40b330
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b384
sub eax, edx
push eax
lea eax, [ebp - 0x10c]
push eax
mov ecx, ebx
call fcn.004055e0
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x118]
push eax
push 0
push str.CurrentVersion
push ecx
mov dword [ebp - 0x114], 0x105
call esi
test eax, eax
jne 0x40b3ee
cmp dword [ebp - 0x114], eax
jne 0x40b41a
mov eax, dword [ebp - 0x118]
cmp eax, 1
je 0x40b3e7
cmp eax, 2
jne 0x40b41a
mov byte [ebp - 0x10c], 0
push str.IsInstalled:_cannot_locate_CurrentVersion
push edi
call fcn.0040a440
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040aaf0
mov ecx, esi
call fcn.004095f0
mov edx, dword [ebp - 0x110]
push edx
jmp 0x40b357
cmp byte [ebp - 0x10c], 0
je 0x40b3ee
mov ecx, dword [ebp - 0x124]
lea edx, [ebp - 0x10c]
push edx
call fcn.004068c0
mov ecx, dword [ebp - 0x110]
push 0x105
lea eax, [ebp - 0x10c]
push eax
push 0x43e7c0
push ecx
call fcn.00401a80
test eax, eax
je 0x40b5c7
cmp byte [ebp - 0x10c], 0
je 0x40b5c7
lea edx, [ebp - 0x10c]
push edx
call fcn.00413f30
mov ecx, dword [ebp - 0x128]
add esp, 4
lea edx, [ebp - 0x120]
push edx
mov dword [ecx], eax
mov eax, dword [ebp - 0x110]
push str.SavedProductMode
push eax
mov dword [ebp - 0x120], 0
call fcn.00401ae0
test eax, eax
jne 0x40b4d0
push str.IsInstalled:_cannot_locate_CurrentSKU
push edi
call fcn.0040a440
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040aaf0
mov ecx, esi
call fcn.004095f0
mov ecx, dword [ebp - 0x110]
push ecx
jmp 0x40b357
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x11c]
push ecx
mov dword [eax], edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Current_product:
push edi
call fcn.0040a440
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040aaf0
mov ecx, esi
call fcn.004095f0
push ebx
push str.install_directory:
push edi
call fcn.0040a440
add esp, 8
push eax
call fcn.0040a630
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040aaf0
mov ecx, esi
call fcn.004095f0
mov edx, dword [ebp - 0x11c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x124]
push str.__SKU:
push edx
push str.oem:
push 0x43e748
push eax
push str.version:
push edi
call fcn.0040a440
add esp, 8
push eax
call fcn.0040a630
add esp, 8
push eax
call fcn.0040a440
add esp, 8
push eax
call fcn.0040a440
add esp, 8
mov ecx, eax
call fcn.0040a830
push eax
call fcn.0040a440
add esp, 8
mov ecx, eax
call fcn.0040a830
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040aaf0
mov ecx, esi
call fcn.004095f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004126c6
mov esp, ebp
pop ebp
ret 0x14
push str.IsInstalled:_cannot_locate_CurrentOEM
push edi
call fcn.0040a440
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040aaf0
mov ecx, esi
call fcn.004095f0
mov ecx, dword [ebp - 0x110]
push ecx
jmp 0x40b357