Function at 0x42dec7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
push str.SoftwareBentleyLicensing1.1
push 0x200
lea eax, [ebp - 0x204]
push eax
call fcn.00452660
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x204]
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42df51
lea eax, [ebp - 0x20c]
push eax
cmp dword [0x462284], 1
mov eax, 0
adc eax, 0xffffffff
and eax, 0x100
or eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x204]
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42dfd9
push str.SOFTWAREBentleyLicensing1.1
push 0x200
lea eax, [ebp - 0x204]
push eax
call fcn.00452660
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x204]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42dfd9
lea eax, [ebp - 0x20c]
push eax
cmp dword [0x462284], 1
mov eax, 0
adc eax, 0xffffffff
and eax, 0x100
or eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x204]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42e061
push str.SOFTWAREWow6432NodeBentleyLicensing1.1
push 0x200
lea eax, [ebp - 0x204]
push eax
call fcn.00452660
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x204]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42e061
lea eax, [ebp - 0x20c]
push eax
cmp dword [0x462284], 1
mov eax, 0
adc eax, 0xffffffff
and eax, 0x100
or eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x204]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42e09a
cmp dword [0x45e03c], 0
je 0x42e089
mov eax, dword [ebp - 4]
push eax
push str._r_nIBA_03XSS:_d
call fcn.00452380
add esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.0042dbc0
add esp, 4
jmp 0x42e1a8
mov dword [ebp - 0x208], 0x200
lea eax, [ebp - 0x204]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push 0
push str.Activation
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
lea edi, [ebp - 0x204]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
cmp eax, 5
jbe 0x42e162
mov edi, dword [ebp + 8]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x478b5c]
mov dword [edi - 1], eax
lea edi, [ebp - 0x204]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, edi
mov ebx, ecx
mov edi, dword [ebp + 8]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov esi, edx
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x478b60]
mov dword [edi - 1], eax
jmp 0x42e17b
lea eax, [ebp - 0x204]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsx eax, byte [ebp - 0x204]
test eax, eax
jne 0x42e1a3
mov eax, dword [ebp + 8]
push eax
call fcn.0042dbc0
add esp, 4
jmp 0x42e1a8
pop edi
pop esi
pop ebx
leave
ret