Function at 0x42d993
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x83c], 0xd
mov dword [ebp - 4], 0
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x848], 0
lea eax, [ebp - 0x840]
push eax
push 0x20019
push 0
push 0x48b504
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42db0a
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 0x42db0a
mov ecx, dword [ebp - 0x838]
add ecx, 1
mov dword [ebp - 0x838], ecx
push 0x48b524
lea edx, [ebp - 0x870]
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x42daf1
movsx eax, byte [ebp - 0x870]
movsx ecx, byte [0x48b534]
cmp eax, ecx
jne 0x42daa7
push 0x48b544
lea edx, [ebp - 0x870]
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x42daf1
cmp dword [ebp + 0xc], 0
je 0x42dac4
lea eax, [ebp - 0x870]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x878], eax
jmp 0x42dad0
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 0x42da19
call dword [sym.imp.MSVCRT.dll___p__environ]
mov ecx, dword [eax]
mov dword [ebp - 0x830], ecx
jmp 0x42db29
mov edx, dword [ebp - 0x830]
add edx, 4
mov dword [ebp - 0x830], edx
mov eax, dword [ebp - 0x830]
cmp dword [eax], 0
je 0x42dc0a
push 0x5f
mov ecx, dword [ebp - 0x830]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42dc05
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
movsx edx, byte [0x48b554]
cmp ecx, edx
jne 0x42dc05
mov eax, dword [ebp - 0x83c]
push eax
push 0x48b564
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x42dc05
mov edx, dword [ebp - 0x830]
mov eax, dword [edx]
movsx ecx, byte [eax]
movsx edx, byte [0x48b574]
cmp ecx, edx
jne 0x42dbc6
mov eax, dword [ebp - 0x83c]
add eax, 2
push eax
push 0x48b584
mov ecx, dword [ebp - 0x830]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x42dc05
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x83c]
movsx ecx, byte [eax]
cmp ecx, 0x3d
jne 0x42dc05
mov edx, dword [ebp - 0x830]
mov eax, dword [edx]
push eax
call sub.MSVCRT.dll_strlen
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 0x42db1a
cmp dword [ebp - 0x820], 0
jne 0x42dc1a
xor eax, eax
jmp 0x42df66
mov eax, dword [ebp - 0x834]
add eax, dword [ebp - 0x820]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042b3d0
add esp, 8
mov dword [ebp - 0x874], eax
mov edx, dword [ebp - 0x874]
mov dword [ebp - 0x844], edx
cmp dword [ebp - 0x848], 0
je 0x42dd9f
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 0x42dd92
mov eax, dword [ebp - 0x838]
add eax, 1
mov dword [ebp - 0x838], eax
push 0x48b594
lea ecx, [ebp - 0x870]
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x42dd79
movsx edx, byte [ebp - 0x870]
movsx eax, byte [0x48b5a4]
cmp edx, eax
jne 0x42dd02
push 0x48b5b4
lea ecx, [ebp - 0x870]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x42dd79
mov edx, dword [ebp - 0x844]
cmp edx, dword [ebp - 0x874]
jbe 0x42dd28
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 0x42dd46
lea edx, [ebp - 0x870]
push edx
mov eax, dword [ebp - 0x844]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x42dd5c
lea ecx, [ebp - 0x80c]
push ecx
mov edx, dword [ebp - 0x844]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x844]
push eax
call sub.MSVCRT.dll_strlen
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 0x42dc70
mov edx, dword [ebp - 0x840]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.MSVCRT.dll___p__environ]
mov eax, dword [eax]
mov dword [ebp - 0x830], eax
jmp 0x42ddbe
mov ecx, dword [ebp - 0x830]
add ecx, 4
mov dword [ebp - 0x830], ecx
mov edx, dword [ebp - 0x830]
cmp dword [edx], 0
je 0x42df4e
push 0x5f
mov eax, dword [ebp - 0x830]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42df49
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
movsx ecx, byte [0x48b5c4]
cmp eax, ecx
jne 0x42df49
mov edx, dword [ebp - 0x83c]
push edx
push str._LICENSE_FILE
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x42df49
mov ecx, dword [ebp - 0x830]
mov edx, dword [ecx]
movsx eax, byte [edx]
movsx ecx, byte [0x48b5e4]
cmp eax, ecx
jne 0x42de63
mov edx, dword [ebp - 0x83c]
add edx, 2
push edx
push 0x48b5f4
mov eax, dword [ebp - 0x830]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x42df49
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x83c]
movsx eax, byte [edx]
cmp eax, 0x3d
jne 0x42df49
mov ecx, dword [ebp - 0x844]
cmp ecx, dword [ebp - 0x874]
jbe 0x42de9e
mov edx, dword [ebp - 0x844]
mov byte [edx], 0x3b
mov eax, dword [ebp - 0x844]
add eax, 1
mov dword [ebp - 0x844], eax
cmp dword [ebp + 0xc], 0
jne 0x42dee6
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x83c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
cmp eax, 0x3d
je 0x42dec6
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x20
jne 0x42ded1
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x42deb0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x844]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x42df2c
mov eax, dword [ebp - 0x830]
mov ecx, dword [ebp - 8]
sub ecx, dword [eax]
add ecx, dword [ebp - 0x83c]
push ecx
mov edx, dword [ebp - 0x830]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x844]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov edx, dword [ebp - 0x830]
mov eax, dword [ebp - 8]
sub eax, dword [edx]
add eax, dword [ebp - 0x83c]
mov ecx, dword [ebp - 0x844]
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x844]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x844]
add ecx, eax
mov dword [ebp - 0x844], ecx
jmp 0x42ddaf
cmp dword [ebp - 4], 0
je 0x42df60
mov edx, dword [ebp - 4]
push edx
call fcn.0042b4ab
add esp, 4
mov eax, dword [ebp - 0x874]
mov esp, ebp
pop ebp
ret