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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
push esi
push 0x80
push 4
mov dword [ebp - 0x10], esi
push esi
jne 0x1006c9f
push 1
jmp 0x1006ca1
push 3
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x100c4e0], eax
je 0x1006cd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
cmp dword [0x100c4e0], 0xffffffff
mov dword [ebp - 0x14], ecx
jne 0x1006cf5
push 0x30
push dword [ebp + 0xc]
push dword [0x100b0b8]
push dword [0x100b0a4]
push dword [ebp + 8]
call fcn.0100438f
xor eax, eax
jmp 0x1006ecf
cmp dword [0x100bab8], esi
je 0x1006d02
call fcn.01006a46
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push esi
push 0xe
push dword [0x100baa0]
call edi
push esi
push esi
push 0xbd
push dword [0x100baa0]
mov ebx, eax
call edi
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x1006e7b
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
cmp eax, esi
mov dword [ebp + 0x10], eax
je 0x1006e7b
mov eax, dword [0x100c588]
dec eax
je 0x1006e3b
dec eax
je 0x1006df1
dec eax
jne 0x1006d72
push esi
lea eax, [ebp - 4]
push eax
push 3
push 0x100b240
push dword [0x100c4e0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x100c588], 3
je 0x1006d8e
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
mov edi, 0x400
jmp 0x1006d99
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 0x1006db8
cmp ebx, esi
je 0x1006ddc
cmp eax, esi
jne 0x1006ddc
push 0x31
push dword [ebp + 0xc]
push dword [0x100b0f0]
push dword [0x100b0a4]
push dword [ebp + 8]
call fcn.0100438f
cmp eax, 2
je 0x1006e83
xor edi, edi
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp - 8]
push dword [0x100c4e0]
call fcn.0100699d
jmp 0x1006e69
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0x100b248
push dword [0x100c4e0]
call edi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x10]
call fcn.01006971
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x10]
push dword [0x100c4e0]
call edi
push ebx
push dword [ebp + 0x10]
mov edi, eax
push dword [ebp + 0x10]
call fcn.01006971
jmp 0x1006e6b
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0x100b244
push dword [0x100c4e0]
call edi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x10]
push dword [0x100c4e0]
call edi
mov edi, eax
cmp edi, esi
jne 0x1006ed4
push dword [0x100cbe8]
call dword [sym.imp.USER32.dll_SetCursor]
push dword [ebp + 0xc]
call fcn.01006bfd
push dword [0x100cbe8]
call dword [sym.imp.USER32.dll_SetCursor]
push dword [0x100c4e0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100c4e0], 0xffffffff
cmp dword [ebp - 0xc], esi
je 0x1006eb0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
cmp dword [ebp - 0x14], esi
je 0x1006ebe
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x100bab8], esi
je 0x1006ecb
call fcn.01006aa1
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 0xc
push dword [0x100c4e0]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [0x100c588]
push esi
push esi
push 0xb9
push dword [0x100baa0]
mov dword [0x100b080], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp + 0xc]
call fcn.01004a8c
push dword [0x100c4e0]
mov dword [0x100b06c], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
or dword [0x100c4e0], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
cmp dword [0x100bab8], esi
je 0x1006f34
call fcn.01006aa1
push dword [0x100cbe8]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
inc eax
jmp 0x1006ecd