Function at 0x411140
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 [0x4f4320]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xa40], ecx
mov word [ebp - 0x620], 0
push 0x206
push 0
lea eax, [ebp - 0x61e]
push eax
call fcn.00479a10
add esp, 0xc
mov word [ebp - 0xa38], 0
push 0x206
push 0
lea ecx, [ebp - 0xa36]
push ecx
call fcn.00479a10
add esp, 0xc
mov word [ebp - 0x418], 0
push 0x206
push 0
lea edx, [ebp - 0x416]
push edx
call fcn.00479a10
add esp, 0xc
push 0x4d0608
mov ecx, dword [ebp - 0xa40]
add ecx, 0xb0
call fcn.00401670
push eax
push 0x4d062c
lea eax, [ebp - 0x418]
push eax
call fcn.00479b88
add esp, 0x10
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0xa38]
push edx
push 0x4d0638
push 0x4d063c
push 0x4d0654
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41123e
lea ecx, [ebp - 0xa38]
push ecx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x24
call fcn.00403660
mov edx, dword [ebp - 0xa40]
mov byte [edx + 0x21], 1
jmp 0x4114b7
push 0
push 0x2b
lea eax, [ebp - 0x620]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4d0664
lea ecx, [ebp - 0x620]
push ecx
call fcn.0047a396
add esp, 8
push 0x4d0668
lea edx, [ebp - 0x620]
push edx
call fcn.0047a396
add esp, 8
push 0x4d0688
lea eax, [ebp - 0x620]
push eax
call fcn.0047a396
add esp, 8
push 0x4d068c
lea ecx, [ebp - 0x620]
push ecx
call fcn.0047a396
add esp, 8
push 0x4d06a0
lea edx, [ebp - 0x620]
push edx
call fcn.0047a396
add esp, 8
lea eax, [ebp - 0x620]
push eax
push 0x104
lea ecx, [ebp - 0xa38]
push ecx
push 0x4d06ac
push 0x4d06b0
push 0x4d06c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0xa38]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411312
lea eax, [ebp - 0xa38]
push eax
mov ecx, dword [ebp - 0xa40]
add ecx, 0x24
call fcn.00403660
mov ecx, dword [ebp - 0xa40]
mov byte [ecx + 0x21], 1
jmp 0x4114b7
mov word [ebp - 0x830], 0
push 0x206
push 0
lea edx, [ebp - 0x82e]
push edx
call fcn.00479a10
add esp, 0xc
push 0x4d06d8
lea eax, [ebp - 0x830]
push eax
call fcn.0047a3c0
add esp, 8
push 0x4d06ec
lea ecx, [ebp - 0x830]
push ecx
call fcn.0047a396
add esp, 8
lea edx, [ebp - 4]
push edx
push GetMenuState
push 0
lea eax, [ebp - 0x830]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0
jne 0x4113fe
mov dword [ebp - 0xa3c], 0x104
lea ecx, [ebp - 0xa3c]
push ecx
lea edx, [ebp - 0xa38]
push edx
push 0
push 0
push 0x4d070c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0
jne 0x4113fe
lea ecx, [ebp - 0xa38]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4113fe
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xa38]
push eax
mov ecx, dword [ebp - 0xa40]
add ecx, 0x24
call fcn.00403660
mov ecx, dword [ebp - 0xa40]
mov byte [ecx + 0x21], 1
jmp 0x4114b7
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x210]
push ecx
call fcn.00405ae0
add esp, 8
mov word [eax + 2], 0
push 0x4d0724
lea edx, [ebp - 0x210]
push edx
push 0x4d0748
lea eax, [ebp - 0x418]
push eax
call fcn.00479b88
add esp, 0x10
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0xa38]
push edx
push 0x4d0754
push 0x4d0758
push 0x4d0770
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4114ad
lea ecx, [ebp - 0xa38]
push ecx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x24
call fcn.00403660
mov edx, dword [ebp - 0xa40]
mov byte [edx + 0x21], 1
jmp 0x4114b7
mov eax, dword [ebp - 0xa40]
mov byte [eax + 0x21], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047a020
mov esp, ebp
pop ebp
ret