Function at 0x4c7a00
Capabilities:
Copy 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
mov edi, ecx
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
mov esi, dword [eax]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov eax, dword [edi + 0x18]
mov ebx, dword [eax + 0x18]
mov eax, dword [eax]
test esi, esi
je 0x4c7a41
cmp esi, eax
je 0x4c7a46
call fcn.004ea132
cmp dword [esp + 0x14], ebx
je 0x4c7ae2
test esi, esi
jne 0x4c7ab4
call fcn.004ea132
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x18]
jne 0x4c7a67
call fcn.004ea132
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 0x10]
mov edx, dword [esi + 4]
movzx eax, byte [edx]
push eax
lea ecx, [esp + 0x1c]
push 0x5fd170
push ecx
call fcn.00403b80
add esp, 0xc
add esi, 8
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c7a90
sub eax, edx
sar eax, 1
test eax, eax
jle 0x4c7ad0
cmp dword [edi + 0xb0], 8
jb 0x4c7ab8
mov eax, dword [edi + 0x9c]
jmp 0x4c7abe
mov esi, dword [esi]
jmp 0x4c7a59
lea eax, [edi + 0x9c]
push eax
lea edx, [esp + 0x1c]
push edx
push esi
push 0x5ff194
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x10]
call fcn.004404a0
mov esi, dword [esp + 0x10]
jmp 0x4c7a31
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
mov esi, dword [eax]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov eax, dword [edi + 0x1c]
mov ebx, dword [eax + 0x18]
mov eax, dword [eax]
test esi, esi
je 0x4c7b04
cmp esi, eax
je 0x4c7b09
call fcn.004ea132
cmp dword [esp + 0x14], ebx
je 0x4c7ba3
test esi, esi
jne 0x4c7b75
call fcn.004ea132
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x18]
jne 0x4c7b2a
call fcn.004ea132
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 0x10]
mov edx, dword [esi + 4]
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x1c]
push 0x5fd170
push ecx
call fcn.00403b80
add esp, 0xc
add esi, 8
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c7b51
sub eax, edx
sar eax, 1
test eax, eax
jle 0x4c7b91
cmp dword [edi + 0xb0], 8
jb 0x4c7b79
mov eax, dword [edi + 0x9c]
jmp 0x4c7b7f
mov esi, dword [esi]
jmp 0x4c7b1c
lea eax, [edi + 0x9c]
push eax
lea edx, [esp + 0x1c]
push edx
push esi
push 0x5ff194
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x10]
call fcn.004404a0
mov esi, dword [esp + 0x10]
jmp 0x4c7af4
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
mov esi, dword [eax]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov eax, dword [edi + 0x20]
mov ebx, dword [eax + 0x18]
mov eax, dword [eax]
test esi, esi
je 0x4c7bc5
cmp esi, eax
je 0x4c7bca
call fcn.004ea132
cmp dword [esp + 0x14], ebx
je 0x4c7c62
test esi, esi
jne 0x4c7c34
call fcn.004ea132
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x18]
jne 0x4c7beb
call fcn.004ea132
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 0x10]
mov edx, dword [esi + 4]
push edx
lea eax, [esp + 0x1c]
push 0x6012d8
push eax
call fcn.00403b80
lea edx, [esi + 8]
mov eax, edx
add esp, 0xc
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c7c10
sub eax, esi
sar eax, 1
test eax, eax
jle 0x4c7c50
cmp dword [edi + 0xb0], 8
jb 0x4c7c38
mov eax, dword [edi + 0x9c]
jmp 0x4c7c3e
mov esi, dword [esi]
jmp 0x4c7bdd
lea eax, [edi + 0x9c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
push 0x5ff194
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x10]
call fcn.004404a0
mov esi, dword [esp + 0x10]
jmp 0x4c7bb5
mov ebx, 8
cmp dword [edi + 0xe8], ebx
jb 0x4c7c77
mov eax, dword [edi + 0xd4]
jmp 0x4c7c7d
lea eax, [edi + 0xd4]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push 0x5ff190
push str.ModifySetConfig
push str.SetModify
call esi
cmp dword [edi + 0xe8], ebx
jb 0x4c7ca5
mov eax, dword [edi + 0xd4]
jmp 0x4c7cab
lea eax, [edi + 0xd4]
push eax
push 0x5ff190
push str.ModifySetConfig64
push str.SetModify
call esi
cmp dword [edi + 0xe8], ebx
jb 0x4c7ccd
mov eax, dword [edi + 0xd4]
jmp 0x4c7cd3
lea eax, [edi + 0xd4]
push eax
push 0x5ff190
push str.TempModifySetConfig
push str.SetModify
call esi
cmp dword [edi + 0xe8], ebx
jb 0x4c7cf5
mov eax, dword [edi + 0xd4]
jmp 0x4c7cfb
lea eax, [edi + 0xd4]
push eax
push 0x5ff190
push 0x616564
push str.SetModify
call esi
cmp dword [edi + 0xcc], ebx
jb 0x4c7d1d
mov eax, dword [edi + 0xb8]
jmp 0x4c7d23
lea eax, [edi + 0xb8]
cmp dword [edi + 0xb0], ebx
jb 0x4c7d33
mov edi, dword [edi + 0x9c]
jmp 0x4c7d39
add edi, 0x9c
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
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