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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60f606
mov eax, dword fs:[0]
push eax
sub esp, 0x53c
mov eax, dword [0x685680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x544], eax
mov eax, dword [ebp + 0x14]
push 0x103
mov dword [ebp - 0x540], eax
lea eax, [ebp - 0x327]
push 0
push eax
mov byte [ebp - 0x328], 0
call fcn.005d1b40
add esp, 0xc
lea eax, [ebp - 0x117]
push 0x103
push 0
push eax
mov byte [ebp - 0x118], 0
call fcn.005d1b40
add esp, 0xc
lea eax, [ebp - 0x42f]
push 0x103
push 0
push eax
mov byte [ebp - 0x430], 0
call fcn.005d1b40
add esp, 0xc
lea eax, [ebp - 0x537]
push 0x103
push 0
push eax
mov byte [ebp - 0x538], 0
call fcn.005d1b40
add esp, 0xc
lea eax, [ebp - 0x21f]
push 0x103
push 0
push eax
mov byte [ebp - 0x220], 0
call fcn.005d1b40
add esp, 0xc
lea ecx, [ebp - 0x53c]
push str.bProtector_extensions.sqlite
mov dword [ebp - 0x53c], 0
call fcn.0042ea30
mov dword [ebp - 4], 0
push dword [edi + 0xc]
lea eax, [ebp - 0x328]
push 0x104
push eax
call fcn.005ce4c0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
lea eax, [ebp - 0x328]
push str.extensions.sqlite
push eax
call esi
push dword [edi + 0xc]
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.005ce4c0
add esp, 0xc
lea eax, [ebp - 0x118]
push str.extensions.log
push eax
call esi
push dword [edi + 0xc]
lea eax, [ebp - 0x538]
push 0x104
push eax
call fcn.005ce4c0
mov eax, dword [ebp - 0x53c]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
add esp, 0xc
or ecx, edx
jge 0x4495fc
push 0x104
lea ecx, [ebp - 0x53c]
call fcn.00403150
mov eax, dword [ebp - 0x53c]
push eax
lea eax, [ebp - 0x538]
push eax
call esi
mov eax, dword [ebp - 0x53c]
push dword [eax - 8]
push eax
call fcn.005cfcd3
add esp, 8
test eax, eax
js 0x4497d8
mov ecx, dword [ebp - 0x53c]
cmp eax, dword [ecx - 8]
jg 0x4497d8
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x53c]
mov byte [eax + ecx], 0
push dword [edi + 0xc]
lea eax, [ebp - 0x430]
push 0x104
push eax
call fcn.005ce4c0
add esp, 0xc
lea eax, [ebp - 0x430]
push str.extensions.ini
push eax
call esi
push dword [edi + 0xc]
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.005ce4c0
add esp, 0xc
lea eax, [ebp - 0x220]
push str.extensions_
push eax
call esi
push dword [edi + 0x978]
lea eax, [ebp - 0x220]
push eax
call esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x449706
mov eax, dword [ebp - 0x540]
mov dword [eax], 1
cmp dword [edi + 0x984], 0
jne 0x449706
cmp dword [edi + 0x988], 1
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jne 0x4496ea
push 0x3e8
call ebx
lea eax, [ebp - 0x328]
push eax
call esi
mov dword [edi + 0x984], 1
cmp dword [edi + 0x988], 0
jne 0x4496fd
mov dword [edi + 0x988], 1
lea eax, [ebp - 0x118]
push eax
call esi
push 0x3e8
call ebx
mov eax, dword [0x686984]
mov ecx, 0x686984
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x540], eax
push dword [ebp - 0x544]
lea eax, [ebp - 0x540]
push 0x6516cc
push eax
mov byte [ebp - 4], 1
call fcn.00402f20
add esp, 0xc
lea ecx, [ebp - 0x540]
push 0x651e5c
push 0x650e58
call fcn.0040a890
mov ebx, dword [ebp - 0x540]
push ecx
add ebx, 0xfffffff0
mov esi, esp
push ebx
call fcn.0040a5a0
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [esi], eax
call fcn.004497f0
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x449794
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x53c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4497b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005cd355
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.00403360
int3