Function at 0x460680
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, 0xa40
mov eax, dword [0x47c170]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xa40], ecx
mov word [ebp - 0x828], 0
push 0x206
push 0
lea eax, [ebp - 0x826]
push eax
call fcn.00415da0
add esp, 0xc
mov word [ebp - 0x620], 0
push 0x206
push 0
lea ecx, [ebp - 0x61e]
push ecx
call fcn.00415da0
add esp, 0xc
mov word [ebp - 0x418], 0
push 0x206
push 0
lea edx, [ebp - 0x416]
push edx
call fcn.00415da0
add esp, 0xc
push 0x47539c
mov ecx, dword [ebp - 0xa40]
add ecx, 0xb0
call fcn.00401200
push eax
push 0x4753c0
lea eax, [ebp - 0x418]
push eax
call fcn.00416420
add esp, 0x10
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0x620]
push edx
push 0x4753cc
push 0x4753d0
push 0x4753e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46077e
lea ecx, [ebp - 0x620]
push ecx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x40
call fcn.004011c0
mov edx, dword [ebp - 0xa40]
mov byte [edx + 0x20], 1
jmp 0x460a01
push 0
push 0x2b
lea eax, [ebp - 0x828]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4753f8
lea ecx, [ebp - 0x828]
push ecx
call fcn.004161e3
add esp, 8
push 0x4753fc
lea edx, [ebp - 0x828]
push edx
call fcn.004161e3
add esp, 8
push 0x475418
lea eax, [ebp - 0x828]
push eax
call fcn.004161e3
add esp, 8
push 0x47541c
lea ecx, [ebp - 0x828]
push ecx
call fcn.004161e3
add esp, 8
push 0x475430
lea edx, [ebp - 0x828]
push edx
call fcn.004161e3
add esp, 8
lea eax, [ebp - 0x828]
push eax
push 0x104
lea ecx, [ebp - 0x620]
push ecx
push 0x47543c
push 0x475440
push 0x475458
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x620]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x460852
lea eax, [ebp - 0x620]
push eax
mov ecx, dword [ebp - 0xa40]
add ecx, 0x40
call fcn.004011c0
mov ecx, dword [ebp - 0xa40]
mov byte [ecx + 0x20], 1
jmp 0x460a01
mov word [ebp - 0xa38], 0
push 0x206
push 0
lea edx, [ebp - 0xa36]
push edx
call fcn.00415da0
add esp, 0xc
push 0x475468
lea eax, [ebp - 0xa38]
push eax
call fcn.0041620d
add esp, 8
push 0x47547c
lea ecx, [ebp - 0xa38]
push ecx
call fcn.004161e3
add esp, 8
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0xa38]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
jne 0x46093e
mov dword [ebp - 0xa3c], 0x104
lea ecx, [ebp - 0xa3c]
push ecx
lea edx, [ebp - 0x620]
push edx
push 0
push 0
push 0x475498
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
jne 0x46093e
lea ecx, [ebp - 0x620]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46093e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x620]
push eax
mov ecx, dword [ebp - 0xa40]
add ecx, 0x40
call fcn.004011c0
mov ecx, dword [ebp - 0xa40]
mov byte [ecx + 0x20], 1
jmp 0x460a01
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xa40]
mov byte [eax + 0x20], 0
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea edx, [ebp - 0x210]
push edx
call fcn.00401000
add esp, 8
mov word [eax + 2], 0
push 0x4754b0
lea eax, [ebp - 0x210]
push eax
push 0x4754d4
lea ecx, [ebp - 0x418]
push ecx
call fcn.00416420
add esp, 0x10
lea edx, [ebp - 0x418]
push edx
push 0x104
lea eax, [ebp - 0x620]
push eax
push 0x4754e0
push 0x4754e4
push 0x4754fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x620]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4609f7
lea edx, [ebp - 0x620]
push edx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x40
call fcn.004011c0
mov eax, dword [ebp - 0xa40]
mov byte [eax + 0x20], 1
jmp 0x460a01
mov ecx, dword [ebp - 0xa40]
mov byte [ecx + 0x20], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004157fe
mov esp, ebp
pop ebp
ret