Function at 0x10041940
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c7d26
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x1010739c]
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 esi, ecx
cmp byte [esi + 0x38], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
jne 0x10041983
xor al, al
jmp 0x10041bd4
cmp dword [esi + 0x218], 8
lea edi, [esi + 0x204]
mov eax, edi
jb 0x10041996
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10041abc
lea eax, [ebp - 0x50]
lea ecx, [esi + 0x24]
push eax
call fcn.10042b30
mov dword [ebp - 4], 0
push 0x100db5d5
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x1003f830
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1003a6b0
add esp, 0x10
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x10041a01
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x10041a01
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x10041a01
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
sub esp, 0x10
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.1003a740
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.1003a040
mov byte [ebp - 4], 4
xor eax, eax
push eax
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0
push 0x100d91cc
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.10009130
mov byte [ebp - 4], 5
lea eax, [ebp - 0x44]
push 0
push 0xea60
push eax
lea eax, [ebp - 0x78]
push eax
push edi
push dword [ebp - 0x48]
lea ecx, [esi + 0x90]
push 2
call fcn.10014fe0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.100055d0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x10041aa8
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x78]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.1003aea0
jmp 0x10041bd2
call fcn.1004f380
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x10041bb5
push 0x58
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
push 0x100d91d0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.10009030
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x44]
push 3
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0x100d922c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.10009030
mov byte [ebp - 4], 8
lea eax, [ebp - 0x28]
push 0xc0
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x110]
call fcn.100043b0
mov ebx, eax
mov byte [ebp - 4], 9
push str.TaskBarWndImpl::StartDownloadIcon___thumbnail_exixt._path
push ebx
call fcn.100064a0
add esp, 8
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x10041b6a
mov ecx, dword [edi]
test ecx, ecx
mov eax, 0x100d00c4
cmovne eax, ecx
push eax
push ebx
call fcn.10002f70
add esp, 8
call fcn.1004f380
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x110]
call fcn.10006970
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x44]
call fcn.10005550
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005550
push edi
mov ecx, esi
call fcn.10040d50
lea eax, [esi + 0x168]
mov byte [esi + 0x21e], 1
push eax
mov ecx, esi
call fcn.10041690
mov al, 1
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.100512b9
mov esp, ebp
pop ebp
ret 4