Function at 0x1400032f0
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x848]
sub rsp, 0x930
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14003a200]
xor rax, rsp
mov qword [rbp + 0x820], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.140010590
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.140010590
mov qword [rsp + 0x58], 7
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
xor r8d, r8d
lea rsi, [0x140025688]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1400051d0
nop
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r14
mov word [rbp - 0x40], r14w
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.1400051d0
nop
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r14
mov word [rbp - 0x60], r14w
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.1400051d0
nop
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r14
mov word [rbp - 0x80], r14w
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.1400051d0
nop
xor bl, bl
mov rcx, rdi
call fcn.140003b30
lea r15d, [r14 + 1]
test al, al
je 0x14000344c
mov qword [rsp + 0x30], r14
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140001e90
test al, al
je 0x14000344c
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x20], rax
mov r9d, r15d
mov r8, qword [rsp + 0x30]
lea edx, [r14 + 0x2c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
movzx ebx, bl
test eax, eax
cmove ebx, r15d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x140003462
xor r9d, r9d
lea r8d, [r9 + 0x2c]
lea rdx, [rbp + 0x1f0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rcx, [rbp + 0x1f0]
sub rcx, 2
nop dword [rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140003470
mov eax, dword [0x14002572c]
mov dword [rcx], eax
lea rcx, [rbp + 0x1f0]
sub rcx, 2
nop dword [rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140003490
movups xmm2, xmmword [str.PuddingDesktop]
movups xmmword [rcx], xmm2
movsd xmm3, qword [0x1400256e0]
movsd qword [rcx + 0x10], xmm3
mov edx, dword [0x1400256e8]
mov dword [rcx + 0x18], edx
movzx r8d, word [0x1400256ec]
mov word [rcx + 0x1c], r8w
lea rcx, [rbp + 0x1f0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x1400034d2
mov dword [rcx], eax
lea rax, [rbp + 0x1f0]
sub rax, 2
nop dword [rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x1400034f0
movups xmmword [rax], xmm2
movsd qword [rax + 0x10], xmm3
mov dword [rax + 0x18], edx
mov word [rax + 0x1c], r8w
lea rcx, [rbp + 0x1f0]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140003515
movsd xmm0, qword [0x140025730]
movsd qword [rcx], xmm0
movzx eax, word [0x140025738]
mov word [rcx + 8], ax
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x20]
mov r8, rsi
lea rdx, str.CfgUserPath
lea rcx, str.Globals
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp - 0x20]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140003570
test eax, eax
jle 0x1400035f6
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400035f6
cmp word [rbp - 0x20], 0
jne 0x140003598
mov r8, r14
jmp 0x1400035ab
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400035a0
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400051d0
cmp word [rbp - 0x20], 0
jne 0x1400035c5
mov r8, r14
jmp 0x1400035db
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400035d0
lea rcx, [rdi + 0x10]
lea rdx, [rbp - 0x20]
call fcn.1400051d0
mov byte [rdi + 3], r15b
cmp byte [rdi + 4], 0
je 0x1400039ab
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x610]
call fcn.140010590
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x400]
call fcn.140010590
mov r8d, 0x104
lea rdx, [rbp + 0x610]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rbp + 0x610]
call fcn.14000fa68
mov word [rax + 2], r14w
lea r9, str.PuddingDesktop.ini
lea r8, [rbp + 0x610]
lea rdx, str._s_s
lea rcx, [rbp + 0x400]
call fcn.140005490
lea rax, [rbp + 0x400]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x20]
mov r8, rsi
lea rdx, str.CfgUserPath
lea rcx, str.AppInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp - 0x20]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400036a3
test eax, eax
jle 0x140003726
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140003726
cmp word [rbp - 0x20], 0
jne 0x1400036cb
mov r8, r14
jmp 0x1400036de
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400036d3
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x40]
call fcn.1400051d0
cmp word [rbp - 0x20], 0
jne 0x1400036f7
mov r8, r14
jmp 0x14000370b
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140003700
lea rcx, [rdi + 0x10]
lea rdx, [rbp - 0x20]
call fcn.1400051d0
mov byte [rdi + 3], r15b
cmp byte [rdi + 4], 0
je 0x1400039ab
lea r8, [rdi + 0xb0]
cmp qword [r8 + 0x18], 8
jb 0x140003737
mov r8, qword [r8]
lea r9, str.PuddingDesktop.ini
lea rdx, str._s_s
lea rcx, [rbp + 0x400]
call fcn.140005490
lea rax, [rbp + 0x400]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x20]
mov r8, rsi
lea rdx, str.CfgUserPath
lea rcx, str.AppInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp - 0x20]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140003790
test eax, eax
jle 0x140003816
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140003816
cmp word [rbp - 0x20], 0
jne 0x1400037b8
mov r8, r14
jmp 0x1400037cb
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400037c0
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x60]
call fcn.1400051d0
cmp word [rbp - 0x20], 0
jne 0x1400037e4
mov r8, r14
jmp 0x1400037fb
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400037f0
lea rcx, [rdi + 0x10]
lea rdx, [rbp - 0x20]
call fcn.1400051d0
mov byte [rdi + 3], r15b
cmp byte [rdi + 4], 0
je 0x1400039ab
mov qword [rsp + 0x20], rsi
lea r9, str.CfgUserPath
lea r8, str.AppInfo
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140001e50
nop
lea rcx, [rsp + 0x60]
mov rbx, qword [rsp + 0x78]
cmp rbx, 8
cmovae rcx, qword [rsp + 0x60]
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x140003850
test eax, eax
jle 0x1400038be
lea rcx, [rsp + 0x60]
cmp rbx, 8
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400038b9
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140005090
lea rcx, [rdi + 0x10]
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x1400038ab
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x60]
call fcn.140005090
mov byte [rdi + 3], 1
cmp byte [rdi + 4], 0
je 0x140003979
mov rbx, qword [rsp + 0x78]
cmp byte [rdi + 4], 0
je 0x14000397e
cmp byte [rdi + 3], 0
je 0x14000397e
lea r8, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r8, qword [rbp - 0x40]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov r9, qword [rbp - 0x30]
mov rsi, qword [rsp + 0x50]
mov rdx, rsi
call fcn.140004ce0
test eax, eax
je 0x14000390a
mov byte [rdi + 5], 1
lea r8, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r8, qword [rbp - 0x60]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov r9, qword [rbp - 0x50]
mov rdx, rsi
call fcn.140004ce0
test eax, eax
je 0x14000393d
mov byte [rdi + 5], 1
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae r8, qword [rbp - 0x80]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov r9, qword [rbp - 0x70]
mov rdx, rsi
call fcn.140004ce0
test eax, eax
je 0x14000397e
mov edx, r15d
lea rcx, [rsp + 0x40]
call fcn.140001940
mov rbx, qword [rsp + 0x78]
cmp rbx, 8
jb 0x140003997
lea r8, [rbx + 1]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.140005320
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r14
mov word [rsp + 0x60], r14w
mov r8, qword [rbp - 0x68]
cmp r8, 8
jb 0x1400039c5
inc r8
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x80]
call fcn.140005320
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], r14
mov word [rbp - 0x80], r14w
mov r8, qword [rbp - 0x48]
cmp r8, 8
jb 0x1400039f0
inc r8
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.140005320
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r14
mov word [rbp - 0x60], r14w
mov r8, qword [rbp - 0x28]
cmp r8, 8
jb 0x140003a1b
inc r8
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
call fcn.140005320
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r14
mov word [rbp - 0x40], r14w
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x140003a49
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140005320
mov rcx, qword [rbp + 0x820]
xor rcx, rsp
call fcn.14000d1c0
lea r11, [rsp + 0x930]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret