Function at 0x409a10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4226b7
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x42d00c]
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 dword [ebp - 0x474], edx
mov esi, ecx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebx
test eax, eax
je 0x409e95
push 0
push 0
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 0
call fcn.004081b0
mov dword [ebp - 0x470], eax
push 0
lea edx, [ebp - 0x470]
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00406f80
add esp, 4
test eax, eax
jne 0x409a9e
xor esi, esi
jmp 0x409e7a
mov eax, dword [ebp - 0x470]
mov esi, dword [eax]
cmp esi, eax
je 0x409e75
mov edi, 1
nop dword [eax]
nop word [eax + eax]
xor ecx, ecx
mov dword [ebp - 0x224], 7
push 0xffffffffffffffff
push ecx
lea eax, [esi + 8]
mov word [ebp - 0x238], cx
push eax
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], 0
call fcn.00402120
mov esi, dword [esi]
push 6
push 0
mov dword [ebp - method.QMTShortCut.virtual_0], vtable.QMTShortCut.0
mov dword [ebp - method.CQMTInitializeCOMThread.virtual_0], vtable.CQMTInitializeCOMThread.0
mov dword [ebp - 0x458], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ecx, dword [ebp - 0x458]
test eax, eax
mov dword [ebp - 0x454], 0
cmove ecx, edi
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x458], ecx
mov dword [ebp - 0x44c], 1
mov byte [ebp - 4], 2
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x409dbe
cmp dword [ebp - 0x224], 8
lea edi, [ebp - 0x238]
cmovae edi, dword [ebp - 0x238]
push edi
call ebx
test eax, eax
jne 0x409b91
mov ebx, 0x80004005
jmp 0x409bd7
lea ecx, [ebp - 0x460]
call fcn.0040bde0
test eax, eax
jns 0x409ba7
mov ebx, 0x80004005
jmp 0x409bd7
mov eax, dword [ebp - 0x450]
push 0
mov dword [ebp - 0x44c], 1
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push edi
mov ebx, eax
lea eax, [ebp - 0x448]
push 0x104
push eax
call fcn.00416168
add esp, 0xc
test ebx, ebx
js 0x409db3
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0040f860
mov eax, dword [ebp - 0x454]
lea edx, [ebp - 0x220]
add esp, 0xc
mov ecx, dword [eax]
push 0
push 0
push 0x104
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x409db3
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x468]
call fcn.00404f30
push dword [ebp - 0x474]
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 3
call fcn.00404f30
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x468]
mov edi, dword [eax - 0xc]
test edi, edi
js 0x409eb1
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x409c78
push edi
lea ecx, [ebp - 0x468]
call fcn.00405fd0
mov eax, dword [ebp - 0x468]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.004153e3
mov eax, dword [ebp - 0x468]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x409eb1
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x468]
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x464]
mov edi, dword [eax - 0xc]
test edi, edi
js 0x409eb1
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x409cd7
push edi
lea ecx, [ebp - 0x464]
call fcn.00405fd0
mov eax, dword [ebp - 0x464]
lea ecx, [edi + 1]
push ecx
push eax
call fcn.004153e3
mov eax, dword [ebp - 0x464]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x409eb1
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x464]
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x464]
test eax, eax
je 0x409d75
mov ecx, dword [ebp - 0x468]
cmp dword [ecx - 0xc], 0
jl 0x409d75
push eax
push ecx
call fcn.0040f444
add esp, 8
test eax, eax
je 0x409d6f
sub eax, dword [ebp - 0x468]
sar eax, 1
js 0x409d6f
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
cmovae ecx, dword [ebp - 0x238]
xor edx, edx
call fcn.00406630
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push 0
cmovae eax, dword [ebp - 0x238]
push eax
push 0x3005
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [ebp - 0x464]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 3
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409d91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x468]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409db3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, 1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x450]
mov dword [ebp - method.QMTShortCut.virtual_0], vtable.QMTShortCut.0
test ecx, ecx
je 0x409df0
mov eax, ecx
xor ecx, ecx
mov dword [ebp - 0x450], ecx
test eax, eax
je 0x409df0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x450]
mov edx, dword [ebp - 0x454]
test edx, edx
je 0x409e1a
mov eax, edx
xor edx, edx
mov dword [ebp - 0x454], edx
test eax, eax
je 0x409e1a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x450]
mov edx, dword [ebp - 0x454]
test ecx, ecx
je 0x409e2a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x454]
test edx, edx
je 0x409e34
mov eax, dword [edx]
push edx
call dword [eax + 8]
cmp dword [ebp - 0x458], 0
mov dword [ebp - method.CQMTInitializeCOMThread.virtual_0], vtable.CQMTInitializeCOMThread.0
je 0x409e4d
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x409e69
inc eax
push eax
push dword [ebp - 0x238]
call fcn.00402450
cmp esi, dword [ebp - 0x470]
jne 0x409ac0
mov esi, 1
lea ecx, [ebp - 0x470]
call fcn.0040a4e0
push dword [ebp - 0x470]
call fcn.0040d31b
add esp, 4
mov eax, esi
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.0040d320
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00405f60
int3