Function at 0x436900
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 [0x5b2ee4]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xa40], ecx
xor eax, eax
mov word [ebp - 0x828], ax
push 0x206
push 0
lea ecx, [ebp - 0x826]
push ecx
call fcn.0047e0e0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x620], dx
push 0x206
push 0
lea eax, [ebp - 0x61e]
push eax
call fcn.0047e0e0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x418], cx
push 0x206
push 0
lea edx, [ebp - 0x416]
push edx
call fcn.0047e0e0
add esp, 0xc
push 0x56f5b8
mov ecx, dword [ebp - 0xa40]
add ecx, 0x90
call fcn.004019c0
push eax
push 0x56f5e0
lea eax, [ebp - 0x418]
push eax
call fcn.004018f0
add esp, 0x10
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0x620]
push edx
push 0x56f5ec
push 0x56f5f0
push 0x56f608
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4369fe
lea ecx, [ebp - 0x620]
push ecx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x3c
call fcn.00401980
mov edx, dword [ebp - 0xa40]
mov byte [edx + 0x1c], 1
jmp 0x436c81
push 0
push 0x2b
lea eax, [ebp - 0x828]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x56f618
lea ecx, [ebp - 0x828]
push ecx
call fcn.0047e81e
add esp, 8
push 0x56f61c
lea edx, [ebp - 0x828]
push edx
call fcn.0047e81e
add esp, 8
push 0x56f63c
lea eax, [ebp - 0x828]
push eax
call fcn.0047e81e
add esp, 8
push 0x56f640
lea ecx, [ebp - 0x828]
push ecx
call fcn.0047e81e
add esp, 8
push 0x56f660
lea edx, [ebp - 0x828]
push edx
call fcn.0047e81e
add esp, 8
lea eax, [ebp - 0x828]
push eax
push 0x104
lea ecx, [ebp - 0x620]
push ecx
push 0x56f66c
push 0x56f670
push 0x56f688
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x620]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436ad2
lea eax, [ebp - 0x620]
push eax
mov ecx, dword [ebp - 0xa40]
add ecx, 0x3c
call fcn.00401980
mov ecx, dword [ebp - 0xa40]
mov byte [ecx + 0x1c], 1
jmp 0x436c81
xor edx, edx
mov word [ebp - 0xa38], dx
push 0x206
push 0
lea eax, [ebp - 0xa36]
push eax
call fcn.0047e0e0
add esp, 0xc
push 0x56f698
lea ecx, [ebp - 0xa38]
push ecx
call fcn.0047e84c
add esp, 8
push 0x56f6ac
lea edx, [ebp - 0xa38]
push edx
call fcn.0047e81e
add esp, 8
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0xa38]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
jne 0x436bbe
mov dword [ebp - 0xa3c], 0x104
lea edx, [ebp - 0xa3c]
push edx
lea eax, [ebp - 0x620]
push eax
push 0
push 0
push 0x56f6cc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
jne 0x436bbe
lea edx, [ebp - 0x620]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436bbe
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x620]
push ecx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x3c
call fcn.00401980
mov edx, dword [ebp - 0xa40]
mov byte [edx + 0x1c], 1
jmp 0x436c81
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xa40]
mov byte [ecx + 0x1c], 0
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea eax, [ebp - 0x210]
push eax
call fcn.0040efb0
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
push 0x56f6e4
lea edx, [ebp - 0x210]
push edx
push 0x56f70c
lea eax, [ebp - 0x418]
push eax
call fcn.004018f0
add esp, 0x10
lea ecx, [ebp - 0x418]
push ecx
push 0x104
lea edx, [ebp - 0x620]
push edx
push 0x56f718
push 0x56f71c
push 0x56f734
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436c77
lea ecx, [ebp - 0x620]
push ecx
mov ecx, dword [ebp - 0xa40]
add ecx, 0x3c
call fcn.00401980
mov edx, dword [ebp - 0xa40]
mov byte [edx + 0x1c], 1
jmp 0x436c81
mov eax, dword [ebp - 0xa40]
mov byte [eax + 0x1c], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047e001
mov esp, ebp
pop ebp
ret