Function at 0x4510f0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1088
call fcn.00431bd0
mov eax, dword [0x5274d0]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1080], 0xd
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x107c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x1084], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x40], 0
push 0x27
push 0
lea eax, [ebp - 0x3f]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov byte [ebp - 0x1078], 0
push 0x1000
push 0
lea ecx, [ebp - 0x1077]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0xc], 0
push 0
call fcn.00451880
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x68], edx
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x517634
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4512e4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x50], 0x27
mov dword [ebp - 0x1084], 0x1000
lea edx, [ebp - 0x1084]
push edx
lea eax, [ebp - 0x1078]
push eax
push 0
push 0
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4512e4
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
push 0
push 0x517654
lea eax, [ebp - 0x40]
push eax
call fcn.004018b0
add esp, 0xc
test eax, eax
je 0x4512ce
lea ecx, [ebp - 0x40]
test ecx, ecx
je 0x451291
mov edx, 0x517664
test edx, edx
je 0x451291
push 0x517674
lea eax, [ebp - 0x40]
push eax
call sub.MSVCR120.dll_strcmp
add esp, 8
test eax, eax
je 0x4512ce
cmp dword [ebp + 0xc], 0
je 0x4512ad
push 0
lea ecx, [ebp - 0x40]
push ecx
call fcn.00401610
add esp, 8
mov dword [ebp - 0x1088], eax
jmp 0x4512b9
mov edx, dword [ebp - 0x1084]
mov dword [ebp - 0x1088], edx
mov eax, dword [ebp - 0x60]
add eax, dword [ebp - 0x1088]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x58]
add ecx, 1
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], 0x27
mov dword [ebp - 0x1084], 0x1000
jmp 0x45121c
mov edx, dword [ebp - 0x68]
mov dword [ebp - 8], edx
jmp 0x451300
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 1]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x4513d3
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4513d3
lea edx, [ebp - 8]
mov dword [ebp - 0x70], edx
push 0
push 0x5f
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ecx
call fcn.00401680
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4513ce
cmp dword [ebp - 0x10], 0
je 0x4513ce
mov edx, 0x517684
test edx, edx
je 0x4513ce
mov eax, dword [ebp - 0x1080]
push eax
push 0x517694
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCR120.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x4513ce
mov edx, dword [ebp - 0x70]
cmp dword [edx], 0
je 0x45139e
mov eax, 0x5176a4
test eax, eax
je 0x45139e
mov ecx, dword [ebp - 0x1080]
add ecx, 2
push ecx
push 0x5176b4
mov edx, dword [ebp - 0x70]
mov eax, dword [edx]
push eax
call sub.MSVCR120.dll_strncmp
add esp, 0xc
test eax, eax
je 0x4513ce
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x1080]
movsx edx, byte [ecx]
cmp edx, 0x3d
jne 0x4513ce
push 0
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ecx
call fcn.00401610
add esp, 8
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
jmp 0x4512ec
cmp dword [ebp - 0x58], 0
jne 0x4513f2
cmp dword [ebp - 0x6c], 0
je 0x4513f2
mov eax, dword [ebp - 0x6c]
push eax
call fcn.0043c5b0
add esp, 4
xor eax, eax
jmp 0x4516ce
mov ecx, dword [ebp - 0x60]
add ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0043c360
add esp, 8
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x14], 0
je 0x45151f
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x50], 0x27
mov dword [ebp - 0x1084], 0x1000
lea ecx, [ebp - 0x1084]
push ecx
lea edx, [ebp - 0x1078]
push edx
push 0
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x451515
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
push 0
push 0x5176c4
lea edx, [ebp - 0x40]
push edx
call fcn.004018b0
add esp, 0xc
test eax, eax
je 0x4514ff
lea eax, [ebp - 0x40]
test eax, eax
je 0x4514a5
mov ecx, 0x5176d4
test ecx, ecx
je 0x4514a5
push 0x5176e4
lea edx, [ebp - 0x40]
push edx
call sub.MSVCR120.dll_strcmp
add esp, 8
test eax, eax
je 0x4514ff
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x5c]
jbe 0x4514bc
mov ecx, dword [ebp - 0x64]
mov byte [ecx], 0x3b
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
cmp dword [ebp + 0xc], 0
je 0x4514d6
push 0
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call section..text
add esp, 0xc
jmp 0x4514eb
push 0
lea edx, [ebp - 0x1078]
push edx
mov eax, dword [ebp - 0x64]
push eax
call section..text
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00401610
add esp, 8
add eax, dword [ebp - 0x64]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x50], 0x27
mov dword [ebp - 0x1084], 0x1000
jmp 0x451430
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 8], eax
jmp 0x45153b
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 8]
lea eax, [edx + eax + 1]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4516a9
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
test edx, edx
je 0x4516a9
lea eax, [ebp - 8]
mov dword [ebp - 0x70], eax
push 0
push 0x5f
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx]
push edx
call fcn.00401680
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4516a4
cmp dword [ebp - 0x10], 0
je 0x4516a4
mov eax, 0x5176f4
test eax, eax
je 0x4516a4
mov ecx, dword [ebp - 0x1080]
push ecx
push str._LICENSE_FILE
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR120.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x4516a4
mov eax, dword [ebp - 0x70]
cmp dword [eax], 0
je 0x4515e5
mov ecx, 0x517714
test ecx, ecx
je 0x4515e5
mov edx, dword [ebp - 0x1080]
add edx, 2
push edx
push 0x517724
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ecx
call sub.MSVCR120.dll_strncmp
add esp, 0xc
test eax, eax
je 0x4516a4
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x1080]
movsx eax, byte [edx]
cmp eax, 0x3d
jne 0x4516a4
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x5c]
jbe 0x451611
mov edx, dword [ebp - 0x64]
mov byte [edx], 0x3b
mov eax, dword [ebp - 0x64]
add eax, 1
mov dword [ebp - 0x64], eax
cmp dword [ebp + 0xc], 0
jne 0x451658
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x1080]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0x3d
je 0x451639
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
cmp edx, 0x20
jne 0x451644
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x451623
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x64]
push edx
call section..text
add esp, 0xc
jmp 0x451690
push 0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax]
add ecx, dword [ebp - 0x1080]
push ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00401150
add esp, 0x10
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x10]
sub eax, dword [edx]
add eax, dword [ebp - 0x1080]
mov ecx, dword [ebp - 0x64]
mov byte [ecx + eax], 0
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00401610
add esp, 8
add eax, dword [ebp - 0x64]
mov dword [ebp - 0x64], eax
jmp 0x451527
cmp dword [ebp - 0x6c], 0
je 0x4516bb
mov eax, dword [ebp - 0x6c]
push eax
call fcn.0043c5b0
add esp, 4
cmp dword [ebp - 0x44], 0
je 0x4516cb
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00431a84
mov esp, ebp
pop ebp
ret