Function at 0x4518c0
Capabilities:
Get common file path
Query or enumerate registry value
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x78d00c
mov eax, dword fs:[0]
push eax
mov eax, 0x303b0
call fcn.00660af0
mov eax, dword [0x867e6c]
xor eax, esp
mov dword [esp + 0x303a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x303c4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x303d8]
mov ebp, dword [esp + 0x303d4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x303dc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], eax
call fcn.00437cf0
xor ebx, ebx
test al, al
je 0x451a0c
push 2
mov edi, 0xf
push 0x81d590
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.004016e0
lea esi, [esp + 0x44]
mov dword [esp + 0x303cc], ebx
call fcn.00438580
lea edx, [esp + 0x60]
lea esi, [esp + 0x7c]
mov byte [esp + 0x303cc], 1
call fcn.004394f0
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x45198b
mov ecx, dword [eax + 4]
jmp 0x45198e
lea ecx, [eax + 4]
lea edx, [esp + 0xb4]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x451995
cmp dword [esp + 0x94], esi
jb 0x4519b8
mov ecx, dword [esp + 0x80]
push ecx
call fcn.006441c7
add esp, 4
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
cmp dword [esp + 0x5c], esi
jb 0x4519e0
mov edx, dword [esp + 0x48]
push edx
call fcn.006441c7
add esp, 4
mov dword [esp + 0x303cc], 0xffffffff
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x78], esi
jb 0x451a1f
mov eax, dword [esp + 0x64]
push eax
call fcn.006441c7
add esp, 4
jmp 0x451a1f
push 0x104
lea ecx, [esp + 0xb8]
push ecx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0xb4]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x451a30
sub eax, edx
cmp byte [esp + eax + 0xb3], 0x5c
je 0x451a62
lea edi, [esp + 0xb4]
dec edi
jmp 0x451a50
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x451a50
mov dx, word [0x81d740]
mov word [edi], dx
lea eax, [esp + 0xb4]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x451a70
mov ecx, dword [str.popcreg.dat]
mov edx, dword [0x81da7c]
mov dword [eax], ecx
mov ecx, dword [0x81da80]
mov dword [eax + 4], edx
lea edx, [esp + 0xb4]
push 0x81da84
push edx
mov dword [eax + 8], ecx
call fcn.00644aa4
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x451bdb
push esi
push 1
lea eax, [esp + 0x20]
push 2
push eax
call fcn.00647522
add esp, 0x10
cmp eax, 1
jne 0x451bd2
movzx eax, word [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x3c4]
push 1
push ecx
mov byte [esp + eax + 0x3cc], bl
call fcn.00647522
push esi
push 1
lea edx, [esp + 0x30]
push 2
push edx
call fcn.00647522
add esp, 0x20
cmp eax, 1
jne 0x451bd2
movzx eax, word [esp + 0x18]
push esi
push eax
mov byte [esp + eax + 0x103c4], bl
lea eax, [esp + 0x103c4]
push 1
push eax
call fcn.00647522
push esi
push 1
lea ecx, [esp + 0x30]
push 2
push ecx
call fcn.00647522
add esp, 0x20
cmp eax, 1
jne 0x451bd2
movzx eax, word [esp + 0x18]
push esi
push eax
lea edx, [esp + 0x203c4]
push 1
push edx
mov byte [esp + eax + 0x203cc], bl
call fcn.00647522
push esi
push 1
lea eax, [esp + 0x44]
push 2
push eax
call fcn.00647522
add esp, 0x20
cmp eax, 1
jne 0x451bd2
push esi
push eax
lea ecx, [esp + 0x30]
push 2
push ecx
call fcn.00647522
add esp, 0x10
cmp eax, 1
jne 0x451bd2
lea eax, [esp + 0x3bc]
lea ecx, [ebp + 0x5c]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x451b93
sub eax, edi
push eax
mov eax, dword [ecx + 0x14]
lea edx, [esp + 0x3c0]
push edx
push eax
push ebx
call fcn.00402330
test eax, eax
je 0x451df7
push esi
push 1
lea ecx, [esp + 0x20]
push 2
push ecx
call fcn.00647522
add esp, 0x10
cmp eax, 1
je 0x451acc
push esi
call fcn.00644dd9
add esp, 4
add ebp, 0x94
push ebp
mov edi, str.SOFTWARE_
lea esi, [esp + 0x48]
call fcn.00403060
add esp, 4
mov edi, eax
lea eax, [esp + 0x98]
mov dword [esp + 0x303cc], 2
call fcn.00439630
mov esi, 0x10
mov byte [esp + 0x303cc], 4
cmp dword [esp + 0x5c], esi
jb 0x451c2c
mov edx, dword [esp + 0x48]
push edx
call fcn.006441c7
add esp, 4
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0xb0], esi
jae 0x451c53
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x24]
push ecx
push 0x20006
push ebx
push eax
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x451db4
mov edi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c0]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.RegName
mov ebp, 1
mov esi, 0x100
push edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], esi
call edi
test eax, eax
jne 0x451cdd
mov eax, dword [esp + 0x1c]
mov byte [esp + eax + 0x2bc], bl
lea eax, [esp + 0x2bc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x451cc2
sub eax, edx
push eax
lea ecx, [esp + 0x2c0]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.004016e0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x1c0]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.RegCode
push edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], esi
call edi
test eax, eax
jne 0x451d3b
mov eax, dword [esp + 0x1c]
mov byte [esp + eax + 0x1bc], bl
lea eax, [esp + 0x1bc]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x451d20
sub eax, edx
push eax
lea ecx, [esp + 0x1c0]
push ecx
mov ecx, dword [esp + 0x44]
call fcn.004016e0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.TimesPlayed
mov esi, 4
push edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
call edi
test eax, eax
jne 0x451d72
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.TimesExecuted
push edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
call edi
test eax, eax
jne 0x451da4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov esi, 0x10
cmp dword [esp + 0xb0], esi
jb 0x451dcd
mov eax, dword [esp + 0x9c]
push eax
call fcn.006441c7
add esp, 4
mov ecx, dword [esp + 0x303c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x303a8]
xor ecx, esp
call fcn.00643db8
add esp, 0x303bc
ret 0xc
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x103bc]
push edx
call fcn.00404a10
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x203bc]
push eax
call fcn.00404a10
movsx ecx, word [esp + 0x2c]
mov edx, dword [esp + 0x40]
movsx eax, word [esp + 0x28]
mov dword [edx], ecx
mov ecx, dword [esp + 0x34]
push esi
mov dword [ecx], eax
call fcn.00644dd9
jmp 0x451dca