Function at 0x67cd7
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 0x67cf0
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 [0x6c074], eax
cmp eax, 0xffffffff
jne 0x67d31
cmp dword [ebp + 0x10], esi
jne 0x67d22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x67d2a
push dword [ebp + 0xc]
call fcn.00067bf6
xor eax, eax
jmp 0x67f1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov dword [ebp - 0x14], ecx
cmp dword [0x6c034], esi
je 0x67d51
call fcn.00067b40
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push esi
push 0xe
push dword [0x6c028]
call edi
push esi
push esi
push 0xbd
push dword [0x6c028]
mov ebx, eax
call edi
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x67eca
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov dword [ebp + 0x10], eax
cmp eax, esi
je 0x67eca
mov eax, dword [0x6e040]
dec eax
je 0x67e8a
dec eax
je 0x67e40
dec eax
jne 0x67dc1
push esi
lea eax, [ebp - 4]
push eax
push 3
push 0x6cd50
push dword [0x6c074]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x6e040], 3
je 0x67ddd
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
mov edi, 0x400
jmp 0x67de8
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 0x67e07
cmp ebx, esi
je 0x67e2b
cmp eax, esi
jne 0x67e2b
push 0x31
push dword [ebp + 0xc]
push dword [0x6c320]
push dword [0x6c2d0]
push dword [ebp + 8]
call fcn.00067051
cmp eax, 2
je 0x67ed2
xor edi, edi
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp - 8]
push dword [0x6c074]
call fcn.00067a90
jmp 0x67eb8
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0x6cd58
push dword [0x6c074]
call edi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x10]
call fcn.00067a58
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x10]
push dword [0x6c074]
call edi
push ebx
push dword [ebp + 0x10]
mov edi, eax
push dword [ebp + 0x10]
call fcn.00067a58
jmp 0x67eba
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0x6cd54
push dword [0x6c074]
call edi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x10]
push dword [0x6c074]
call edi
mov edi, eax
cmp edi, esi
jne 0x67f23
push dword [0x6c094]
call dword [sym.imp.USER32.dll_SetCursor]
push dword [ebp + 0xc]
call fcn.00067bf6
push dword [0x6c094]
call dword [sym.imp.USER32.dll_SetCursor]
push dword [0x6c074]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x6c074], 0xffffffff
cmp dword [ebp - 0xc], esi
je 0x67eff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
cmp dword [ebp - 0x14], esi
je 0x67f0d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x6c034], esi
je 0x67f1a
call fcn.00067ba2
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 0xc
push dword [0x6c074]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [0x6e040]
push esi
push esi
push 0xb9
push dword [0x6c028]
mov dword [0x6c00c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp + 0xc]
call fcn.00062456
push dword [0x6c074]
mov dword [0x6c008], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
or dword [0x6c074], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
cmp dword [0x6c034], esi
je 0x67f83
call fcn.00067ba2
push dword [0x6c094]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
inc eax
jmp 0x67f1c