Function at 0x10022800
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017cd2d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101e6040]
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
mov eax, dword [0x101c5980]
xor ecx, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [edi + 0x68], 0
mov dword [ebp - 0x20], 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 + 0x7c]
test eax, eax
je 0x10022882
push eax
lea ecx, [ebp - 0x1c]
call fcn.1000bc60
push dword [edi + 0x7c]
call fcn.10154f5a
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp dword [edi + 0x78], 0xffffffff
mov dword [edi + 0x7c], 0
jne 0x10022899
mov esi, 1
jmp 0x100229e5
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100228e3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100228dc
lea esi, [edi + 0x40]
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
mov esi, dword [ebp - 0x20]
xor eax, eax
cmp dword [edi + 0x64], 1
mov dword [edi + 0x64], 0
setne al
cmp dword [ebp + 8], 0
mov dword [ebp - 0x24], eax
jne 0x1002291e
mov ecx, dword [edi + 0x98]
cmp dword [ecx + 0x54], 0
je 0x1002291e
mov ecx, dword [ecx + 0x88]
test ecx, ecx
je 0x1002291e
push esi
call fcn.1000cfc0
mov eax, dword [ebp - 0x24]
push ecx
push dword [edi + 0x78]
mov ecx, edi
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0x4c]
call eax
push edx
push eax
lea ecx, [edi + 0xb0]
call fcn.1006d060
neg eax
sbb eax, eax
and eax, dword [ebp - 0x24]
cmp dword [edi + 0x78], 0xffffffff
mov dword [ebp - 0x30], eax
je 0x100229ac
test eax, eax
je 0x100229a3
lea edx, [edi + 0x80]
test edx, edx
je 0x100229a3
xor ecx, ecx
mov dword [ebp - 0x24], 0
cmp dword [edi + 0x8c], ecx
lea eax, [edi + 0x88]
cmove eax, ecx
cmp dword [edi + 0x84], ecx
mov dword [ebp - 0x2c], eax
mov eax, edx
cmove eax, ecx
cmp dword [edx + 0x14], 0
lea ecx, [edx + 0x10]
mov edx, dword [ebp - 0x2c]
cmove ecx, dword [ebp - 0x24]
test edx, edx
jne 0x10022997
test eax, eax
jne 0x10022997
test ecx, ecx
je 0x100229a3
push eax
push ecx
push edx
push dword [edi + 0x78]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [edi + 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0
xorps xmm0, xmm0
mov dword [edi + 0x78], 0xffffffff
mov dword [edi + 0xa8], 0
movups xmmword [edi + 0x80], xmm0
movq qword [edi + 0x90], xmm0
je 0x100229e2
cmp dword [ebp - 0x28], 0
je 0x100229e2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100229fd
cmp eax, dword [0x101c5980]
je 0x100229fd
push eax
call fcn.10154f5a
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.10151433
mov esp, ebp
pop ebp
ret 4