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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100260e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10035b40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x10035b04]
mov edx, dword [eax + 0xc]
mov bl, 2
mov ecx, 0x10035b04
mov byte [ebp - 0xd], bl
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x10035b04]
mov edx, dword [eax + 0xc]
mov ecx, 0x10035b04
mov dword [ebp - 4], 0
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.100025d0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.10004b90
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100073ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x100298e0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.10007280
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.10004b90
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007444
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10007456
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
lea edi, [esi + 0x20]
dec byte [ebp - 0xd]
mov dword [esi + 0xc], 0
mov dword [ebp - 0x1c], 3
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10007488
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
test eax, eax
jg 0x10007476
cmp dword [ebx - 4], 1
jle 0x100074a8
mov ecx, dword [ebx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.100019b0
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
lea eax, [esi + 4]
push eax
lea eax, [esi + 8]
push eax
push edi
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push esi
push edx
push eax
push ebx
push ecx
call fcn.10016d70
add esp, 0x28
test al, al
jne 0x10007568
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 0xc]
push edx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x7d0
mov dword [edi], 0
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 0xd], 0
jne 0x10007465
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000752c
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007552
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp - 0x18]
test eax, eax
je 0x10007580
push edi
push ebx
call fcn.10018d54
add esp, 8
add ebx, 0xfffffff0
mov dword [esi + 0xc], 1
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100075a7
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100075ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10