Function at 0x485340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x58b7c8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x420], 0
push 0x3ff
push 0
lea eax, [ebp - 0x41f]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x828], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x827]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0x424], 0x400
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x58]
push eax
push str.borrow__x
lea ecx, [ebp - 0x420]
push ecx
call sub.MSVCR90.dll_sprintf
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
push 0x20007
push 0
push str.SoftwareFLEXlm_License_ManagerBorrow
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x485471
cmp dword [ebp + 8], 0
je 0x485463
mov eax, dword [ebp + 8]
cmp dword [eax + 0x80], 0
je 0x48542c
xor ecx, ecx
je 0x48542c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x830], eax
jmp 0x485436
mov dword [ebp - 0x830], 0xffffff86
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x830]
mov dword [ecx + 0x80], edx
push 0
push 0xff
push 0
push 0
push 0x265
push 0xffffffffffffff86
mov eax, dword [ebp + 8]
push eax
call fcn.00488110
add esp, 0x1c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x80]
jmp 0x485611
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x834], edx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x828]
push ecx
mov edx, dword [ebp - 0x834]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
test eax, eax
jne 0x485605
mov edx, dword [ebp - 0x424]
mov byte [ebp + edx - 0x828], 0
lea eax, [ebp - 0x828]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
jmp 0x4854db
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 0
je 0x485509
cmp dword [ebp - 4], 2
jae 0x485509
push 0x2d
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR90.dll_strchr
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x485507
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x4854d2
cmp dword [ebp - 0xc], 0
je 0x4855f6
lea ecx, [ebp - 0x420]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x828]
push eax
call sub.MSVCR90.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x4855f6
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x4855f6
mov dword [ebp - 0x428], 0
push 1
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x828]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004995c0
add esp, 0x14
cmp dword [ebp - 0x428], 0
je 0x4855f4
mov dword [ebp - 0x82c], 0
mov ecx, dword [ebp - 0x82c]
cmp ecx, dword [ebp - 0x428]
jae 0x4855d4
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x82c]
movsx eax, byte [edx]
xor eax, 0xff
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x82c]
mov byte [ecx], al
mov edx, dword [ebp - 0x82c]
add edx, 2
mov dword [ebp - 0x82c], edx
jmp 0x485599
push 1
mov eax, dword [ebp - 0x428]
push eax
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x828]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004998b0
add esp, 0x14
jmp 0x485605
mov dword [ebp - 0x424], 0x400
jmp 0x485471
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00472edc
mov esp, ebp
pop ebp
ret