Function at 0x5124e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1080
call fcn.0049d0d0
mov eax, dword [0x5dca44]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1078], 0xd
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x1074], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x107c], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x3c], 0
push 0x27
push 0
lea eax, [ebp - 0x3b]
push eax
call fcn.0049d100
add esp, 0xc
mov byte [ebp - 0x1070], 0
push 0x1000
push 0
lea ecx, [ebp - 0x106f]
push ecx
call fcn.0049d100
add esp, 0xc
mov dword [ebp - 8], 0
push 0
call fcn.00512bd0
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
lea edx, [ebp - 8]
push edx
push 0x20019
push 0
push 0x5c5d70
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5126ac
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x48], 0x27
mov dword [ebp - 0x107c], 0x1000
lea ecx, [ebp - 0x107c]
push ecx
lea edx, [ebp - 0x1070]
push edx
push 0
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x5126ac
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
push 0x5c5d90
lea edx, [ebp - 0x3c]
push edx
call fcn.0049daa0
add esp, 8
test eax, eax
je 0x512696
lea eax, [ebp - 0x3c]
test eax, eax
je 0x51265b
mov ecx, 0x5c5da0
test ecx, ecx
je 0x51265b
push 0x5c5db0
lea edx, [ebp - 0x3c]
push edx
call fcn.0049fe50
add esp, 8
test eax, eax
je 0x512696
cmp dword [ebp + 0xc], 0
je 0x512675
lea eax, [ebp - 0x3c]
push eax
call fcn.0049fd40
add esp, 4
mov dword [ebp - 0x1080], eax
jmp 0x512681
mov ecx, dword [ebp - 0x107c]
mov dword [ebp - 0x1080], ecx
mov edx, dword [ebp - 0x58]
add edx, dword [ebp - 0x1080]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], 0x27
mov dword [ebp - 0x107c], 0x1000
jmp 0x5125e8
mov ecx, dword [0x62a2f8]
mov dword [ebp - 0x64], ecx
jmp 0x5126c0
mov edx, dword [ebp - 0x64]
add edx, 4
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
cmp dword [eax], 0
je 0x51277d
push 0x5f
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
push edx
call fcn.0049edd0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x512778
cmp dword [ebp - 0xc], 0
je 0x512778
mov eax, 0x5c5dc0
test eax, eax
je 0x512778
mov ecx, dword [ebp - 0x1078]
push ecx
push 0x5c5dd0
mov edx, dword [ebp - 0xc]
push edx
call fcn.0049d9d9
add esp, 0xc
test eax, eax
jne 0x512778
mov eax, dword [ebp - 0x64]
cmp dword [eax], 0
je 0x51274a
mov ecx, 0x5c5de0
test ecx, ecx
je 0x51274a
mov edx, dword [ebp - 0x1078]
add edx, 2
push edx
push 0x5c5df0
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
push ecx
call fcn.0049d9d9
add esp, 0xc
test eax, eax
je 0x512778
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x1078]
movsx eax, byte [edx]
cmp eax, 0x3d
jne 0x512778
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
push edx
call fcn.0049fd40
add esp, 4
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
jmp 0x5126b7
cmp dword [ebp - 0x50], 0
jne 0x51278a
xor eax, eax
jmp 0x512a2b
mov ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00509c00
add esp, 8
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x10], 0
je 0x5128af
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0x27
mov dword [ebp - 0x107c], 0x1000
lea ecx, [ebp - 0x107c]
push ecx
lea edx, [ebp - 0x1070]
push edx
push 0
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x5128a5
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
push 0x5c5e00
lea edx, [ebp - 0x3c]
push edx
call fcn.0049daa0
add esp, 8
test eax, eax
je 0x51288f
lea eax, [ebp - 0x3c]
test eax, eax
je 0x51283b
mov ecx, 0x5c5e10
test ecx, ecx
je 0x51283b
push 0x5c5e20
lea edx, [ebp - 0x3c]
push edx
call fcn.0049fe50
add esp, 8
test eax, eax
je 0x51288f
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x54]
jbe 0x512852
mov ecx, dword [ebp - 0x5c]
mov byte [ecx], 0x3b
mov edx, dword [ebp - 0x5c]
add edx, 1
mov dword [ebp - 0x5c], edx
cmp dword [ebp + 0xc], 0
je 0x51286a
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0049f6a0
add esp, 8
jmp 0x51287d
lea edx, [ebp - 0x1070]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0049f6a0
add esp, 8
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0049fd40
add esp, 4
add eax, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x48], 0x27
mov dword [ebp - 0x107c], 0x1000
jmp 0x5127c8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x62a2f8]
mov dword [ebp - 0x64], eax
jmp 0x5128c2
mov ecx, dword [ebp - 0x64]
add ecx, 4
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
cmp dword [edx], 0
je 0x512a16
push 0x5f
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
push ecx
call fcn.0049edd0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x512a11
cmp dword [ebp - 0xc], 0
je 0x512a11
mov edx, 0x5c5e30
test edx, edx
je 0x512a11
mov eax, dword [ebp - 0x1078]
push eax
push str._LICENSE_FILE
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0049d9d9
add esp, 0xc
test eax, eax
jne 0x512a11
mov edx, dword [ebp - 0x64]
cmp dword [edx], 0
je 0x512958
mov eax, 0x5c5e50
test eax, eax
je 0x512958
mov ecx, dword [ebp - 0x1078]
add ecx, 2
push ecx
push 0x5c5e60
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
push eax
call fcn.0049d9d9
add esp, 0xc
test eax, eax
je 0x512a11
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x1078]
movsx edx, byte [ecx]
cmp edx, 0x3d
jne 0x512a11
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x54]
jbe 0x512984
mov ecx, dword [ebp - 0x5c]
mov byte [ecx], 0x3b
mov edx, dword [ebp - 0x5c]
add edx, 1
mov dword [ebp - 0x5c], edx
cmp dword [ebp + 0xc], 0
jne 0x5129c9
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1078]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
cmp edx, 0x3d
je 0x5129ac
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x5129b7
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x512996
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0049f6a0
add esp, 8
jmp 0x5129ff
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0xc]
sub eax, dword [edx]
add eax, dword [ebp - 0x1078]
push eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0049b230
add esp, 0xc
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0xc]
sub edx, dword [ecx]
add edx, dword [ebp - 0x1078]
mov eax, dword [ebp - 0x5c]
mov byte [eax + edx], 0
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0049fd40
add esp, 4
add eax, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
jmp 0x5128b9
cmp dword [ebp - 0x60], 0
je 0x512a28
mov edx, dword [ebp - 0x60]
push edx
call fcn.00509e30
add esp, 4
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049c81f
mov esp, ebp
pop ebp
ret