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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10095a4c
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x100d8574]
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.1000c930
push 1
mov ecx, eax
call fcn.100495b0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100702c0
lea eax, [ebp - 0x24c]
push 1
push eax
call fcn.10044d00
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 0x1000c748
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
push eax
call fcn.10030a90
call fcn.10030790
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1000c8d1
push 0x58
push 0x100a4c30
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.10009b30
push 3
push 0x100a4c8c
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.10009b30
mov byte [ebp - 4], 2
call fcn.10030790
mov edi, eax
lea ecx, [ebp - 0x2e4]
push 0x2c
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10003b70
mov esi, eax
push 0x100a4c90
push esi
mov byte [ebp - 4], 3
call fcn.10002ac0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.10002ac0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x2e4]
call fcn.10004f30
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x1000c861
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000c857
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000c918
push edx
push ecx
call fcn.10033972
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 0x1000c8b6
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000c8ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000c91d
push edx
push ecx
call fcn.10033972
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 0x1000c8f6
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.10033cf1
mov esp, ebp
pop ebp
ret 8
call fcn.10073759
call fcn.10073759
int3