Function at 0x4875a0
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7740e1
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x88bba0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x34c]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0
mov dword [eax], 0
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0
push 0x799e88
mov dword [ebp - 0x38c], eax
mov dword [ebp - 0x388], esi
mov dword [ebp - 0x390], 0
mov dword [esi], 0
mov dword [ebp - 0x338], 0xf
mov dword [ebp - 0x33c], 0
mov byte [ebp - 0x34c], 0
call fcn.0042fb60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34c]
push eax
call fcn.00485520
add esp, 4
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 0
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x320], 0xf
mov dword [ebp - 0x324], 0
push 0xffffffffffffffff
push 0
push eax
mov byte [ebp - 0x334], 0
call fcn.0042fa30
mov byte [ebp - 4], 2
cmp dword [ebp - 0x338], 0x10
jb 0x4876ad
push dword [ebp - 0x34c]
call fcn.00489b60
add esp, 4
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 0x338], 0xf
push 0
push eax
mov dword [ebp - 0x33c], 0
mov byte [ebp - 0x34c], 0
call fcn.00723180
add esp, 0xc
lea ecx, [ebp - 0x114]
cmp dword [ebp - 0x320], 0x10
lea eax, [ebp - 0x334]
cmovae eax, dword [ebp - 0x334]
push ecx
push 0
push str.ctestemp
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x487751
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x320], 0x10
jb 0x487731
push dword [ebp - 0x334]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x320], 0xf
mov dword [ebp - 0x324], 0
mov byte [ebp - 0x334], 0
jmp 0x487b73
mov ecx, dword [0x89e1e4]
test ecx, ecx
jne 0x4878a8
cmp dword [ebp - 0x320], 0x10
lea ecx, [ebp - 0x31c]
push 0x104
lea eax, [ebp - 0x334]
cmovae eax, dword [ebp - 0x334]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
test eax, eax
je 0x48770b
mov ecx, 0x104
lea eax, [ebp - 0x31c]
cmp byte [eax], 0
je 0x4877a9
inc eax
dec ecx
jne 0x487795
mov dword [esi], 0x7d
jmp 0x487b61
test ecx, ecx
je 0x4877b6
mov eax, 0x104
sub eax, ecx
jne 0x4877c1
mov dword [esi], 0x7d
jmp 0x487b61
mov eax, dword [str.._]
mov dword [ebp - 0x218], eax
mov al, byte [0x7a5ff8]
push 0xff
mov byte [ebp - 0x214], al
lea eax, [ebp - 0x213]
push 0
push eax
call fcn.00723180
add esp, 0xc
lea eax, [ebp - 0x31c]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.004874b0
mov ecx, 0x104
lea eax, [ebp - 0x218]
cmp byte [eax], 0
je 0x487824
inc eax
dec ecx
jne 0x487810
mov dword [esi], 0x7d
jmp 0x487b61
test ecx, ecx
je 0x4877b6
mov eax, 0x104
sub eax, ecx
je 0x487870
lea edx, [eax - 1]
lea ecx, [ebp + eax - 0x219]
mov eax, 1
lea esi, [ebp - 0x218]
sub eax, esi
mov esi, dword [ebp - 0x388]
mov dword [ebp - 0x384], eax
cmp byte [ecx], 0x5c
jne 0x487870
cmp edx, 0x104
jae 0x487895
mov byte [ecx], 0
dec edx
dec ecx
add eax, ecx
mov eax, dword [ebp - 0x384]
jne 0x487854
lea eax, [ebp - 0x218]
push 0x89e1d0
push eax
call fcn.00486de0
add esp, 8
test eax, eax
je 0x48789a
mov ecx, 0x200
mov dword [0x89e1e4], ecx
jmp 0x4878a8
call fcn.00725327
mov ecx, dword [0x89e1e4]
test ecx, ecx
je 0x487713
mov eax, dword [ebx + 4]
xor edx, edx
sub eax, dword [ebx]
dec eax
add eax, ecx
div ecx
imul eax, ecx
mov dword [ebp - 0x394], eax
test eax, eax
jne 0x487956
push eax
push 0xa0000080
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x487900
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x487b61
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x38c]
sub eax, dword [ebx]
mov dword [ecx], eax
cmp dword [edi + 0x14], 0x10
jb 0x48791c
mov edi, dword [edi]
push 9
push edi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x4878e6
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.00404fd0
mov al, 1
jmp 0x487b75
push 4
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov dword [ebp - 0x384], edx
test edx, edx
jne 0x48797f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x487b61
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
sub eax, ecx
push eax
push ecx
push edx
call fcn.007224a0
add esp, 0xc
lea eax, [ebp - 0x114]
push 0
push 0xa0000080
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x388], eax
cmp eax, 0xffffffff
jne 0x4879c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x487b41
push 0
lea ecx, [ebp - 0x390]
push ecx
push dword [ebp - 0x394]
push dword [ebp - 0x384]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x487b2d
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
cmp dword [ebp - 0x390], eax
jb 0x487b2d
push 0x8000
push 0
push dword [ebp - 0x384]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [ebp - 0x388]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80000080
push 3
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [ebp - 0x384], ecx
cmp ecx, 0xffffffff
je 0x4878e6
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
cmp eax, ecx
jne 0x4878ec
push dword [ebp - 0x384]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 0x384]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x38c]
sub eax, dword [ebx]
push edi
mov dword [ecx], eax
lea ecx, [ebp - 0x380]
call fcn.00612210
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x380]
call fcn.00613090
test al, al
je 0x487aca
lea ecx, [ebp - 0x380]
call fcn.006127e0
test al, al
jne 0x487aca
push 1
lea ecx, [ebp - 0x380]
call fcn.00613f00
cmp dword [edi + 0x14], 0x10
jb 0x487ad2
mov edi, dword [edi]
push 9
push edi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x487b07
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x380]
call fcn.006124a0
jmp 0x48793d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x380]
call fcn.006124a0
jmp 0x487b61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x388]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x8000
push 0
push dword [ebp - 0x384]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
call fcn.00404fd0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00722035
mov esp, ebp
pop ebp
ret