Function at 0x4186e8
Capabilities:
Delete file
Get common file path
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
mov byte [ebp - 1], 1
call fcn.0041844d
test eax, eax
je 0x418718
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x418952
jmp 0x41877a
mov edi, 0x104
lea eax, [ebp - 0x118]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
lea eax, [ebp - 0x21c]
push 0x428ae8
push eax
call sub.MSVCRT.dll_strcat
pop ecx
xor ebx, ebx
pop ecx
lea eax, [ebp - 0x21c]
push ebx
push 0x80
push 4
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x418781
xor al, al
jmp 0x418955
lea eax, [ebp - 0x118]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x4187a2
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edi, edi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x41881f
inc eax
push eax
call sub.MFC42.DLL_operatornew
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
je 0x41881f
mov eax, dword [ebp - 0x10]
inc eax
push eax
push ebx
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push ebx
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418812
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jne 0x418812
add eax, 0x208
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov edi, eax
push dword [ebp + 8]
push edi
call esi
push dword [ebp + 8]
call sub.MFC42.DLL_operatordelete
cmp edi, ebx
pop ecx
jne 0x418835
push 0x208
call sub.MFC42.DLL_operatornew
mov edi, eax
mov dword [esp], 0x429ea8
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [ebp - 0x21c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x41886a
mov byte [ebp - 1], bl
jmp 0x418947
push edi
call sub.MSVCRT.dll_strlen
mov dword [ebp - 0xc], eax
add eax, 0x208
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
push edi
push esi
call sub.MSVCRT.dll_strcpy
add esp, 0x10
cmp dword [ebp - 0xc], ebx
mov dword [ebp + 8], ebx
jle 0x4188b1
mov eax, dword [ebp + 8]
movsx ax, byte [eax + esi]
push eax
call dword [sym.imp.MSVCRT.dll_towupper]
pop ecx
mov ecx, dword [ebp + 8]
mov byte [ecx + esi], al
inc ecx
cmp ecx, dword [ebp - 0xc]
mov dword [ebp + 8], ecx
jl 0x418892
push 0x428adc
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
cmp eax, ebx
pop ecx
je 0x4188fa
sub eax, esi
add eax, 8
add eax, edi
push eax
push esi
mov dword [ebp + 8], eax
call sub.MSVCRT.dll_strcpy
push 0x429a5c
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x118]
push eax
push edi
call sub.MSVCRT.dll_strcat
push esi
push edi
call sub.MSVCRT.dll_strcat
add esp, 0x20
jmp 0x418920
push 0x429a48
push edi
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x118]
push eax
push edi
call sub.MSVCRT.dll_strcat
push 0x429a44
push edi
call sub.MSVCRT.dll_strcat
add esp, 0x18
lea eax, [ebp - 0x10]
push ebx
push eax
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x418952
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret