Function at 0x1007cd4
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 0x1007ced
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 0x1007d2e
cmp dword [ebp + 0x10], esi
jne 0x1007d1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1007d27
push dword [ebp + 0xc]
call fcn.01007c4a
xor eax, eax
jmp 0x1007f1b
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 0x1007d4e
call fcn.01007b94
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 0x1007ec7
push eax
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov dword [ebp + 0x10], eax
cmp eax, esi
je 0x1007ec7
mov eax, dword [0x100e040]
dec eax
je 0x1007e87
dec eax
je 0x1007e3d
dec eax
jne 0x1007dbe
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 0x1007dda
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
mov edi, 0x400
jmp 0x1007de5
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 0x1007e04
cmp ebx, esi
je 0x1007e28
cmp eax, esi
jne 0x1007e28
push 0x31
push dword [ebp + 0xc]
push dword [0x100c320]
push dword [0x100c2d0]
push dword [ebp + 8]
call fcn.01007071
cmp eax, 2
je 0x1007ecf
xor edi, edi
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp - 8]
push dword [0x100c074]
call fcn.01007ae4
jmp 0x1007eb5
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.01007aac
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.01007aac
jmp 0x1007eb7
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 0x1007f20
push dword [0x100c094]
call dword [sym.imp.USER32.dll_SetCursor]
push dword [ebp + 0xc]
call fcn.01007c4a
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 0x1007efc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
cmp dword [ebp - 0x14], esi
je 0x1007f0a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x100c034], esi
je 0x1007f17
call fcn.01007bf6
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.0100283c
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 0x1007f80
call fcn.01007bf6
push dword [0x100c094]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
inc eax
jmp 0x1007f19