Function at 0x1007cd7
Capabilities:
Clear file content
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push esi
xor esi, esi
inc eax
mov dword [ebp - 0x10], esi
cmp dword [ebp + 0x10], esi
je 0x1007cf0
push 3
pop eax
push esi
push 0x80
push 4
push esi
push eax
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x100c074], eax
cmp eax, 0xffffffff
jne 0x1007d31
cmp dword [ebp + 0x10], esi
jne 0x1007d22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1007d2a
push dword [ebp + 0xc]
call fcn.01007bf6
xor eax, eax
jmp 0x1007f1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov dword [ebp - 0x14], ecx
cmp dword [0x100c034], esi
je 0x1007d51
call fcn.01007b40
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push esi
push 0xe
push dword [0x100c028]
call edi
push esi
push esi
push 0xbd
push dword [0x100c028]
mov ebx, eax
call edi
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x1007eca
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov dword [ebp + 0x10], eax
cmp eax, esi
je 0x1007eca
mov eax, dword [0x100e040]
dec eax
je 0x1007e8a
dec eax
je 0x1007e40
dec eax
jne 0x1007dc1
push esi
lea eax, [ebp - 4]
push eax
push 3
push 0x100cd50
push dword [0x100c074]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x100e040], 3
je 0x1007ddd
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
mov edi, 0x400
jmp 0x1007de8
xor eax, eax
mov dword [ebp - 8], 0xfde9
xor edi, edi
push eax
push esi
push esi
push esi
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x10], esi
jne 0x1007e07
cmp ebx, esi
je 0x1007e2b
cmp eax, esi
jne 0x1007e2b
push 0x31
push dword [ebp + 0xc]
push dword [0x100c320]
push dword [0x100c2d0]
push dword [ebp + 8]
call fcn.01007051
cmp eax, 2
je 0x1007ed2
xor edi, edi
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp - 8]
push dword [0x100c074]
call fcn.01007a90
jmp 0x1007eb8
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0x100cd58
push dword [0x100c074]
call edi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x10]
call fcn.01007a58
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x10]
push dword [0x100c074]
call edi
push ebx
push dword [ebp + 0x10]
mov edi, eax
push dword [ebp + 0x10]
call fcn.01007a58
jmp 0x1007eba
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0x100cd54
push dword [0x100c074]
call edi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x10]
push dword [0x100c074]
call edi
mov edi, eax
cmp edi, esi
jne 0x1007f23
push dword [0x100c094]
call dword [sym.imp.USER32.dll_SetCursor]
push dword [ebp + 0xc]
call fcn.01007bf6
push dword [0x100c094]
call dword [sym.imp.USER32.dll_SetCursor]
push dword [0x100c074]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100c074], 0xffffffff
cmp dword [ebp - 0xc], esi
je 0x1007eff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
cmp dword [ebp - 0x14], esi
je 0x1007f0d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x100c034], esi
je 0x1007f1a
call fcn.01007ba2
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 0xc
push dword [0x100c074]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [0x100e040]
push esi
push esi
push 0xb9
push dword [0x100c028]
mov dword [0x100c00c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp + 0xc]
call fcn.01002456
push dword [0x100c074]
mov dword [0x100c008], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
or dword [0x100c074], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
cmp dword [0x100c034], esi
je 0x1007f83
call fcn.01007ba2
push dword [0x100c094]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
inc eax
jmp 0x1007f1c