Function at 0x4316dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push esi
push edi
mov byte [ebp - 0x408], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x407]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x810], 0
mov byte [ebp - 0x80c], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x80b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x400
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x814], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x50]
push ecx
push str.borrow__x
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x818]
push eax
push 0x20007
push 0
push str.SoftwareFLEXlm_License_ManagerBorrow
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4317ea
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0
je 0x4317ab
xor edx, edx
test edx, edx
je 0x4317ab
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x820], ecx
jmp 0x4317b5
mov dword [ebp - 0x820], 0xffffff86
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x820]
mov dword [edx + 0x14], eax
push 0
push 0xff
push 0
push 0
push 0x265
push 0xffffffffffffff86
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042afe0
add esp, 0x1c
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
jmp 0x431971
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x80c]
push ecx
mov edx, dword [ebp - 0x810]
mov dword [ebp - 0x824], edx
mov eax, dword [ebp - 0x824]
push eax
mov ecx, dword [ebp - 0x818]
push ecx
mov edx, dword [ebp - 0x810]
add edx, 1
mov dword [ebp - 0x810], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x431962
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x80c], 0
lea ecx, [ebp - 0x408]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x408]
push edx
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x431956
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
mov edx, dword [ebp + 0xc]
add edx, 4
push edx
lea eax, [ebp - 0x80c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
sub esi, eax
lea edx, [ebp + esi - 0x80c]
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x431956
mov dword [ebp - 0x814], 0
push 1
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x80c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042ce28
add esp, 0x14
cmp dword [ebp - 0x814], 0
je 0x431954
mov dword [ebp - 0x81c], 0
mov ecx, dword [ebp - 0x81c]
cmp ecx, dword [ebp - 0x814]
jae 0x431934
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x81c]
mov al, byte [edx]
xor al, 0xff
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x81c]
mov byte [ecx], al
mov edx, dword [ebp - 0x81c]
add edx, 2
mov dword [ebp - 0x81c], edx
jmp 0x4318fd
push 1
mov eax, dword [ebp - 0x814]
push eax
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x80c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042d070
add esp, 0x14
jmp 0x431962
mov dword [ebp - 4], 0x400
jmp 0x4317ea
mov ecx, dword [ebp - 0x818]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret