Function at 0x1000a940
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042818
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1005545c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1000a98a
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 8
call fcn.10001c90
mov ecx, eax
test ecx, ecx
je 0x1000abc0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x2c]
cmp dword [eax - 0xc], 0
jne 0x1000a9f8
push str.ani_img_is_null.
call fcn.10001490
add esp, 4
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000a9e2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
push dword [edi]
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp + 8]
push str._s_d_s
push eax
call fcn.1000a610
mov esi, dword [ebp + 8]
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000a9c1
mov ebx, dword [ebx]
lea ecx, [esi - 0x10]
sub ebx, 0x10
cmp ecx, ebx
je 0x1000aa77
cmp dword [ebx + 0xc], 0
jl 0x1000aa67
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x1000aa67
push ecx
call fcn.10002cb0
add esp, 4
mov dword [ebp - 0x14], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000aa5d
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebx], eax
jmp 0x1000aa7a
push dword [esi - 0xc]
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push esi
call fcn.100018b0
jmp 0x1000aa7a
mov ebx, dword [ebp - 0x10]
mov eax, dword [edi + 0x30]
cmp dword [eax - 0xc], 0
jne 0x1000aa8d
push str.close_img_is_null.
jmp 0x1000a9b9
push eax
push dword [edi]
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp + 8]
push str._s_d_s
push eax
call fcn.1000a610
mov esi, dword [ebp + 8]
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000a9c1
lea ecx, [ebx + 4]
mov ebx, dword [ecx]
lea edx, [esi - 0x10]
sub ebx, 0x10
mov dword [ebp - 0x18], ecx
cmp edx, ebx
je 0x1000ab0f
cmp dword [ebx + 0xc], 0
jl 0x1000ab06
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x1000ab06
push edx
call fcn.10002cb0
add esp, 4
mov dword [ebp - 0x14], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000aafc
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
add eax, 0x10
mov dword [ecx], eax
jmp 0x1000ab0f
push dword [esi - 0xc]
push esi
call fcn.100018b0
mov eax, dword [edi + 0x34]
cmp dword [eax - 0xc], 0
je 0x1000aba1
push eax
push dword [edi]
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp + 8]
push str._s_d_s
push eax
call fcn.1000a610
mov esi, dword [ebp + 8]
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000a9c1
mov ecx, dword [ebp - 0x10]
lea edx, [esi - 0x10]
add ecx, 8
mov dword [ebp - 0x18], ecx
mov ebx, dword [ecx]
sub ebx, 0x10
cmp edx, ebx
je 0x1000aba1
cmp dword [ebx + 0xc], 0
jl 0x1000ab98
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x1000ab98
push edx
call fcn.10002cb0
add esp, 4
mov dword [ebp + 0xc], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000ab8e
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
add eax, 0x10
mov dword [ecx], eax
jmp 0x1000aba1
push dword [esi - 0xc]
push esi
call fcn.100018b0
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0xc], edi
push dword [edi]
push str.CPluginRes_Init_return_true__id__d_
call fcn.10001490
add esp, 8
mov edi, 1
jmp 0x1000a9c3
push 0x80004005
call fcn.10001f00
int3