Function at 0x10041140
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0ff6
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x100fe39c]
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 0x10041183
xor al, al
jmp 0x100413d4
cmp dword [esi + 0x1e8], 8
lea edi, [esi + 0x1d4]
mov eax, edi
jb 0x10041196
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100412bc
lea eax, [ebp - 0x50]
lea ecx, [esi + 0x24]
push eax
call fcn.100428a0
mov dword [ebp - 4], 0
push 0x100d35e9
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x1003f5a0
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1003a3a0
add esp, 0x10
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x10041201
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x10041201
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x10041201
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.1003a430
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.10039d30
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 0x100d10d8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.10008f70
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 0
call fcn.10014cd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.10005430
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x100412a8
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.1003ab80
jmp 0x100413d2
call fcn.1004e090
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x100413b5
push 0x58
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
push 0x100d10e0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.10008e70
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x44]
push 3
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0x100d10dc
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.10008e70
mov byte [ebp - 4], 8
lea eax, [ebp - 0x28]
push 0xa9
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x110]
call fcn.10004210
mov ebx, eax
mov byte [ebp - 4], 9
push str.TaskBarWndImpl::StartDownloadIcon___icon_exixt._path
push ebx
call fcn.10006300
add esp, 8
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x1004136a
mov ecx, dword [edi]
test ecx, ecx
mov eax, 0x100c80b8
cmovne eax, ecx
push eax
push ebx
call fcn.10002da0
add esp, 8
call fcn.1004e090
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x110]
call fcn.100067d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x44]
call fcn.100053b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100053b0
push edi
mov ecx, esi
call fcn.10040920
lea eax, [esi + 0x150]
mov byte [esi + 0x21d], 1
push eax
mov ecx, esi
call fcn.100416b0
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.1004f51c
mov esp, ebp
pop ebp
ret 4