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

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x4d8668]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push eax
mov esi, ecx
call fcn.0042bd50
add esp, 0xc
push 8
pop ebx
cmp dword [esi + 0xb0], ebx
jb 0x40d6ab
mov eax, dword [esi + 0x9c]
jmp 0x40d6b1
lea eax, [esi + 0x9c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x40d711
cmp dword [esi + 0xcc], ebx
jb 0x40d6ce
mov eax, dword [esi + 0xb8]
jmp 0x40d6d4
lea eax, [esi + 0xb8]
push eax
call edi
test eax, eax
je 0x40d711
cmp dword [esi + 0xb0], ebx
jb 0x40d6eb
mov ecx, dword [esi + 0x9c]
jmp 0x40d6f1
lea ecx, [esi + 0x9c]
cmp dword [esi + 0xcc], ebx
jb 0x40d701
mov eax, dword [esi + 0xb8]
jmp 0x40d707
lea eax, [esi + 0xb8]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [esi + 0x1c]
push eax
mov eax, dword [eax + 0x18]
push dword [eax]
lea ecx, [ebp - 0x80]
call fcn.0040af4f
mov eax, dword [esi + 0x1c]
push eax
push dword [eax + 0x18]
lea ecx, [ebp - 0x78]
call fcn.0040af4f
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040532a
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, 0x4acb00
jmp 0x40d7db
call fcn.0040b97d
mov eax, dword [eax + 4]
mov dword [ebp - 0x6c], eax
add eax, 8
push eax
call fcn.0042bcbe
pop ecx
test eax, eax
jle 0x40d7b8
cmp dword [esi + 0xb0], 8
jb 0x40d777
mov eax, dword [esi + 0x9c]
jmp 0x40d77d
lea eax, [esi + 0x9c]
push eax
push 0x104
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x6c]
push edi
add eax, 8
push eax
push str.Setting
call ebx
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.0042c041
pop ecx
pop ecx
test eax, eax
je 0x40d7b8
lea eax, [ebp - 0x68]
push eax
call fcn.0042c51e
pop ecx
mov ecx, dword [ebp - 0x6c]
mov ecx, dword [ecx + 4]
mov dword [ecx], eax
lea ecx, [ebp - 0x80]
call fcn.0040537d
mov eax, dword [esi + 0x1c]
push eax
push dword [eax + 0x18]
lea ecx, [ebp - 0x78]
call fcn.0040af4f
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040532a
lea ecx, [ebp - 0x80]
test al, al
je 0x40d74d
mov eax, dword [esi + 0x18]
push eax
mov eax, dword [eax + 0x18]
push dword [eax]
call fcn.0040af4f
jmp 0x40d869
call fcn.0040b97d
mov eax, dword [eax + 4]
mov dword [ebp - 0x6c], eax
add eax, 8
push eax
call fcn.0042bcbe
pop ecx
test eax, eax
jle 0x40d861
cmp dword [esi + 0xb0], 8
jb 0x40d820
mov eax, dword [esi + 0x9c]
jmp 0x40d826
lea eax, [esi + 0x9c]
push eax
push 0x104
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x6c]
push edi
add eax, 8
push eax
push str.Setting
call ebx
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.0042c041
pop ecx
pop ecx
test eax, eax
je 0x40d861
lea eax, [ebp - 0x68]
push eax
call fcn.0042c51e
pop ecx
mov ecx, dword [ebp - 0x6c]
mov ecx, dword [ecx + 4]
mov byte [ecx], al
lea ecx, [ebp - 0x80]
call fcn.0040537d
mov eax, dword [esi + 0x18]
push eax
push dword [eax + 0x18]
lea ecx, [ebp - 0x78]
call fcn.0040af4f
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040532a
lea ecx, [ebp - 0x80]
test al, al
je 0x40d7f6
mov eax, dword [esi + 0x20]
push eax
mov eax, dword [eax + 0x18]
push dword [eax]
call fcn.0040af4f
mov eax, dword [esi + 0x20]
push eax
push dword [eax + 0x18]
lea ecx, [ebp - 0x78]
call fcn.0040af4f
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040532a
test al, al
jne 0x40d95d
mov edi, str.nothing
lea ecx, [ebp - 0x80]
call fcn.0040b97d
mov eax, dword [eax + 4]
mov dword [ebp - 0x6c], eax
add eax, 8
push eax
call fcn.0042bcbe
pop ecx
test eax, eax
jle 0x40d932
cmp dword [esi + 0xb0], 8
jb 0x40d8f2
mov eax, dword [esi + 0x9c]
jmp 0x40d8f8
lea eax, [esi + 0x9c]
push eax
push 0x104
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x6c]
push edi
add eax, 8
push eax
push str.Setting
call ebx
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.0042c041
pop ecx
pop ecx
test eax, eax
je 0x40d932
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x6c]
push dword [eax + 4]
call fcn.0042bd30
pop ecx
pop ecx
lea ecx, [ebp - 0x80]
call fcn.0040537d
mov eax, dword [esi + 0x20]
push eax
push dword [eax + 0x18]
lea ecx, [ebp - 0x78]
call fcn.0040af4f
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040532a
test al, al
je 0x40d8c5
mov ecx, esi
call fcn.0040cb4b
lea eax, [esi + 0xd0]
cmp dword [eax + 0x18], 8
jb 0x40d975
mov eax, dword [eax + 4]
jmp 0x40d978
add eax, 4
push eax
push 0x4a437c
push str.ModifySetConfig
push str.SetModify
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esi + 0x58]
push eax
mov eax, dword [eax + 0x18]
push dword [eax]
lea ecx, [ebp - 0x70]
call fcn.0040af4f
jmp 0x40d9d0
call fcn.0040b97d
mov edi, dword [eax + 4]
lea ecx, [ebp - 0x70]
call fcn.0040b97d
push dword [eax]
mov ecx, esi
call fcn.0040d0f4
test eax, eax
je 0x40d9c8
mov eax, dword [eax + 4]
mov ecx, dword [edi + 4]
mov eax, dword [eax]
mov dword [ecx], eax
lea ecx, [ebp - 0x70]
call fcn.0040537d
mov eax, dword [esi + 0x58]
push eax
push dword [eax + 0x18]
lea ecx, [ebp - 0x78]
call fcn.0040af4f
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040532a
lea ecx, [ebp - 0x70]
test al, al
je 0x40d9a1
mov eax, dword [esi + 0x54]
push eax
mov eax, dword [eax + 0x18]
push dword [eax]
call fcn.0040af4f
jmp 0x40da34
lea ecx, [ebp - 0x70]
call fcn.0040b97d
mov edi, dword [eax + 4]
lea ecx, [ebp - 0x70]
call fcn.0040b97d
push dword [eax]
mov ecx, esi
call fcn.0040d0f4
test eax, eax
je 0x40da2c
mov eax, dword [eax + 4]
mov ecx, dword [edi + 4]
mov al, byte [eax]
mov byte [ecx], al
lea ecx, [ebp - 0x70]
call fcn.0040537d
mov eax, dword [esi + 0x54]
push eax
push dword [eax + 0x18]
lea ecx, [ebp - 0x78]
call fcn.0040af4f
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040532a
test al, al
je 0x40da02
mov ecx, dword [ebp + 0x1a0]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0042b558
add ebp, 0x1a4
leave
ret