Function at 0x4c7ac8a0
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x208
call sub.MFC42.dll_operatornew
mov ebx, dword [ebp + 8]
add esp, 4
test ebx, ebx
mov edi, eax
mov dword [ebp - 0x18], edi
je 0x4c7ac917
push 0x208
call sub.MFC42.dll_operatornew
add esp, 4
mov esi, eax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
push 0
push 0x4c782de0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4c7ac90a
push 0x13a
push 0x4c782dbc
push edi
push 0x4c7827d8
call fcn.4c7c02b0
add esp, 0x10
test esi, esi
je 0x4c7ac917
push esi
call sub.MFC42.dll_operatordelete
add esp, 4
mov esi, dword [sym.imp.msvcrt.dll__wfopen]
push 0x4c782ce8
push edi
call esi
add esp, 8
test eax, eax
mov dword [0x4c7de444], eax
jne 0x4c7ac95f
mov eax, dword [sym.imp.msvcrt.dll__iob]
push edi
push 0x4c782c34
push 0x4c782d94
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fwprintf]
push edi
call sub.MFC42.dll_operatordelete
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x4c782cf0
push ebx
call esi
add esp, 8
test eax, eax
mov dword [0x4c7de440], eax
jne 0x4c7ac98a
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push ebx
push 0x4c782c34
push 0x4c782d94
add ecx, 0x40
push ecx
jmp 0x4c7ac945
mov ebx, dword [ebp + 0xc]
push 0x4c782cf0
push ebx
call esi
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp - 0x10], esi
jne 0x4c7ac9b8
mov edx, dword [sym.imp.msvcrt.dll__iob]
push ebx
push 0x4c782c34
push 0x4c782d94
add edx, 0x40
push edx
jmp 0x4c7ac945
mov ebx, 1
call fcn.4c7ac750
mov ebx, dword [sym.imp.msvcrt.dll_fseek]
push 2
push 0
push esi
mov byte [ebp + 0xf], al
call ebx
push esi
call dword [sym.imp.msvcrt.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebx
add esp, 0x1c
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push edi
push 1
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
call dword [sym.imp.msvcrt.dll_fread]
mov ebx, dword [sym.imp.msvcrt.dll_putc]
add esp, 0x10
test eax, eax
je 0x4c7acacb
mov eax, 0x80018005
imul edi
add edx, edi
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
imul ecx, ecx, 0xfffd
mov edx, edi
sub edx, ecx
je 0x4c7aca34
add eax, 1
test eax, eax
jle 0x4c7acacb
mov dword [ebp - 8], eax
nop
cmp edi, 0xfffd
mov esi, 0xfffd
jg 0x4c7aca4f
mov esi, edi
mov eax, dword [0x4c7de444]
push eax
push 0xff
call ebx
mov ecx, dword [0x4c7de444]
movzx eax, byte [ebp + 0x10]
push ecx
push eax
call ebx
mov edx, dword [0x4c7de444]
lea eax, [esi + 2]
mov dword [ebp - 0xc], eax
movzx eax, ah
push edx
push eax
call ebx
mov ecx, dword [0x4c7de444]
mov eax, dword [ebp - 0xc]
push ecx
and eax, 0xff
push eax
call ebx
add esp, 0x20
test esi, esi
jle 0x4c7acabe
sub edi, esi
jmp 0x4c7acaa0
mov eax, dword [ebp - 4]
mov edx, dword [0x4c7de444]
movsx ecx, byte [eax]
push edx
push ecx
call ebx
add dword [ebp - 4], 1
sub esi, 1
add esp, 8
test esi, esi
jg 0x4c7acaa0
sub dword [ebp - 8], 1
jne 0x4c7aca40
mov esi, dword [ebp - 0x10]
mov edx, dword [0x4c7de444]
push edx
push 0xff
call ebx
mov eax, dword [0x4c7de444]
movzx ecx, byte [ebp + 0xf]
push eax
push ecx
call ebx
add esp, 0x10
call fcn.4c7ac020
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c7acafc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [0x4c7de440]
mov edi, dword [sym.imp.msvcrt.dll_fclose]
push edx
call edi
mov eax, dword [0x4c7de444]
push eax
call edi
push esi
call edi
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0xc
push esi
call ebx
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4c7acb5d
call edi
cmp eax, 2
je 0x4c7acb75
push 0x19f
push 0x4c782dbc
call edi
push eax
push 0x4c78142c
call fcn.4c7c02b0
push esi
push 0x4c782788
call fcn.4c7c02b0
add esp, 0x18
jmp 0x4c7acb75
push 0x1a7
push 0x4c782dbc
push esi
push 0x4c782760
call fcn.4c7c02b0
add esp, 0x10
push 0
push esi
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
call ebx
test eax, eax
jne 0x4c7acbb7
call edi
cmp eax, 2
je 0x4c7acbcf
push 0x1af
push 0x4c782dbc
call edi
push eax
push 0x4c78142c
call fcn.4c7c02b0
push esi
push 0x4c782788
call fcn.4c7c02b0
add esp, 0x18
jmp 0x4c7acbcf
push 0x1b7
push 0x4c782dbc
push esi
push 0x4c782760
call fcn.4c7c02b0
add esp, 0x10
push esi
call sub.MFC42.dll_operatordelete
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc