Function at 0x10025790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c432
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10070660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov edi, ecx
mov dword [ebp + 8], esi
call fcn.10015930
push ebx
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], esi
call fcn.10003c80
add esp, 0x10
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov esi, dword [ebx + 4]
lea edi, [ebx + 4]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x10025834
cmp dword [esi + 0xc], 0
jl 0x10025829
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10025829
call fcn.10001670
mov dword [ebp - 0x10], eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002581f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x10025834
mov eax, dword [ecx - 0xc]
push eax
push ecx
push edi
call fcn.10001ac0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10025857
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002587d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100258b0
mov eax, dword [edi]
lea eax, [eax - 0x10]
call fcn.10001670
lea ecx, [eax + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
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 ebx
call fcn.10025980
test al, al
je 0x100258d7
mov eax, dword [edi]
lea eax, [eax - 0x10]
call fcn.10001670
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ebx, 2
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
jmp 0x100258f1
lea edx, [ebp - 0x1c]
push edx
mov ecx, 0x10061c7c
call fcn.10001bb0
mov dword [ebp - 4], 3
mov ebx, 4
mov eax, dword [eax]
sub eax, 0x10
mov dword [ebp + 8], ebx
call fcn.10001670
mov esi, dword [ebp + 0xc]
add eax, 0x10
or ebx, 1
mov dword [esi], eax
mov dword [ebp - 4], 2
test bl, 4
je 0x1002593a
mov eax, dword [ebp - 0x1c]
and ebx, 0xfffffffb
add eax, 0xfffffff0
mov dword [ebp + 8], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002593a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x10025965
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10025965
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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