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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4c
mov eax, dword [0x580280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4c], ecx
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.00486c20
add esp, 0xc
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00486c20
add esp, 0xc
push 0
push 0x2b
lea ecx, [ebp - 0x420]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x54e47c
lea edx, [ebp - 0x420]
push edx
call fcn.00486ab7
add esp, 8
push 0x54e480
lea eax, [ebp - 0x420]
push eax
call fcn.00486ab7
add esp, 8
push 0x54e4a0
lea ecx, [ebp - 0x420]
push ecx
call fcn.00486ab7
add esp, 8
push 0x54e4a4
lea edx, [ebp - 0x420]
push edx
call fcn.00486ab7
add esp, 8
push 0x54e4c4
lea eax, [ebp - 0x420]
push eax
call fcn.00486ab7
add esp, 8
lea ecx, [ebp - 0x420]
push ecx
push 0x104
mov edx, dword [ebp - 0xa4c]
push edx
push 0x54e4d0
push 0x54e4d4
push 0x54e4ec
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0xa4c]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00486ae5
add esp, 8
push 0x54e4fc
lea edx, [ebp - 0x210]
push edx
call fcn.00486ab7
add esp, 8
push 0x54e514
lea eax, [ebp - 0x210]
push eax
call fcn.00486ab7
add esp, 8
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d124
xor edx, edx
mov word [ebp - 0x838], dx
push 0x206
push 0
lea eax, [ebp - 0x836]
push eax
call fcn.00486c20
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x838]
push edx
call fcn.00486ae5
add esp, 8
push 0x54e518
lea eax, [ebp - 0x838]
push eax
call fcn.00486ab7
add esp, 8
lea ecx, [ebp - 0x838]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d124
jmp 0x42d2f1
xor edx, edx
mov word [ebp - 0x630], dx
push 0x206
push 0
lea eax, [ebp - 0x62e]
push eax
call fcn.00486c20
add esp, 0xc
push 0x54e540
lea ecx, [ebp - 0x630]
push ecx
call fcn.00486ae5
add esp, 8
push 0x54e554
lea edx, [ebp - 0x630]
push edx
call fcn.00486ab7
add esp, 8
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x630]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x42d295
mov dword [ebp - 0x83c], 0x104
lea edx, [ebp - 0x83c]
push edx
mov eax, dword [ebp - 0xa4c]
push eax
push 0
push 0
push 0x54e574
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x42d295
mov edx, dword [ebp - 0xa4c]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.00486ae5
add esp, 8
push 0x54e58c
lea ecx, [ebp - 0x210]
push ecx
call fcn.00486ab7
add esp, 8
push 0x54e5a4
lea edx, [ebp - 0x210]
push edx
call fcn.00486ab7
add esp, 8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d295
xor ecx, ecx
mov word [ebp - 0xa48], cx
push 0x206
push 0
lea edx, [ebp - 0xa46]
push edx
call fcn.00486c20
add esp, 0xc
push 0x54e5a8
lea eax, [ebp - 0xa48]
push eax
call fcn.00486ae5
add esp, 8
push 0x54e5d0
lea ecx, [ebp - 0xa48]
push ecx
call fcn.00486ab7
add esp, 8
lea edx, [ebp - 0xa48]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42d295
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42d2f1
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x2b
mov edx, dword [ebp - 0xa4c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x54e5f8
mov eax, dword [ebp - 0xa4c]
push eax
call fcn.00486ab7
add esp, 8
push 0x54e5fc
mov ecx, dword [ebp - 0xa4c]
push ecx
call fcn.00486ab7
add esp, 8
push 0x54e61c
mov edx, dword [ebp - 0xa4c]
push edx
call fcn.00486ab7
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00486c08
mov esp, ebp
pop ebp
ret