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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015ff9d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x101ed004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov edi, 0x101d1eb4
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10026186
push eax
lea ecx, [ebp - 0x20]
call fcn.100100c0
push dword [esi + 0x14]
call fcn.10146720
mov edi, dword [ebp - 0x20]
add esp, 4
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
cmp ecx, 0xffffffff
jne 0x100261a6
mov edi, 1
jmp 0x10026315
mov eax, dword [esi + 0x13c]
test eax, eax
jne 0x100261b9
mov dword [ebp - 0x28], 1
jmp 0x100261f8
push 0
lea edx, [ebp - 0x14]
push edx
push eax
lea eax, [esi + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x13c]
je 0x100261ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x144], eax
mov dword [ebp - 0x28], 0
jmp 0x100261f8
mov dword [esi + 0x13c], 0
cmp dword [ebp + 8], 0
jne 0x10026217
mov eax, dword [esi + 0x140]
cmp dword [eax + 0x48], 0
je 0x10026217
mov ecx, dword [eax + 0x64]
test ecx, ecx
je 0x10026217
push edi
call fcn.10011420
mov eax, dword [esi + 0xc]
mov ecx, esi
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x48]
call eax
mov edi, dword [esi + 0x14c]
mov ecx, dword [esi + 0x148]
mov dword [ebp - 0x14], eax
mov eax, 1
test edi, edi
jl 0x10026265
jg 0x10026244
test ecx, ecx
je 0x10026265
cmp edx, edi
jg 0x10026265
jl 0x1002624f
cmp dword [ebp - 0x14], ecx
jae 0x10026265
cmp dword [ebp - 0x28], 0
je 0x10026265
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
and eax, 1
xor edi, edi
mov dword [esi + 0x148], 0xffffffff
cmp dword [ebp - 0x28], edi
mov dword [esi + 0x14c], 0xffffffff
cmovne edi, eax
cmp dword [esi + 0xc], 0xffffffff
je 0x100262e3
lea ecx, [esi + 0x18]
test ecx, ecx
je 0x100262d3
xor edx, edx
cmp dword [esi + 0x24], edx
je 0x10026298
lea edx, [esi + 0x20]
cmp dword [esi + 0x1c], 0
mov eax, ecx
mov dword [ebp - 0x24], 0
cmove eax, dword [ebp - 0x24]
add ecx, 0x10
cmp dword [esi + 0x2c], 0
mov dword [ebp - 0x24], 0
cmove ecx, dword [ebp - 0x24]
test edx, edx
jne 0x100262c7
test eax, eax
jne 0x100262c7
test ecx, ecx
je 0x100262d3
push eax
push ecx
push edx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0xffffffff
cmp dword [ebp + 8], 0
xorps xmm0, xmm0
mov dword [esi + 0x38], 0
movups xmmword [esi + 0x18], xmm0
movq qword [esi + 0x28], xmm0
je 0x1002630b
cmp dword [ebp - 0x1c], 0
je 0x1002630b
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esi + 0x144], 0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1002632c
cmp eax, 0x101d1eb4
je 0x1002632c
push eax
call fcn.10146720
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10142783
mov esp, ebp
pop ebp
ret 4