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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1014b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
push esi
mov esi, ecx
push edi
test ebx, ebx
je 0x1002c454
mov eax, dword [0x1014fdac]
test eax, eax
jne 0x1002c322
push 0x1014a070
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1014fdac], 0
jne 0x1002c312
push 0x10
call fcn.100bb0a7
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1002c303
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x1002c305
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x10]
lock or dword [ecx], edx
mov dword [0x1014fdac], eax
push 0x1014a070
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x1014fdac]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1002c454
mov eax, dword [ecx]
call dword [eax]
mov edi, eax
test edi, edi
je 0x1002c454
mov eax, dword [edi]
mov ecx, edi
push 0
push str.ungzip
call dword [eax + 0x30]
mov eax, dword [edi]
mov ecx, edi
push 0
push str.gzip
call dword [eax + 0x30]
test edi, edi
je 0x1002c454
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push edi
mov dword [ebp - 8], 0
call fcn.10019770
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov edi, dword [esi + 8]
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
test edi, edi
je 0x1002c3b0
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x1002c3ad
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x1002c3ad
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [esi + 4]
push esi
mov eax, dword [ecx]
call dword [eax]
mov edi, dword [ebp - 0x14]
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002c3db
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002c454
mov ecx, dword [esi + 4]
push dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [esi + 4]
push dword [ebp - 0x18]
push 0
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x1002c454
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1002c454
mov ecx, dword [ebp - 0x1c]
push ebx
test ecx, ecx
je 0x1002c433
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x1002c454
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bb073
mov esp, ebp
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1002c454
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bb073
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bb073
mov esp, ebp
pop ebp
ret 0x10