Function at 0x40c88f
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4d8668]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
push edi
push eax
mov eax, dword [eax + 0x18]
push dword [eax]
lea ecx, [ebp - 0x78]
call fcn.0040af4f
mov eax, dword [esi + 0x18]
push eax
push dword [eax + 0x18]
lea ecx, [ebp - 0x80]
call fcn.0040af4f
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040532a
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x40c954
call fcn.0040b97d
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 4]
movzx eax, byte [eax]
push eax
lea eax, [ebp - 0x70]
push 0x4a4c74
push eax
call fcn.0042b6ee
add ebx, 8
push ebx
call fcn.0042bcbe
add esp, 0x10
test eax, eax
jle 0x40c931
lea eax, [esi + 0x98]
cmp dword [eax + 0x18], 8
jb 0x40c921
mov eax, dword [eax + 4]
jmp 0x40c924
add eax, 4
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push str.Setting
call edi
lea ecx, [ebp - 0x78]
call fcn.0040537d
mov eax, dword [esi + 0x18]
push eax
push dword [eax + 0x18]
lea ecx, [ebp - 0x80]
call fcn.0040af4f
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040532a
lea ecx, [ebp - 0x78]
test al, al
je 0x40c8e3
mov eax, dword [esi + 0x1c]
push eax
mov eax, dword [eax + 0x18]
push dword [eax]
call fcn.0040af4f
jmp 0x40c9bf
call fcn.0040b97d
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 4]
push dword [eax]
lea eax, [ebp - 0x70]
push 0x4a4c74
push eax
call fcn.0042b6ee
add ebx, 8
push ebx
call fcn.0042bcbe
add esp, 0x10
test eax, eax
jle 0x40c9b7
lea eax, [esi + 0x98]
cmp dword [eax + 0x18], 8
jb 0x40c9a7
mov eax, dword [eax + 4]
jmp 0x40c9aa
add eax, 4
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push str.Setting
call edi
lea ecx, [ebp - 0x78]
call fcn.0040537d
mov eax, dword [esi + 0x1c]
push eax
push dword [eax + 0x18]
lea ecx, [ebp - 0x80]
call fcn.0040af4f
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040532a
lea ecx, [ebp - 0x78]
test al, al
je 0x40c96b
mov eax, dword [esi + 0x20]
push eax
mov eax, dword [eax + 0x18]
push dword [eax]
call fcn.0040af4f
jmp 0x40ca46
lea ecx, [ebp - 0x78]
call fcn.0040b97d
mov ebx, dword [eax + 4]
push dword [ebx + 4]
lea eax, [ebp - 0x70]
push 0x4a4710
push eax
call fcn.0042b6ee
add ebx, 8
push ebx
call fcn.0042bcbe
add esp, 0x10
test eax, eax
jle 0x40ca3e
lea eax, [esi + 0x98]
cmp dword [eax + 0x18], 8
jb 0x40ca2e
mov eax, dword [eax + 4]
jmp 0x40ca31
add eax, 4
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push str.Setting
call edi
lea ecx, [ebp - 0x78]
call fcn.0040537d
mov eax, dword [esi + 0x20]
push eax
push dword [eax + 0x18]
lea ecx, [ebp - 0x80]
call fcn.0040af4f
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040532a
test al, al
je 0x40c9f1
cmp dword [esi + 0xe8], 8
jb 0x40ca76
mov eax, dword [esi + 0xd4]
jmp 0x40ca7c
lea eax, [esi + 0xd4]
push eax
push 0x4a4c7c
push str.ModifySetConfig
mov ebx, str.SetModify
push ebx
call edi
cmp dword [esi + 0xe8], 8
jb 0x40caa0
mov eax, dword [esi + 0xd4]
jmp 0x40caa6
lea eax, [esi + 0xd4]
push eax
push 0x4a4c7c
push str.ModifySetConfig64
push ebx
call edi
cmp dword [esi + 0xe8], 8
jb 0x40cac5
mov eax, dword [esi + 0xd4]
jmp 0x40cacb
lea eax, [esi + 0xd4]
push eax
push 0x4a4c7c
push str.TempModifySetConfig
push ebx
call edi
cmp dword [esi + 0xe8], 8
jb 0x40caea
mov eax, dword [esi + 0xd4]
jmp 0x40caf0
lea eax, [esi + 0xd4]
push eax
push 0x4a4c7c
push 0x4aca08
push ebx
call edi
lea eax, [esi + 0xb4]
cmp dword [eax + 0x18], 8
jb 0x40cb0f
mov eax, dword [eax + 4]
jmp 0x40cb12
add eax, 4
add esi, 0x98
cmp dword [esi + 0x18], 8
jb 0x40cb23
mov esi, dword [esi + 4]
jmp 0x40cb26
add esi, 4
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp + 0x198]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0042b558
add ebp, 0x19c
leave
ret