Function at 0x42bce2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e4
push ebx
push esi
push edi
mov dword [ebp - 4], bind
mov eax, dword [ebp + 8]
push eax
push str.SOFTWAREWow6432NodeBentleyMunicipal_Products_GroupLicensing1.1Applications_d
push 0x200
lea eax, [ebp - 0x208]
push eax
call fcn.00452660
add esp, 0x10
lea eax, [ebp - 0x4e4]
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 - 0x208]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42bd77
lea eax, [ebp - 0x4e4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42be52
mov dword [ebp - 0x20c], 0x200
mov byte [ebp - 0x208], 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0x478258
mov eax, dword [ebp - 0x4e4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [0x45e03c], 0
je 0x42bdde
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
push str._r_n040510:DFS___s__d_
call fcn.00452380
add esp, 0xc
movsx eax, byte [ebp - 0x208]
test eax, eax
je 0x42be40
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x478274]
mov dword [eax], ecx
lea edi, [ebp - 0x208]
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 + 0xc]
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 + 0xc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x478278]
mov dword [edi - 1], eax
mov eax, dword [ebp - 0x4e4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42c12a
lea eax, [ebp - 0x4e0]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.0043d5a6
add esp, 8
movsx eax, byte [ebp - 0x4e0]
test eax, eax
je 0x42becb
lea eax, [ebp - 4]
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 - 0x4e0]
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42becb
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x4e0]
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp + 8]
push eax
push 0x47827c
push 0x200
lea eax, [ebp - 0x208]
push eax
call fcn.00452660
add esp, 0x10
lea eax, [ebp - 0x4e4]
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 - 0x208]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42bf4b
lea eax, [ebp - 0x4e4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42bfaa
mov eax, dword [ebp + 8]
push eax
push 0x4782c4
push 0x200
lea eax, [ebp - 0x208]
push eax
call fcn.00452660
add esp, 0x10
lea eax, [ebp - 0x4e4]
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 - 0x208]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42bff4
mov eax, dword [ebp + 8]
push eax
push str.SOFTWAREBentleyMunicipal_Products_GroupLicensing1.1Applications_d
push 0x200
lea eax, [ebp - 0x208]
push eax
call fcn.00452660
add esp, 0x10
lea eax, [ebp - 0x4e4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42c03d
mov eax, dword [ebp + 8]
push eax
push str.SoftwareBentleyMunicipal_Products_GroupLicensing1.1Applications_d
push 0x200
lea eax, [ebp - 0x208]
push eax
call fcn.00452660
add esp, 0x10
lea eax, [ebp - 0x4e4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42c065
movsx eax, byte [ebp - 0x4e0]
test eax, eax
je 0x42c060
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42c12a
mov dword [ebp - 0x20c], 0x200
mov byte [ebp - 0x208], 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0x47839c
mov eax, dword [ebp - 0x4e4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
movsx eax, byte [ebp - 0x208]
test eax, eax
je 0x42c0ff
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4783a0]
mov dword [eax], ecx
lea edi, [ebp - 0x208]
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 + 0xc]
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 + 0xc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x4783a4]
mov dword [edi - 1], eax
movsx eax, byte [ebp - 0x4e0]
test eax, eax
je 0x42c118
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x4e4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42c12a
pop edi
pop esi
pop ebx
leave
ret