Function at 0x1002fd40
Capabilities:
Clear file content
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101606ed
mov eax, dword fs:[0]
push eax
sub esp, 0x28
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 edi, ecx
xor ecx, ecx
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [edi + 0x58], 0
mov eax, 0x101d1eb4
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x1002fdc2
push eax
lea ecx, [ebp - 0x1c]
call fcn.100100c0
push dword [edi + 0x6c]
call fcn.10146720
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
cmp dword [edi + 0x68], 0xffffffff
mov dword [edi + 0x6c], 0
jne 0x1002fdd9
mov esi, 1
jmp 0x1002ff56
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1002fe23
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1002fe1c
lea esi, [edi + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [edi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xc], 0
cmp dword [ebp + 8], 0
mov esi, dword [edi + 0x54]
mov dword [ebp - 0x20], esi
mov dword [edi + 0x54], 0
jne 0x1002fe51
mov eax, dword [edi + 0x88]
cmp dword [eax + 0x48], 0
je 0x1002fe51
mov ecx, dword [eax + 0x64]
test ecx, ecx
je 0x1002fe51
push dword [ebp - 0x24]
call fcn.10011420
mov eax, dword [edi + 0x68]
mov ecx, edi
mov dword [ebp - 0x34], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x48]
call eax
mov ecx, dword [edi + 0xa0]
mov dword [ebp - 0x2c], edx
mov edx, dword [edi + 0xa4]
mov dword [ebp - 0x30], eax
mov eax, 1
test edx, edx
jl 0x1002fea2
jg 0x1002fe81
test ecx, ecx
je 0x1002fea2
cmp dword [ebp - 0x2c], edx
jg 0x1002fea2
jl 0x1002fe8d
cmp dword [ebp - 0x30], ecx
jae 0x1002fea2
cmp esi, 1
je 0x1002fea2
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
and eax, 1
xor esi, esi
mov dword [edi + 0xa0], 0xffffffff
cmp dword [ebp - 0x20], 1
mov dword [edi + 0xa4], 0xffffffff
cmovne esi, eax
cmp dword [edi + 0x68], 0xffffffff
je 0x1002ff21
test esi, esi
je 0x1002ff18
lea ecx, [edi + 0x70]
test ecx, ecx
je 0x1002ff18
xor edx, edx
cmp dword [edi + 0x7c], edx
je 0x1002feda
lea edx, [edi + 0x78]
cmp dword [edi + 0x74], 0
mov eax, ecx
mov dword [ebp - 0x20], 0
cmove eax, dword [ebp - 0x20]
add ecx, 0x10
cmp dword [edi + 0x84], 0
mov dword [ebp - 0x20], 0
cmove ecx, dword [ebp - 0x20]
test edx, edx
jne 0x1002ff0c
test eax, eax
jne 0x1002ff0c
test ecx, ecx
je 0x1002ff18
push eax
push ecx
push edx
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0
xorps xmm0, xmm0
mov dword [edi + 0x68], 0xffffffff
mov dword [edi + 0x98], 0
movups xmmword [edi + 0x70], xmm0
movq qword [edi + 0x80], xmm0
je 0x1002ff56
cmp dword [ebp - 0x28], 0
je 0x1002ff56
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1002ff6d
cmp eax, 0x101d1eb4
je 0x1002ff6d
push eax
call fcn.10146720
add esp, 4
mov eax, esi
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