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

Disassembly:
push 0xffffffffffffffff
push 0x6507fc
mov eax, dword fs:[0]
push eax
mov eax, 0x303b0
call fcn.0062ab60
mov eax, dword [0x6af168]
xor eax, esp
mov dword [esp + 0x303a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6af168]
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.004e60f0
xor ebx, ebx
test al, al
je 0x56d7a0
push 2
mov edi, 0xf
push 0x67ebfc
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.00402300
lea esi, [esp + 0x44]
mov dword [esp + 0x303cc], ebx
call fcn.004e61a0
lea edx, [esp + 0x60]
lea esi, [esp + 0x7c]
mov byte [esp + 0x303cc], 1
call fcn.004e7130
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x56d71b
mov ecx, dword [eax + 4]
jmp 0x56d71e
lea ecx, [eax + 4]
lea edx, [esp + 0xb4]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
cmp al, bl
jne 0x56d725
cmp dword [esp + 0x94], esi
jb 0x56d74c
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0062493b
add esp, 4
cmp dword [esp + 0x5c], esi
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
jb 0x56d774
mov edx, dword [esp + 0x48]
push edx
call fcn.0062493b
add esp, 4
mov dword [esp + 0x303cc], 0xffffffff
cmp dword [esp + 0x78], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
jb 0x56d7b3
mov eax, dword [esp + 0x64]
push eax
call fcn.0062493b
add esp, 4
jmp 0x56d7b3
push 0x104
lea ecx, [esp + 0xb8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0xb4]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x56d7c0
sub eax, edx
cmp byte [esp + eax + 0xb3], 0x5c
je 0x56d7f4
lea edi, [esp + 0xb4]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
cmp al, bl
jne 0x56d7e0
mov dx, word [0x679af8]
mov word [edi], dx
lea eax, [esp + 0xb4]
add eax, 0xffffffff
mov edi, edi
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x56d800
mov ecx, dword [str.popcreg.dat]
mov edx, dword [0x683800]
mov dword [eax], ecx
mov ecx, dword [0x683804]
mov dword [eax + 4], edx
lea edx, [esp + 0xb4]
push 0x6792dc
push edx
mov dword [eax + 8], ecx
call fcn.006262fc
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x56d96f
push esi
push 1
lea eax, [esp + 0x20]
push 2
push eax
call fcn.00626e1f
add esp, 0x10
cmp eax, 1
jne 0x56d966
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.00626e1f
push esi
push 1
lea edx, [esp + 0x30]
push 2
push edx
call fcn.00626e1f
add esp, 0x20
cmp eax, 1
jne 0x56d966
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.00626e1f
push esi
push 1
lea ecx, [esp + 0x30]
push 2
push ecx
call fcn.00626e1f
add esp, 0x20
cmp eax, 1
jne 0x56d966
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.00626e1f
push esi
push 1
lea eax, [esp + 0x44]
push 2
push eax
call fcn.00626e1f
add esp, 0x20
cmp eax, 1
jne 0x56d966
push esi
push eax
lea ecx, [esp + 0x30]
push 2
push ecx
call fcn.00626e1f
add esp, 0x10
cmp eax, 1
jne 0x56d966
lea eax, [esp + 0x3bc]
lea ecx, [ebp + 0x44]
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x56d925
sub eax, edi
push eax
mov eax, dword [ecx + 0x14]
lea edx, [esp + 0x3c0]
push edx
push eax
push ebx
call fcn.00443b30
test eax, eax
je 0x56db8c
push esi
push 1
lea ecx, [esp + 0x20]
push 2
push ecx
call fcn.00626e1f
add esp, 0x10
cmp eax, 1
je 0x56d85e
push esi
call fcn.006261bc
add esp, 4
add ebp, 0x7c
push ebp
lea edx, [esp + 0x48]
push str.SOFTWARE_
push edx
call fcn.0044cec0
add esp, 0xc
lea ecx, [esp + 0x98]
push ecx
mov esi, eax
mov dword [esp + 0x303d0], 2
call fcn.004e7770
add esp, 4
mov ebp, 0x10
mov byte [esp + 0x303cc], 4
cmp dword [esp + 0x5c], ebp
jb 0x56d9c2
mov edx, dword [esp + 0x48]
push edx
call fcn.0062493b
add esp, 4
cmp dword [esp + 0xb0], ebp
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
jae 0x56d9e9
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x24]
push ecx
push 0x20006
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x56db49
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 esi, 0x100
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], esi
call edi
test eax, eax
jne 0x56da74
mov eax, dword [esp + 0x1c]
mov byte [esp + eax + 0x2bc], bl
lea eax, [esp + 0x2bc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x56da57
sub eax, edx
push eax
lea ecx, [esp + 0x2c0]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.00402300
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], 1
mov dword [esp + 0x34], esi
call edi
test eax, eax
jne 0x56dad5
mov eax, dword [esp + 0x1c]
mov byte [esp + eax + 0x1bc], bl
lea eax, [esp + 0x1bc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x56dab8
sub eax, edx
push eax
lea ecx, [esp + 0x1c0]
push ecx
mov ecx, dword [esp + 0x44]
call fcn.00402300
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 0x56db0c
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 0x56db3e
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]
cmp dword [esp + 0xb0], ebp
jb 0x56db62
mov eax, dword [esp + 0x9c]
push eax
call fcn.0062493b
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.00624940
add esp, 0x303bc
ret 0xc
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x103bc]
push edx
call fcn.004022b0
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x203bc]
push eax
call fcn.004022b0
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.006261bc
jmp 0x56db5f