Function at 0x65d535
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1070
call fcn.00610fd0
push edi
mov dword [ebp - 0x106c], 0
mov dword [ebp - 0x103c], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1034], 0xd
mov dword [ebp - 4], 0
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x1010], 0
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1030], 0
mov byte [ebp - 0x1068], 0
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x1067]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x100c], 0
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x100b]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1040], 0
lea eax, [ebp - 0x1038]
push eax
push 0x20019
push 0
push str.SOFTWAREFLEXlm_License_Manager
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x65d742
mov dword [ebp - 0x1040], 1
mov dword [ebp - 0x1024], 0x27
mov dword [ebp - 0x101c], 0x1000
lea ecx, [ebp - 0x101c]
push ecx
lea edx, [ebp - 0x100c]
push edx
push 0
push 0
lea eax, [ebp - 0x1024]
push eax
lea ecx, [ebp - 0x1068]
push ecx
mov edx, dword [ebp - 0x1030]
push edx
mov eax, dword [ebp - 0x1038]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x65d742
mov ecx, dword [ebp - 0x1030]
add ecx, 1
mov dword [ebp - 0x1030], ecx
push 0x76f73c
lea edx, [ebp - 0x1068]
push edx
call dword [sym.imp.MSVCR80.dll_strstr]
add esp, 8
test eax, eax
je 0x65d729
lea eax, [ebp - 0x1068]
test eax, eax
je 0x65d6df
mov ecx, 0x76f74c
test ecx, ecx
je 0x65d6df
push 0x76f75c
lea edx, [ebp - 0x1068]
push edx
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
je 0x65d729
cmp dword [ebp + 0xc], 0
je 0x65d6fc
lea eax, [ebp - 0x1068]
push eax
call sub.MSVCR80.dll_strlen
add esp, 4
mov dword [ebp - 0x1070], eax
jmp 0x65d708
mov ecx, dword [ebp - 0x101c]
mov dword [ebp - 0x1070], ecx
mov edx, dword [ebp - 0x102c]
add edx, dword [ebp - 0x1070]
mov dword [ebp - 0x102c], edx
mov eax, dword [ebp - 0x1018]
add eax, 1
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1024], 0x27
mov dword [ebp - 0x101c], 0x1000
jmp 0x65d650
call dword [sym.imp.MSVCR80.dll___p__environ]
mov ecx, dword [eax]
mov dword [ebp - 0x1028], ecx
jmp 0x65d761
mov edx, dword [ebp - 0x1028]
add edx, 4
mov dword [ebp - 0x1028], edx
mov eax, dword [ebp - 0x1028]
cmp dword [eax], 0
je 0x65d842
push 0x5f
mov ecx, dword [ebp - 0x1028]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x65d83d
cmp dword [ebp - 8], 0
je 0x65d83d
mov eax, 0x76f76c
test eax, eax
je 0x65d83d
mov ecx, dword [ebp - 0x1034]
push ecx
push 0x76f77c
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x65d83d
mov eax, dword [ebp - 0x1028]
cmp dword [eax], 0
je 0x65d7fe
mov ecx, 0x76f78c
test ecx, ecx
je 0x65d7fe
mov edx, dword [ebp - 0x1034]
add edx, 2
push edx
push 0x76f79c
mov eax, dword [ebp - 0x1028]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x65d83d
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x1034]
movsx eax, byte [edx]
cmp eax, 0x3d
jne 0x65d83d
mov ecx, dword [ebp - 0x1028]
mov edx, dword [ecx]
push edx
call sub.MSVCR80.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x102c]
add ecx, eax
mov dword [ebp - 0x102c], ecx
mov edx, dword [ebp - 0x1018]
add edx, 1
mov dword [ebp - 0x1018], edx
jmp 0x65d752
cmp dword [ebp - 0x1018], 0
jne 0x65d852
xor eax, eax
jmp 0x65db9f
mov eax, dword [ebp - 0x102c]
add eax, dword [ebp - 0x1018]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00650f70
add esp, 8
mov dword [ebp - 0x106c], eax
mov edx, dword [ebp - 0x106c]
mov dword [ebp - 0x103c], edx
cmp dword [ebp - 0x1040], 0
je 0x65d9d8
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x1024], 0x27
mov dword [ebp - 0x101c], 0x1000
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x100c]
push ecx
push 0
push 0
lea edx, [ebp - 0x1024]
push edx
lea eax, [ebp - 0x1068]
push eax
mov ecx, dword [ebp - 0x1030]
push ecx
mov edx, dword [ebp - 0x1038]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x65d9cb
mov eax, dword [ebp - 0x1030]
add eax, 1
mov dword [ebp - 0x1030], eax
push 0x76f7ac
lea ecx, [ebp - 0x1068]
push ecx
call dword [sym.imp.MSVCR80.dll_strstr]
add esp, 8
test eax, eax
je 0x65d9b2
lea edx, [ebp - 0x1068]
test edx, edx
je 0x65d93b
mov eax, 0x76f7bc
test eax, eax
je 0x65d93b
push 0x76f7cc
lea ecx, [ebp - 0x1068]
push ecx
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
je 0x65d9b2
mov edx, dword [ebp - 0x103c]
cmp edx, dword [ebp - 0x106c]
jbe 0x65d961
mov eax, dword [ebp - 0x103c]
mov byte [eax], 0x3b
mov ecx, dword [ebp - 0x103c]
add ecx, 1
mov dword [ebp - 0x103c], ecx
cmp dword [ebp + 0xc], 0
je 0x65d97f
lea edx, [ebp - 0x1068]
push edx
mov eax, dword [ebp - 0x103c]
push eax
call sub.MSVCR80.dll_strcpy
add esp, 8
jmp 0x65d995
lea ecx, [ebp - 0x100c]
push ecx
mov edx, dword [ebp - 0x103c]
push edx
call sub.MSVCR80.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x103c]
push eax
call sub.MSVCR80.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x103c]
add ecx, eax
mov dword [ebp - 0x103c], ecx
mov dword [ebp - 0x1024], 0x27
mov dword [ebp - 0x101c], 0x1000
jmp 0x65d8a8
mov edx, dword [ebp - 0x1038]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.MSVCR80.dll___p__environ]
mov eax, dword [eax]
mov dword [ebp - 0x1028], eax
jmp 0x65d9f7
mov ecx, dword [ebp - 0x1028]
add ecx, 4
mov dword [ebp - 0x1028], ecx
mov edx, dword [ebp - 0x1028]
cmp dword [edx], 0
je 0x65db87
push 0x5f
mov eax, dword [ebp - 0x1028]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x65db82
cmp dword [ebp - 8], 0
je 0x65db82
mov edx, 0x76f7dc
test edx, edx
je 0x65db82
mov eax, dword [ebp - 0x1034]
push eax
push str._LICENSE_FILE
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x65db82
mov edx, dword [ebp - 0x1028]
cmp dword [edx], 0
je 0x65da9c
mov eax, 0x76f7fc
test eax, eax
je 0x65da9c
mov ecx, dword [ebp - 0x1034]
add ecx, 2
push ecx
push 0x76f80c
mov edx, dword [ebp - 0x1028]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x65db82
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x1034]
movsx edx, byte [ecx]
cmp edx, 0x3d
jne 0x65db82
mov eax, dword [ebp - 0x103c]
cmp eax, dword [ebp - 0x106c]
jbe 0x65dad7
mov ecx, dword [ebp - 0x103c]
mov byte [ecx], 0x3b
mov edx, dword [ebp - 0x103c]
add edx, 1
mov dword [ebp - 0x103c], edx
cmp dword [ebp + 0xc], 0
jne 0x65db1f
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x1034]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x3d
je 0x65daff
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x65db0a
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x65dae9
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x103c]
push ecx
call sub.MSVCR80.dll_strcpy
add esp, 8
jmp 0x65db65
mov edx, dword [ebp - 0x1028]
mov eax, dword [ebp - 8]
sub eax, dword [edx]
add eax, dword [ebp - 0x1034]
push eax
mov ecx, dword [ebp - 0x1028]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x103c]
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
mov ecx, dword [ebp - 0x1028]
mov edx, dword [ebp - 8]
sub edx, dword [ecx]
add edx, dword [ebp - 0x1034]
mov eax, dword [ebp - 0x103c]
mov byte [eax + edx], 0
mov ecx, dword [ebp - 0x103c]
push ecx
call sub.MSVCR80.dll_strlen
add esp, 4
mov edx, dword [ebp - 0x103c]
add edx, eax
mov dword [ebp - 0x103c], edx
jmp 0x65d9e8
cmp dword [ebp - 4], 0
je 0x65db99
mov eax, dword [ebp - 4]
push eax
call fcn.006511ab
add esp, 4
mov eax, dword [ebp - 0x106c]
pop edi
mov esp, ebp
pop ebp
ret