Function at 0x100088a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10152898
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x101c10e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x10008ac6
add eax, 0xfffffff0
push eax
call fcn.100069c0
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
push 0x2e
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 1
call fcn.1005f795
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10008912
or eax, 0xffffffff
mov dword [ebp - 0x50], eax
jmp 0x10008919
sub edi, esi
sar edi, 1
mov dword [ebp - 0x50], edi
call fcn.100024d0
mov ecx, eax
test ecx, ecx
je 0x10008b59
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x54], edi
mov byte [ebp - 4], 1
call fcn.100024d0
mov ecx, eax
test ecx, ecx
je 0x10008b63
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 2
cmp ecx, 0xffffffff
je 0x100089eb
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x38]
call fcn.10007990
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x54]
call fcn.10005770
mov edx, dword [ebp - 0x44]
or esi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100089a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.10007990
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.10005770
mov edx, dword [ebp - 0x44]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100089e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x54]
jmp 0x100089f7
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
call fcn.10005770
push 0x10154574
push 0x10154b24
lea ecx, [ebp - 0x38]
call fcn.10008630
mov esi, dword [ebp - 0x38]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10008a5b
nop word [eax + eax]
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x54c], 0
jne 0x10008ae3
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push edi
push esi
push dword [ebp - 0x40]
push 0x10154b28
push eax
call fcn.10006cd0
add esp, 0x14
inc esi
mov dword [ebp - 0x48], esi
mov esi, dword [ebp - 0x38]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10008a20
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [eax + 0x8c]
call fcn.10005770
mov edx, dword [ebp - 0x40]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10008a8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10008aaa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x10008ac6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.1005cef4
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10008b37
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10008b37
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x34]
movlpd qword [ebp - 0x4c], xmm0
push eax
push 0
push esi
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10008b3f
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x554], ecx
mov dword [eax + 0x558], edx
jmp 0x10008a5e
xorps xmm0, xmm0
movlpd qword [ebp - 0x4c], xmm0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov dword [eax + 0x554], ecx
mov dword [eax + 0x558], edx
jmp 0x10008a5e
push 0x80004005
call fcn.10002340
push 0x80004005
call fcn.10002340
int3