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

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x413609a8]
test rax, rax
jne 0x41097370
mov ecx, 0x1a8
call fcn.41211580
mov qword [rsp + 0x48], rax
test rax, rax
je 0x41097367
mov rcx, rax
call fcn.4109bc80
jmp 0x41097369
xor eax, eax
mov qword [0x413609a8], rax
mov rcx, rax
add rsp, 0x38
jmp 0x4109b780
mov r11, rsp
push rbp
sub rsp, 0x260
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov qword [r11 + 0x10], rbx
mov rbp, rcx
mov qword [r11 + 0x20], rdi
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov qword [r11 - 0x18], r13
mov word [rsp + 0x30], 0
call fcn.412121c0
cmp qword [rbp + 0x128], 8
jb 0x4109b7d8
mov rcx, qword [rbp + 0x110]
jmp 0x4109b7df
lea rcx, [rbp + 0x110]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4109b84a
cmp qword [rbp + 0x150], 8
jb 0x4109b7fc
mov rcx, qword [rbp + 0x138]
jmp 0x4109b803
lea rcx, [rbp + 0x138]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4109b84a
cmp qword [rbp + 0x128], 8
jb 0x4109b820
mov rdx, qword [rbp + 0x110]
jmp 0x4109b827
lea rdx, [rbp + 0x110]
cmp qword [rbp + 0x150], 8
jb 0x4109b83a
mov rcx, qword [rbp + 0x138]
jmp 0x4109b841
lea rcx, [rbp + 0x138]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov r13, qword [rbp + 0x30]
mov qword [rsp + 0x280], rsi
mov qword [rsp + 0x258], r12
mov rax, qword [r13 + 8]
mov rbx, qword [rax]
nop
nop
nop
mov rax, qword [rbp + 0x30]
cmp r13, rax
mov rdi, qword [rax + 8]
je 0x4109b882
call fcn.41211d60
cmp rbx, rdi
je 0x4109b98b
cmp rbx, qword [r13 + 8]
jne 0x4109b896
call fcn.41211d60
mov r12, qword [rbx + 0x20]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdx, [r12 + 0x10]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
jle 0x4109b91d
cmp qword [rbp + 0x128], 8
jb 0x4109b8c9
mov rax, qword [rbp + 0x110]
jmp 0x4109b8d0
lea rax, [rbp + 0x110]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea r8, [0x4129a828]
lea rcx, str.Setting
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rsi, [rsp + 0x30]
lea rdi, [0x4129a828]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x4109b91d
lea rcx, [rsp + 0x30]
call fcn.41214380
mov rcx, qword [r12 + 8]
mov dword [rcx], eax
cmp byte [rbx + 0x29], 0
je 0x4109b92d
call fcn.41211d60
jmp 0x4109b870
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x29], 0
jne 0x4109b961
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], 0
jne 0x4109b870
nop
nop
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], 0
je 0x4109b950
jmp 0x4109b870
mov rax, qword [rbx + 8]
cmp byte [rax + 0x29], 0
jne 0x4109b983
nop
nop
cmp rbx, qword [rax + 0x10]
jne 0x4109b983
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x29], 0
je 0x4109b970
mov rbx, rax
jmp 0x4109b870
mov r13, qword [rbp + 0x28]
mov rax, qword [r13 + 8]
mov rbx, qword [rax]
nop
nop
nop
mov rax, qword [rbp + 0x28]
cmp r13, rax
mov rdi, qword [rax + 8]
je 0x4109b9b2
call fcn.41211d60
cmp rbx, rdi
je 0x4109babb
cmp rbx, qword [r13 + 8]
jne 0x4109b9c6
call fcn.41211d60
mov r12, qword [rbx + 0x20]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdx, [r12 + 0x10]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
jle 0x4109ba4d
cmp qword [rbp + 0x128], 8
jb 0x4109b9f9
mov rax, qword [rbp + 0x110]
jmp 0x4109ba00
lea rax, [rbp + 0x110]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea r8, [0x4129a828]
lea rcx, str.Setting
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rsi, [rsp + 0x30]
lea rdi, [0x4129a828]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x4109ba4d
lea rcx, [rsp + 0x30]
call fcn.41214380
mov rcx, qword [r12 + 8]
mov byte [rcx], al
cmp byte [rbx + 0x29], 0
je 0x4109ba5d
call fcn.41211d60
jmp 0x4109b9a0
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x29], 0
jne 0x4109ba91
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], 0
jne 0x4109b9a0
nop
nop
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], 0
je 0x4109ba80
jmp 0x4109b9a0
mov rax, qword [rbx + 8]
cmp byte [rax + 0x29], 0
jne 0x4109bab3
nop
nop
cmp rbx, qword [rax + 0x10]
jne 0x4109bab3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x29], 0
je 0x4109baa0
mov rbx, rax
jmp 0x4109b9a0
mov r13, qword [rbp + 0x38]
mov rax, qword [r13 + 8]
mov rbx, qword [rax]
nop
nop
nop
mov rax, qword [rbp + 0x38]
cmp r13, rax
mov rdi, qword [rax + 8]
je 0x4109bae2
call fcn.41211d60
cmp rbx, rdi
je 0x4109bbfb
cmp rbx, qword [r13 + 8]
jne 0x4109baf6
call fcn.41211d60
mov r12, qword [rbx + 0x20]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdx, [r12 + 0x10]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
jle 0x4109bb94
cmp qword [rbp + 0x128], 8
jb 0x4109bb29
mov rax, qword [rbp + 0x110]
jmp 0x4109bb30
lea rax, [rbp + 0x110]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea r8, str.nothing
lea rcx, str.Setting
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rsi, [rsp + 0x30]
lea rdi, str.nothing
mov ecx, 8
repe cmpsw word [rsi], word [rdi]
je 0x4109bb94
mov rdx, qword [r12 + 8]
lea rcx, [rsp + 0x30]
nop
nop
nop
movzx eax, word [rcx]
add rdx, 2
add rcx, 2
test ax, ax
mov word [rdx - 2], ax
jne 0x4109bb80
cmp byte [rbx + 0x29], 0
je 0x4109bba4
call fcn.41211d60
jmp 0x4109bad0
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x29], 0
jne 0x4109bbd1
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], 0
jne 0x4109bad0
nop
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], 0
je 0x4109bbc0
jmp 0x4109bad0
mov rax, qword [rbx + 8]
cmp byte [rax + 0x29], 0
jne 0x4109bbf3
nop
nop
cmp rbx, qword [rax + 0x10]
jne 0x4109bbf3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x29], 0
je 0x4109bbe0
mov rbx, rax
jmp 0x4109bad0
mov rcx, rbp
call fcn.4109a450
cmp qword [rbp + 0x178], 8
mov r13, qword [rsp + 0x250]
mov r12, qword [rsp + 0x258]
mov rdi, qword [rsp + 0x288]
mov rsi, qword [rsp + 0x280]
mov rbx, qword [rsp + 0x278]
jb 0x4109bc3e
mov r9, qword [rbp + 0x160]
jmp 0x4109bc45
lea r9, [rbp + 0x160]
lea r8, [0x4129afd4]
lea rdx, str.ModifySetConfig64
lea rcx, str.SetModify
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.41211b80
add rsp, 0x260
pop rbp
ret