Function at 0x421ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
push edi
mov dword [ebp - 0x874], 0
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x83c], 0xd
mov dword [ebp - 4], 0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x838], 0
mov byte [ebp - 0x870], 0
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x86f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x80c], 0
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0x80b]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x848], 0
lea eax, [ebp - 0x840]
push eax
push 0x20019
push 0
push str.SOFTWAREFLEXlm_License_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421cd8
mov dword [ebp - 0x848], 1
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
lea ecx, [ebp - 0x824]
push ecx
lea edx, [ebp - 0x80c]
push edx
push 0
push 0
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x870]
push ecx
mov edx, dword [ebp - 0x838]
push edx
mov eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x421cd8
mov ecx, dword [ebp - 0x838]
add ecx, 1
mov dword [ebp - 0x838], ecx
push 0x490144
lea edx, [ebp - 0x870]
push edx
call fcn.0040b940
add esp, 8
test eax, eax
je 0x421cbf
lea eax, [ebp - 0x870]
test eax, eax
je 0x421c75
mov ecx, 0x490154
test ecx, ecx
je 0x421c75
push 0x490164
lea edx, [ebp - 0x870]
push edx
call fcn.0040b840
add esp, 8
test eax, eax
je 0x421cbf
cmp dword [ebp + 0xc], 0
je 0x421c92
lea eax, [ebp - 0x870]
push eax
call fcn.00405b80
add esp, 4
mov dword [ebp - 0x878], eax
jmp 0x421c9e
mov ecx, dword [ebp - 0x824]
mov dword [ebp - 0x878], ecx
mov edx, dword [ebp - 0x834]
add edx, dword [ebp - 0x878]
mov dword [ebp - 0x834], edx
mov eax, dword [ebp - 0x820]
add eax, 1
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
jmp 0x421be7
mov ecx, dword [0x4980dc]
mov dword [ebp - 0x830], ecx
jmp 0x421cf5
mov edx, dword [ebp - 0x830]
add edx, 4
mov dword [ebp - 0x830], edx
mov eax, dword [ebp - 0x830]
cmp dword [eax], 0
je 0x421dd3
push 0x5f
mov ecx, dword [ebp - 0x830]
mov edx, dword [ecx]
push edx
call fcn.00404450
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x421dce
cmp dword [ebp - 8], 0
je 0x421dce
mov eax, 0x490174
test eax, eax
je 0x421dce
mov ecx, dword [ebp - 0x83c]
push ecx
push 0x490184
mov edx, dword [ebp - 8]
push edx
call fcn.004047f0
add esp, 0xc
test eax, eax
jne 0x421dce
mov eax, dword [ebp - 0x830]
cmp dword [eax], 0
je 0x421d8f
mov ecx, 0x490194
test ecx, ecx
je 0x421d8f
mov edx, dword [ebp - 0x83c]
add edx, 2
push edx
push 0x4901a4
mov eax, dword [ebp - 0x830]
mov ecx, dword [eax]
push ecx
call fcn.004047f0
add esp, 0xc
test eax, eax
je 0x421dce
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x83c]
movsx eax, byte [edx]
cmp eax, 0x3d
jne 0x421dce
mov ecx, dword [ebp - 0x830]
mov edx, dword [ecx]
push edx
call fcn.00405b80
add esp, 4
mov ecx, dword [ebp - 0x834]
add ecx, eax
mov dword [ebp - 0x834], ecx
mov edx, dword [ebp - 0x820]
add edx, 1
mov dword [ebp - 0x820], edx
jmp 0x421ce6
cmp dword [ebp - 0x820], 0
jne 0x421de3
xor eax, eax
jmp 0x422128
mov eax, dword [ebp - 0x834]
add eax, dword [ebp - 0x820]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00410450
add esp, 8
mov dword [ebp - 0x874], eax
mov edx, dword [ebp - 0x874]
mov dword [ebp - 0x844], edx
cmp dword [ebp - 0x848], 0
je 0x421f68
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x80c]
push ecx
push 0
push 0
lea edx, [ebp - 0x82c]
push edx
lea eax, [ebp - 0x870]
push eax
mov ecx, dword [ebp - 0x838]
push ecx
mov edx, dword [ebp - 0x840]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x421f5b
mov eax, dword [ebp - 0x838]
add eax, 1
mov dword [ebp - 0x838], eax
push 0x4901b4
lea ecx, [ebp - 0x870]
push ecx
call fcn.0040b940
add esp, 8
test eax, eax
je 0x421f42
lea edx, [ebp - 0x870]
test edx, edx
je 0x421ecb
mov eax, 0x4901c4
test eax, eax
je 0x421ecb
push 0x4901d4
lea ecx, [ebp - 0x870]
push ecx
call fcn.0040b840
add esp, 8
test eax, eax
je 0x421f42
mov edx, dword [ebp - 0x844]
cmp edx, dword [ebp - 0x874]
jbe 0x421ef1
mov eax, dword [ebp - 0x844]
mov byte [eax], 0x3b
mov ecx, dword [ebp - 0x844]
add ecx, 1
mov dword [ebp - 0x844], ecx
cmp dword [ebp + 0xc], 0
je 0x421f0f
lea edx, [ebp - 0x870]
push edx
mov eax, dword [ebp - 0x844]
push eax
call fcn.0040c6a0
add esp, 8
jmp 0x421f25
lea ecx, [ebp - 0x80c]
push ecx
mov edx, dword [ebp - 0x844]
push edx
call fcn.0040c6a0
add esp, 8
mov eax, dword [ebp - 0x844]
push eax
call fcn.00405b80
add esp, 4
mov ecx, dword [ebp - 0x844]
add ecx, eax
mov dword [ebp - 0x844], ecx
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
jmp 0x421e39
mov edx, dword [ebp - 0x840]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4980dc]
mov dword [ebp - 0x830], eax
jmp 0x421f84
mov ecx, dword [ebp - 0x830]
add ecx, 4
mov dword [ebp - 0x830], ecx
mov edx, dword [ebp - 0x830]
cmp dword [edx], 0
je 0x422110
push 0x5f
mov eax, dword [ebp - 0x830]
mov ecx, dword [eax]
push ecx
call fcn.00404450
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42210b
cmp dword [ebp - 8], 0
je 0x42210b
mov edx, 0x4901e4
test edx, edx
je 0x42210b
mov eax, dword [ebp - 0x83c]
push eax
push str._LICENSE_FILE
mov ecx, dword [ebp - 8]
push ecx
call fcn.004047f0
add esp, 0xc
test eax, eax
jne 0x42210b
mov edx, dword [ebp - 0x830]
cmp dword [edx], 0
je 0x422026
mov eax, 0x490204
test eax, eax
je 0x422026
mov ecx, dword [ebp - 0x83c]
add ecx, 2
push ecx
push 0x490214
mov edx, dword [ebp - 0x830]
mov eax, dword [edx]
push eax
call fcn.004047f0
add esp, 0xc
test eax, eax
je 0x42210b
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x83c]
movsx edx, byte [ecx]
cmp edx, 0x3d
jne 0x42210b
mov eax, dword [ebp - 0x844]
cmp eax, dword [ebp - 0x874]
jbe 0x422061
mov ecx, dword [ebp - 0x844]
mov byte [ecx], 0x3b
mov edx, dword [ebp - 0x844]
add edx, 1
mov dword [ebp - 0x844], edx
cmp dword [ebp + 0xc], 0
jne 0x4220a9
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x83c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x3d
je 0x422089
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x422094
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x422073
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x844]
push ecx
call fcn.0040c6a0
add esp, 8
jmp 0x4220ee
mov edx, dword [ebp - 0x830]
mov eax, dword [ebp - 8]
sub eax, dword [edx]
add eax, dword [ebp - 0x83c]
push eax
mov ecx, dword [ebp - 0x830]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x844]
push eax
call fcn.004046b0
add esp, 0xc
mov ecx, dword [ebp - 0x830]
mov edx, dword [ebp - 8]
sub edx, dword [ecx]
add edx, dword [ebp - 0x83c]
mov eax, dword [ebp - 0x844]
mov byte [eax + edx], 0
mov ecx, dword [ebp - 0x844]
push ecx
call fcn.00405b80
add esp, 4
mov edx, dword [ebp - 0x844]
add edx, eax
mov dword [ebp - 0x844], edx
jmp 0x421f75
cmp dword [ebp - 4], 0
je 0x422122
mov eax, dword [ebp - 4]
push eax
call fcn.00410532
add esp, 4
mov eax, dword [ebp - 0x874]
pop edi
mov esp, ebp
pop ebp
ret