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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x210], esi
call fcn.0052f1e0
lea ebx, [esi + 0x90]
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x4a71ab
mov eax, dword [ebx]
jmp 0x4a71ad
mov eax, ebx
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x4a71f2
add esi, 0xa8
cmp dword [esi + 0x14], 8
jb 0x4a71cb
mov eax, dword [esi]
jmp 0x4a71cd
mov eax, esi
push eax
call edi
test eax, eax
je 0x4a71f2
cmp dword [ebx + 0x14], 8
jb 0x4a71de
mov eax, dword [ebx]
jmp 0x4a71e0
mov eax, ebx
cmp dword [esi + 0x14], 8
jb 0x4a71e8
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, dword [ebp - 0x210]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x4a72f9
mov ebx, dword [esi + 0x14]
lea edi, [ebx + 8]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7212
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4a72a8
mov eax, dword [ebp - 0x210]
add eax, 0x90
cmp dword [eax + 0x14], 8
jb 0x4a723c
mov eax, dword [eax]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x6475a4
push edi
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x6475a4
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a728b
test dx, dx
je 0x4a7287
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a728b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a7265
xor eax, eax
jmp 0x4a7290
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a72a8
lea eax, [ebp - 0x20c]
push eax
call fcn.00530546
mov ecx, dword [ebx + 4]
add esp, 4
mov dword [ecx], eax
cmp byte [esi + 0xd], 0
jne 0x4a72e8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4a72cd
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4a72e8
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4a72c1
jmp 0x4a72e8
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4a72e6
cmp esi, dword [eax + 8]
jne 0x4a72e6
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4a72d6
mov esi, eax
mov ebx, dword [ebp - 0x210]
mov eax, dword [ebx + 0x1c]
cmp esi, dword [eax]
jne 0x4a7207
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x4a73fa
mov ebx, dword [esi + 0x14]
lea edi, [ebx + 8]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7313
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4a73a9
mov eax, dword [ebp - 0x210]
add eax, 0x90
cmp dword [eax + 0x14], 8
jb 0x4a733d
mov eax, dword [eax]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x6475a4
push edi
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x6475a4
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a738c
test dx, dx
je 0x4a7388
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a738c
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a7366
xor eax, eax
jmp 0x4a7391
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a73a9
lea eax, [ebp - 0x20c]
push eax
call fcn.00530546
mov ecx, dword [ebx + 4]
add esp, 4
mov byte [ecx], al
cmp byte [esi + 0xd], 0
jne 0x4a73e9
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4a73ce
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4a73e9
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4a73c2
jmp 0x4a73e9
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4a73e7
cmp esi, dword [eax + 8]
jne 0x4a73e7
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4a73d7
mov esi, eax
mov ebx, dword [ebp - 0x210]
mov eax, dword [ebx + 0x18]
cmp esi, dword [eax]
jne 0x4a7308
mov eax, dword [ebx + 0x20]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x4a7518
lea esp, [esp]
mov ebx, dword [esi + 0x14]
lea edi, [ebx + 8]
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x4a7420
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7420
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4a74c1
mov eax, dword [ebp - 0x210]
add eax, 0x90
cmp dword [eax + 0x14], 8
jb 0x4a744a
mov eax, dword [eax]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.nothing
push edi
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, str.nothing
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a7499
test dx, dx
je 0x4a7495
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a7499
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a7473
xor eax, eax
jmp 0x4a749e
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a74c1
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x20c]
jmp 0x4a74b0
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x4a74b0
cmp byte [esi + 0xd], 0
jne 0x4a7507
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4a74ec
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4a7507
lea ebx, [ebx]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4a74e0
jmp 0x4a7507
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4a7505
cmp esi, dword [eax + 8]
jne 0x4a7505
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4a74f5
mov esi, eax
mov ebx, dword [ebp - 0x210]
mov eax, dword [ebx + 0x20]
cmp esi, dword [eax]
jne 0x4a7410
mov ecx, ebx
call fcn.004a7640
cmp dword [ebx + 0xd4], 8
lea eax, [ebx + 0xc0]
pop edi
jb 0x4a7531
mov eax, dword [eax]
push eax
push 0x644940
push str.ModifySetConfig
push str.SetModify
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [ebx + 0x58]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x4a75b9
push dword [esi + 0x10]
mov ecx, ebx
call fcn.004a5c90
test eax, eax
je 0x4a756d
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [edx]
mov dword [ecx], eax
cmp byte [esi + 0xd], 0
jne 0x4a75b2
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4a7592
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4a75b2
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4a7586
jmp 0x4a75b2
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4a75b0
jmp 0x4a75a0
cmp esi, dword [eax + 8]
jne 0x4a75b0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4a75a0
mov esi, eax
mov eax, dword [ebx + 0x58]
cmp esi, dword [eax]
jne 0x4a7552
mov eax, dword [ebx + 0x54]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x4a7629
push dword [esi + 0x10]
mov ecx, ebx
call fcn.004a5c90
test eax, eax
je 0x4a75df
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 4]
mov al, byte [edx]
mov byte [ecx], al
cmp byte [esi + 0xd], 0
jne 0x4a7622
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4a7604
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4a7622
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4a75f8
jmp 0x4a7622
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4a7620
lea ecx, [ecx]
cmp esi, dword [eax + 8]
jne 0x4a7620
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4a7610
mov esi, eax
mov eax, dword [ebx + 0x54]
cmp esi, dword [eax]
jne 0x4a75c4
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret