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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov dword [esp + 0x18], esi
mov word [esp + 0x24], ax
call fcn.004e9ba0
mov ebx, 8
add esp, 0xc
cmp dword [esi + 0xb0], ebx
jb 0x4c8c32
mov eax, dword [esi + 0x9c]
jmp 0x4c8c38
lea eax, [esi + 0x9c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x4c8c98
cmp dword [esi + 0xcc], ebx
jb 0x4c8c55
mov eax, dword [esi + 0xb8]
jmp 0x4c8c5b
lea eax, [esi + 0xb8]
push eax
call edi
test eax, eax
je 0x4c8c98
cmp dword [esi + 0xb0], ebx
jb 0x4c8c72
mov ecx, dword [esi + 0x9c]
jmp 0x4c8c78
lea ecx, [esi + 0x9c]
cmp dword [esi + 0xcc], ebx
jb 0x4c8c88
mov eax, dword [esi + 0xb8]
jmp 0x4c8c8e
lea eax, [esi + 0xb8]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [esi + 0x1c]
mov edx, dword [eax + 0x18]
mov ebx, dword [edx]
mov esi, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
lea ebx, [ebx]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax + 0x18]
mov eax, dword [eax]
test esi, esi
je 0x4c8cc4
cmp esi, eax
je 0x4c8cc9
call fcn.004ea132
cmp ebx, edi
je 0x4c8da7
test esi, esi
jne 0x4c8d1c
call fcn.004ea132
cmp ebx, dword [esi + 0x18]
jne 0x4c8ce4
call fcn.004ea132
mov ebx, dword [ebx + 0x10]
lea edx, [ebx + 8]
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c8cf0
sub eax, esi
sar eax, 1
test eax, eax
jle 0x4c8d91
mov eax, dword [esp + 0xc]
cmp dword [eax + 0xb0], 8
jb 0x4c8d20
mov eax, dword [eax + 0x9c]
jmp 0x4c8d25
mov esi, dword [esi]
jmp 0x4c8cda
add eax, 0x9c
push eax
push 0x104
lea ecx, [esp + 0x20]
push ecx
push 0x6002fc
push edx
push 0x5ff194
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x6002fc
lea eax, [esp + 0x18]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c8d76
test dx, dx
je 0x4c8d72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c8d76
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c8d50
xor eax, eax
jmp 0x4c8d7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4c8d91
lea edx, [esp + 0x18]
push edx
call fcn.004e9c30
mov ecx, dword [ebx + 4]
add esp, 4
mov dword [ecx], eax
lea ecx, [esp + 0x10]
call fcn.004404a0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x4c8cb0
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x18]
mov ebx, dword [ecx]
mov esi, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
lea ecx, [ecx]
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x18]
mov edi, dword [eax + 0x18]
mov eax, dword [eax]
test esi, esi
je 0x4c8dd4
cmp esi, eax
je 0x4c8dd9
call fcn.004ea132
cmp ebx, edi
je 0x4c8eb7
test esi, esi
jne 0x4c8e2c
call fcn.004ea132
cmp ebx, dword [esi + 0x18]
jne 0x4c8df4
call fcn.004ea132
mov ebx, dword [ebx + 0x10]
lea edx, [ebx + 8]
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c8e00
sub eax, esi
sar eax, 1
test eax, eax
jle 0x4c8ea1
mov eax, dword [esp + 0xc]
cmp dword [eax + 0xb0], 8
jb 0x4c8e30
mov eax, dword [eax + 0x9c]
jmp 0x4c8e35
mov esi, dword [esi]
jmp 0x4c8dea
add eax, 0x9c
push eax
push 0x104
lea eax, [esp + 0x20]
push eax
push 0x6002fc
push edx
push 0x5ff194
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x6002fc
lea eax, [esp + 0x18]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c8e86
test dx, dx
je 0x4c8e82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c8e86
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c8e60
xor eax, eax
jmp 0x4c8e8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4c8ea1
lea ecx, [esp + 0x18]
push ecx
call fcn.004e9c30
mov edx, dword [ebx + 4]
add esp, 4
mov byte [edx], al
lea ecx, [esp + 0x10]
call fcn.004404a0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x4c8dc0
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax + 0x18]
mov ebx, dword [ecx]
mov esi, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
lea ecx, [ecx]
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x20]
mov edi, dword [eax + 0x18]
mov eax, dword [eax]
test esi, esi
je 0x4c8ee4
cmp esi, eax
je 0x4c8ee9
call fcn.004ea132
cmp ebx, edi
je 0x4c8fcd
test esi, esi
jne 0x4c8f3c
call fcn.004ea132
cmp ebx, dword [esi + 0x18]
jne 0x4c8f04
call fcn.004ea132
mov ebx, dword [ebx + 0x10]
lea edx, [ebx + 8]
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c8f10
sub eax, esi
sar eax, 1
test eax, eax
jle 0x4c8fb7
mov eax, dword [esp + 0xc]
cmp dword [eax + 0xb0], 8
jb 0x4c8f40
mov eax, dword [eax + 0x9c]
jmp 0x4c8f45
mov esi, dword [esi]
jmp 0x4c8efa
add eax, 0x9c
push eax
push 0x104
lea eax, [esp + 0x20]
push eax
push str.nothing
push edx
push 0x5ff194
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, str.nothing
lea eax, [esp + 0x18]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c8f96
test dx, dx
je 0x4c8f92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c8f96
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c8f70
xor eax, eax
jmp 0x4c8f9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4c8fb7
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x18]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4c8fa6
lea ecx, [esp + 0x10]
call fcn.004404a0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x4c8ed0
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.004c7d60
cmp dword [esi + 0xe8], 8
jb 0x4c8fe9
mov eax, dword [esi + 0xd4]
jmp 0x4c8fef
lea eax, [esi + 0xd4]
push eax
push 0x5ff1a4
push str.ModifySetConfig
push str.SetModify
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esi + 0x58]
mov ecx, dword [eax + 0x18]
mov edi, dword [ecx]
mov esi, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
jmp 0x4c9020
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x58]
mov ebx, dword [eax + 0x18]
mov eax, dword [eax]
test esi, esi
je 0x4c9034
cmp esi, eax
je 0x4c9039
call fcn.004ea132
cmp edi, ebx
je 0x4c909e
test esi, esi
jne 0x4c9096
call fcn.004ea132
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4c9052
call fcn.004ea132
mov ebx, dword [edi + 0x10]
test esi, esi
jne 0x4c909a
call fcn.004ea132
cmp edi, dword [esi + 0x18]
jne 0x4c9068
call fcn.004ea132
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c8420
test eax, eax
je 0x4c9083
mov ecx, dword [eax + 4]
mov edx, dword [ebx + 4]
mov eax, dword [ecx]
mov dword [edx], eax
lea ecx, [esp + 0x10]
call fcn.004404a0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x4c9020
mov eax, dword [esi]
jmp 0x4c9048
mov esi, dword [esi]
jmp 0x4c905e
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x54]
mov edx, dword [eax + 0x18]
mov edi, dword [edx]
mov esi, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x54]
mov ebx, dword [eax + 0x18]
mov eax, dword [eax]
test esi, esi
je 0x4c90c8
cmp esi, eax
je 0x4c90cd
call fcn.004ea132
cmp edi, ebx
je 0x4c9132
test esi, esi
jne 0x4c912a
call fcn.004ea132
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4c90e6
call fcn.004ea132
mov ebx, dword [edi + 0x10]
test esi, esi
jne 0x4c912e
call fcn.004ea132
cmp edi, dword [esi + 0x18]
jne 0x4c90fc
call fcn.004ea132
mov ecx, dword [edi + 0xc]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.004c8420
test eax, eax
je 0x4c9117
mov edx, dword [eax + 4]
mov eax, dword [ebx + 4]
mov cl, byte [edx]
mov byte [eax], cl
lea ecx, [esp + 0x10]
call fcn.004404a0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x4c90b4
mov eax, dword [esi]
jmp 0x4c90dc
mov esi, dword [esi]
jmp 0x4c90f2
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004e8c89
mov esp, ebp
pop ebp
ret