Function at 0x42bd10
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 0x62875c
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 - 0x62c], ax
push 0x206
push 0
lea ecx, [ebp - 0x62a]
push ecx
call fcn.005b4de0
add esp, 0xc
xor edx, edx
mov word [ebp - 0xa44], dx
push 0x206
push 0
lea eax, [ebp - 0xa42]
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 0x641b9c
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 - 0xa44]
push ecx
push 0x641ba8
push 0x641bac
push 0x641bc4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0xa44]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42be75
lea eax, [ebp - 0xa44]
push eax
mov ecx, dword [ebp - 0xaa0]
add ecx, 0x24
call fcn.0040e570
mov ecx, dword [ebp - 0xaa0]
mov byte [ecx + 0x21], 1
jmp 0x42c168
push 0
push 0x2b
lea edx, [ebp - 0x62c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x641bd4
lea eax, [ebp - 0x62c]
push eax
call fcn.005b4d90
add esp, 8
push 0x641bd8
lea ecx, [ebp - 0x62c]
push ecx
call fcn.005b4d90
add esp, 8
push 0x641bdc
lea edx, [ebp - 0x62c]
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 - 0x62c]
push edx
call fcn.005b4d90
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa80]
call fcn.0040e530
push 0x641be0
lea eax, [ebp - 0x62c]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0x62c]
push ecx
push 0x104
lea edx, [ebp - 0xa44]
push edx
push 0x641bec
push 0x641bf0
push 0x641c08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42bf90
lea ecx, [ebp - 0xa44]
push ecx
mov ecx, dword [ebp - 0xaa0]
add ecx, 0x24
call fcn.0040e570
mov edx, dword [ebp - 0xaa0]
mov byte [edx + 0x21], 1
jmp 0x42c168
xor eax, eax
mov word [ebp - 0x83c], ax
push 0x206
push 0
lea ecx, [ebp - 0x83a]
push ecx
call fcn.005b4de0
add esp, 0xc
push 0x641c18
lea edx, [ebp - 0x83c]
push edx
call fcn.005b4dbe
add esp, 8
push 0x641c2c
lea eax, [ebp - 0x83c]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push 0
lea edx, [ebp - 0x83c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x630], eax
cmp dword [ebp - 0x630], 0
jne 0x42c07c
mov dword [ebp - 0xa48], 0x104
lea eax, [ebp - 0xa48]
push eax
lea ecx, [ebp - 0xa44]
push ecx
push 0
push 0
push 0x641c30
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x630], eax
cmp dword [ebp - 0x630], 0
jne 0x42c07c
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c07c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0xa44]
push edx
mov ecx, dword [ebp - 0xaa0]
add ecx, 0x24
call fcn.0040e570
mov eax, dword [ebp - 0xaa0]
mov byte [eax + 0x21], 1
jmp 0x42c168
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea eax, [ebp - 0x21c]
push eax
call fcn.0040e2a0
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
push 2
lea edx, [ebp - 0xa9c]
push edx
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 eax, [ebp - 0x21c]
push eax
push 0x641c48
lea ecx, [ebp - 0x424]
push ecx
call fcn.005b50ec
add esp, 0x28
lea ecx, [ebp - 0xa9c]
call fcn.0040e530
lea edx, [ebp - 0x424]
push edx
push 0x104
lea eax, [ebp - 0xa44]
push eax
push 0x641c54
push 0x641c58
push 0x641c70
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0xa44]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c15e
lea edx, [ebp - 0xa44]
push edx
mov ecx, dword [ebp - 0xaa0]
add ecx, 0x24
call fcn.0040e570
mov eax, dword [ebp - 0xaa0]
mov byte [eax + 0x21], 1
jmp 0x42c168
mov ecx, dword [ebp - 0xaa0]
mov byte [ecx + 0x21], 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