Function at 0x180006a10
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x388]
sub rsp, 0x480
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1800380b0]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x50]
call fcn.18000dff0
mov r8d, 0x104
lea rdx, [rbp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, str.explorer.exe
lea rcx, [rbp + 0x50]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x1800071dd
mov eax, dword [0x180039708]
test al, 1
jne 0x180006ab1
or eax, 1
mov dword [0x180039708], eax
lea rcx, [0x180039210]
call fcn.180002f70
lea rcx, [0x180022c30]
call fcn.18000af60
nop
xor ecx, ecx
call fcn.1800122f8
mov edx, eax
lea rcx, [0x180039210]
call fcn.180003960
mov ebx, eax
xor edi, edi
mov word [rbp + 0x38], di
xor eax, eax
mov qword [rbp + 0x3a], rax
mov qword [rbp + 0x42], rax
mov word [rbp + 0x4a], ax
mov r8d, ebx
lea rdx, [0x180024570]
lea rcx, [rbp + 0x38]
call fcn.180001c50
lea rdx, [rbp - 0x68]
lea rcx, [0x180039210]
call fcn.180003ed0
nop
lea rdx, [rbp - 0x48]
lea rcx, [0x180039210]
call fcn.180003f10
nop
cmp qword [rbp - 0x58], rdi
je 0x180007199
lea r9, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r9, qword [rbp - 0x68]
or r8d, 0xffffffff
lea rdx, str.af459
lea rcx, str.TGOISet
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebx
je 0x180007199
lea r9, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r9, qword [rbp - 0x68]
lea r8, [rbp + 0x38]
lea rdx, str.af459
lea rcx, str.TGOISet
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rdx, [rbp - 8]
lea rcx, [0x180039210]
call fcn.180003920
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
lea r8d, [rdi + 4]
lea rdx, str.1f12
lea rcx, [rsp + 0x58]
call fcn.1800019d0
nop
lea rcx, [rsp + 0x58]
mov r10, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
cmp rcx, rax
jae 0x180006c98
lea rcx, [rsp + 0x58]
cmp r10, rcx
ja 0x180006c98
lea rbx, [rsp + 0x58]
sub rbx, r10
mov r8, qword [rsp + 0x40]
cmp rax, r8
jne 0x180006c65
mov rcx, r8
sub rcx, rax
sar rcx, 5
cmp rcx, 1
jae 0x180006c65
sub rax, r10
sar rax, 5
movabs r9, 0x7ffffffffffffff
mov rcx, r9
sub rcx, rax
cmp rcx, 1
jae 0x180006c29
lea rcx, str.vector_T__too_long
call fcn.18000a53c
int3
lea rdx, [rax + 1]
sub r8, r10
sar r8, 5
mov rax, r8
shr rax, 1
sub r9, rax
add rax, r8
mov rcx, rdi
cmp r9, r8
cmovae rcx, rax
cmp rcx, rdx
cmovae rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.1800025a0
mov rax, qword [rsp + 0x38]
mov r10, qword [rsp + 0x30]
and rbx, 0xffffffffffffffe0
add rbx, r10
test rax, rax
je 0x180006d48
mov qword [rax + 0x18], 7
mov qword [rax + 0x10], rdi
cmp qword [rax + 0x18], 8
jb 0x180006c8d
mov rcx, qword [rax]
jmp 0x180006c90
mov rcx, rax
mov rdx, rbx
jmp 0x180006d38
mov r8, qword [rsp + 0x40]
cmp rax, r8
jne 0x180006d13
mov rcx, r8
sub rcx, rax
sar rcx, 5
cmp rcx, 1
jae 0x180006d13
sub rax, r10
sar rax, 5
movabs r9, 0x7ffffffffffffff
mov rcx, r9
sub rcx, rax
cmp rcx, 1
jae 0x180006cdc
lea rcx, str.vector_T__too_long
call fcn.18000a53c
int3
lea rdx, [rax + 1]
sub r8, r10
sar r8, 5
mov rax, r8
shr rax, 1
sub r9, rax
add rax, r8
mov rcx, rdi
cmp r9, r8
cmovae rcx, rax
cmp rcx, rdx
cmovae rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.1800025a0
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x180006d48
mov qword [rax + 0x18], 7
mov qword [rax + 0x10], rdi
cmp qword [rax + 0x18], 8
jb 0x180006d30
mov rcx, qword [rax]
jmp 0x180006d33
mov rcx, rax
lea rdx, [rsp + 0x58]
mov word [rcx], di
mov rcx, rax
call fcn.180001330
mov rax, qword [rsp + 0x38]
add rax, 0x20
mov qword [rsp + 0x38], rax
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x180006d6e
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.180001b20
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
mov r8d, 1
lea rdx, [0x180024594]
lea rcx, [rsp + 0x58]
call fcn.1800019d0
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.180008f50
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x180006dc6
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.180001b20
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
mov esi, 3
mov r8d, esi
lea rdx, [0x180024598]
lea rcx, [rsp + 0x78]
call fcn.1800019d0
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x28]
call fcn.1800028e0
nop
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x180006e21
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.180001b20
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rcx, qword [rbp - 8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180006eb2
mov dword [rsp + 0x4c], 0xbb8
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
lea rcx, [rbp + 0x18]
call fcn.180005640
nop
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
lea rcx, [rsp + 0x58]
call fcn.180005640
nop
lea r9, [rsp + 0x4c]
lea r8, [rbp + 0x18]
lea rdx, [rsp + 0x58]
lea rcx, [0x180039210]
call fcn.180003230
nop
lea rcx, [rsp + 0x58]
call fcn.1800012e0
nop
lea rcx, [rbp + 0x18]
jmp 0x180007174
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x160]
call fcn.18000dff0
lea rax, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rax, qword [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x160]
lea r8, [0x1800235f0]
lea rdx, str.ece61
lea rcx, str.TGOISet
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
cmp word [rbp + 0x160], 0
jne 0x180006f25
mov r8, rdi
jmp 0x180006f3b
lea rax, [rbp + 0x160]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180006f30
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x58]
call fcn.1800019d0
nop
cmp qword [rsp + 0x68], 0
je 0x180006f70
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180006fda
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rdi
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [0x1800245a0]
call fcn.1800020a0
mov rax, qword [rbp - 0x80]
mov rdx, qword [rsp + 0x78]
sub rax, rdx
sar rax, 5
test rax, rax
je 0x180006fd0
lea rax, [rsp + 0x58]
cmp rax, rdx
je 0x180006fd0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x58]
call fcn.180001890
nop
lea rcx, [rsp + 0x78]
call fcn.180002050
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000716f
lea r9, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r9, qword [rbp - 0x68]
mov r8d, esi
lea rdx, str.34d12
lea rcx, str.TGOISet
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
test eax, eax
cmove ebx, esi
movzx r9d, byte [rsp + 0x48]
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.180001ef0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rcx
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
mov r8d, 4
lea rdx, str.1f12
lea rcx, [rsp + 0x78]
call fcn.1800019d0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.180008f50
nop
lea rcx, [rsp + 0x78]
call fcn.1800012e0
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
mov r8d, 1
lea rdx, [0x180024594]
lea rcx, [rsp + 0x78]
call fcn.1800019d0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.180008f50
nop
lea rcx, [rsp + 0x78]
call fcn.1800012e0
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
mov r8, rsi
lea rdx, [0x1800245c0]
lea rcx, [rsp + 0x78]
call fcn.1800019d0
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x18]
call fcn.1800028e0
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.180001cb0
lea rcx, [rbp + 0x18]
call fcn.1800012e0
nop
lea rcx, [rsp + 0x78]
call fcn.1800012e0
imul eax, ebx, 0x3e8
mov dword [rsp + 0x4c], eax
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
lea rcx, [rbp + 0x18]
call fcn.180005640
nop
lea r9, [rsp + 0x4c]
lea r8, [rbp + 0x18]
lea rdx, [rsp + 0x58]
lea rcx, [0x180039210]
call fcn.180003230
nop
lea rcx, [rbp + 0x18]
call fcn.1800012e0
nop
lea rcx, [rsp + 0x58]
call fcn.1800012e0
nop
lea rcx, [rbp - 0x28]
call fcn.1800012e0
nop
lea rcx, [rsp + 0x30]
call fcn.180002050
nop
lea rcx, [rbp - 8]
call fcn.1800012e0
nop
mov r8, qword [rbp - 0x30]
cmp r8, 8
jb 0x1800071b3
inc r8
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.180001b20
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x1800071dd
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.180001b20
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.18000b090
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret