Function at 0x4ad450
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x504be0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, dword [esp + 0x5c]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
test eax, 0xfffffffc
jne 0x4ad4a9
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0047f690
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov edx, dword [esp + 0x58]
push edx
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x54], 0
call fcn.00474090
mov byte [esp + 0x50], 1
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x4ad4dc
call fcn.004e48f7
mov ebx, dword [edi]
mov ebp, esi
mov dword [esp + 0x2c], ebp
mov esi, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
jbe 0x4ad4f1
call fcn.004e48f7
mov eax, dword [edi]
xor edi, edi
cmp ebx, edi
je 0x4ad4fd
cmp ebx, eax
je 0x4ad502
call fcn.004e48f7
cmp ebp, esi
jae 0x4ad622
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x50], 2
cmp ebx, edi
jne 0x4ad58d
call fcn.004e48f7
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4ad53b
call fcn.004e48f7
mov ecx, dword [ebp]
mov edx, dword [esp + 0x58]
push ecx
push edx
push 0x512580
lea edi, [esp + 0x24]
call fcn.00404890
add esp, 0xc
push 0x511ddc
push 0x517bb4
mov eax, edi
push eax
call fcn.0041e6f0
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ad591
lea eax, [ebp - 0x10]
mov byte [esp + 0x50], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4ad5e7
mov eax, dword [ebx]
jmp 0x4ad531
push ebp
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov esi, eax
mov dword [esp + 0x24], esi
push esi
mov byte [esp + 0x54], 3
call dword [sym.imp.SHELL32.dll_ILFindLastID]
push eax
call dword [sym.imp.SHELL32.dll_ILClone]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4ad5c7
lea ecx, [esp + 0x20]
push ecx
lea edi, [esp + 0x34]
call fcn.00422800
test esi, esi
je 0x4ad5d2
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x10]
mov byte [esp + 0x50], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ad5f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x4ad61e
call fcn.004e48f7
xor eax, eax
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [eax + 0x10]
jb 0x4ad60c
call fcn.004e48f7
add dword [esp + 0x2c], 4
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x2c]
jmp 0x4ad4e4
mov eax, dword [ebx]
jmp 0x4ad5fe
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov ecx, eax
sub ecx, esi
sar ecx, 2
cmp ecx, edi
jne 0x4ad693
mov edx, dword [esp + 0x58]
push edx
call fcn.0047f690
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, edi
je 0x4ad655
push eax
call fcn.004e3ed0
add esp, 4
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call fcn.004e3ed0
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, edi
je 0x4ad67d
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
ja 0x4ad6a2
call fcn.004e48f7
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
sub eax, esi
sar eax, 2
push ecx
mov edi, eax
call fcn.0047f520
mov esi, dword [esp + 0x40]
add esp, 4
mov dword [esp + 0x5c], eax
cmp esi, dword [esp + 0x40]
jbe 0x4ad6c9
call fcn.004e48f7
mov edi, dword [esp + 0x30]
lea ecx, [ecx]
mov ebp, dword [esp + 0x40]
cmp dword [esp + 0x3c], ebp
jbe 0x4ad6df
call fcn.004e48f7
xor ebx, ebx
cmp edi, ebx
je 0x4ad6eb
cmp edi, dword [esp + 0x30]
je 0x4ad6f0
call fcn.004e48f7
cmp esi, ebp
jae 0x4ad734
cmp edi, ebx
jne 0x4ad72c
call fcn.004e48f7
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4ad709
call fcn.004e48f7
mov edx, dword [esi]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp edi, ebx
jne 0x4ad730
call fcn.004e48f7
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4ad727
call fcn.004e48f7
add esi, 4
jmp 0x4ad6d0
mov eax, dword [edi]
jmp 0x4ad6ff
mov eax, dword [edi]
jmp 0x4ad71d
mov ebp, dword [esp + 0x40]
cmp dword [esp + 0x3c], ebp
jbe 0x4ad743
call fcn.004e48f7
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
cmp edi, dword [esp + 0x40]
jbe 0x4ad756
call fcn.004e48f7
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x38]
push ecx
lea esi, [esp + 0x44]
call fcn.004ad3c0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x4ad77d
push eax
call fcn.004e3ed0
add esp, 4
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.004e3ed0
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebx
je 0x4ad7a5
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret