Function at 0x1000c880
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10096dac
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x100de66c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0
mov dword [ecx + 4], eax
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.1000cb20
push 1
mov ecx, eax
call fcn.1004aa20
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10070b90
lea eax, [ebp - 0x24c]
push 1
push eax
call fcn.100461c0
add esp, 0x14
push dword [ebp - 0x24c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 4], 0
call esi
push str.LogCleanTpi.log
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000c938
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
push eax
call fcn.100334e0
call fcn.100331e0
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1000cac1
push 0x58
push 0x100a7668
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.10009d20
push 3
push 0x100a76c4
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.10009d20
mov byte [ebp - 4], 2
call fcn.100331e0
mov edi, eax
lea ecx, [ebp - 0x2e4]
push 0x2c
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10003fe0
mov esi, eax
push 0x100a76c8
push esi
mov byte [ebp - 4], 3
call fcn.10002f30
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.10002f30
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2e4]
call fcn.10005390
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x1000ca51
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000ca47
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cb08
push edx
push ecx
call fcn.100307d8
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x1000caa6
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000ca9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cb0d
push edx
push ecx
call fcn.100307d8
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
mov edx, dword [ebp - 0x24c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000cae6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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.10030b57
mov esp, ebp
pop ebp
ret 8
call fcn.10073f6e
call fcn.10073f6e
int3