Function at 0x42b890
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62871e
mov eax, dword fs:[0]
push eax
sub esp, 0xaa8
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xaa0], ecx
xor eax, eax
mov word [ebp - 0x834], ax
push 0x206
push 0
lea ecx, [ebp - 0x832]
push ecx
call fcn.005b4de0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x62c], dx
push 0x206
push 0
lea eax, [ebp - 0x62a]
push eax
call fcn.005b4de0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x424], cx
push 0x206
push 0
lea edx, [ebp - 0x422]
push edx
call fcn.005b4de0
add esp, 0xc
push 2
lea eax, [ebp - 0xa64]
push eax
call fcn.00412530
mov ecx, eax
call fcn.0040c7b0
mov dword [ebp - 0xaa4], eax
mov ecx, dword [ebp - 0xaa4]
mov dword [ebp - 0xaa8], ecx
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0xaa8]
sub esp, 0x1c
mov ecx, 7
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xaa0]
add ecx, 0xb0
call fcn.0040e5d0
push eax
push 0x641ab8
lea edx, [ebp - 0x424]
push edx
call fcn.005b50ec
add esp, 0x28
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa64]
call fcn.0040e530
lea eax, [ebp - 0x424]
push eax
push 0x104
lea ecx, [ebp - 0x62c]
push ecx
push 0x641ac4
push 0x641ac8
push 0x641ae0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x62c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b9f5
lea eax, [ebp - 0x62c]
push eax
mov ecx, dword [ebp - 0xaa0]
add ecx, 0x40
call fcn.0040e570
mov ecx, dword [ebp - 0xaa0]
mov byte [ecx + 0x20], 1
jmp 0x42bcf2
push 0
push 0x2b
lea edx, [ebp - 0x834]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x641af0
lea eax, [ebp - 0x834]
push eax
call fcn.005b4d90
add esp, 8
push 0x641af4
lea ecx, [ebp - 0x834]
push ecx
call fcn.005b4d90
add esp, 8
push 0x641af8
lea edx, [ebp - 0x834]
push edx
call fcn.005b4d90
add esp, 8
push 3
lea eax, [ebp - 0xa80]
push eax
call fcn.00412530
mov ecx, eax
call fcn.0040c7b0
mov dword [ebp - 0xaac], eax
mov ecx, dword [ebp - 0xaac]
mov dword [ebp - 0xab0], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xab0]
call fcn.0040e5d0
push eax
lea edx, [ebp - 0x834]
push edx
call fcn.005b4d90
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa80]
call fcn.0040e530
push 0x641afc
lea eax, [ebp - 0x834]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0x834]
push ecx
push 0x104
lea edx, [ebp - 0x62c]
push edx
push 0x641b08
push 0x641b0c
push 0x641b24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42bb10
lea ecx, [ebp - 0x62c]
push ecx
mov ecx, dword [ebp - 0xaa0]
add ecx, 0x40
call fcn.0040e570
mov edx, dword [ebp - 0xaa0]
mov byte [edx + 0x20], 1
jmp 0x42bcf2
xor eax, eax
mov word [ebp - 0xa44], ax
push 0x206
push 0
lea ecx, [ebp - 0xa42]
push ecx
call fcn.005b4de0
add esp, 0xc
push 0x641b34
lea edx, [ebp - 0xa44]
push edx
call fcn.005b4dbe
add esp, 8
push 0x641b48
lea eax, [ebp - 0xa44]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push 0
lea edx, [ebp - 0xa44]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x838], 0
jne 0x42bbfc
mov dword [ebp - 0xa48], 0x104
lea eax, [ebp - 0xa48]
push eax
lea ecx, [ebp - 0x62c]
push ecx
push 0
push 0
push 0x641b4c
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x838], 0
jne 0x42bbfc
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42bbfc
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x62c]
push edx
mov ecx, dword [ebp - 0xaa0]
add ecx, 0x40
call fcn.0040e570
mov eax, dword [ebp - 0xaa0]
mov byte [eax + 0x20], 1
jmp 0x42bcf2
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xaa0]
mov byte [edx + 0x20], 0
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0040e2a0
add esp, 8
xor edx, edx
mov word [eax + 2], dx
push 2
lea eax, [ebp - 0xa9c]
push eax
call fcn.00412530
mov ecx, eax
call fcn.0040c7b0
mov dword [ebp - 0xab4], eax
mov esi, dword [ebp - 0xab4]
sub esp, 0x1c
mov ecx, 7
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x21c]
push ecx
push 0x641b64
lea edx, [ebp - 0x424]
push edx
call fcn.005b50ec
add esp, 0x28
lea ecx, [ebp - 0xa9c]
call fcn.0040e530
lea eax, [ebp - 0x424]
push eax
push 0x104
lea ecx, [ebp - 0x62c]
push ecx
push 0x641b70
push 0x641b74
push 0x641b8c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x62c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42bce8
lea eax, [ebp - 0x62c]
push eax
mov ecx, dword [ebp - 0xaa0]
add ecx, 0x40
call fcn.0040e570
mov ecx, dword [ebp - 0xaa0]
mov byte [ecx + 0x20], 1
jmp 0x42bcf2
mov edx, dword [ebp - 0xaa0]
mov byte [edx + 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret