Function at 0x410390
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4740f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], 1
mov edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4103f1
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00402a30
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040f610
add esp, 4
test eax, eax
jne 0x4103f1
xor edi, edi
jmp 0x41053a
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebp - 0x10], 0
push dword [eax - 0xc]
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x410412
call fcn.00409190
mov eax, dword [ebp + 0xc]
push dword [eax - 0xc]
push eax
call esi
mov esi, eax
test esi, esi
jne 0x410426
call fcn.00409190
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x14]
push eax
push 0x48c4e0
push 1
push 0
push 0x48c4f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x410532
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 0x14]
mov eax, 8
mov word [ebp - 0x28], ax
movq xmm0, qword [ebp - 0x28]
lea eax, [ebp - 0x10]
push eax
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x20], ebx
mov edx, dword [ecx]
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x20]
push ecx
movq qword [eax + 8], xmm0
call dword [edx + 0x24]
test eax, eax
js 0x410525
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 8
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x40], esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 0x10]
sub esp, 0x10
mov eax, 3
mov word [ebp - 0x38], ax
movq xmm0, qword [ebp - 0x38]
mov eax, esp
mov dword [ebp - 0x30], 0x614
mov edx, dword [ecx]
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [eax + 8], xmm0
movq xmm0, qword [ebp - 0x48]
sub esp, 0x10
mov eax, esp
push ecx
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [eax + 8], xmm0
call dword [edx + 0x3c]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push ebx
call esi
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x410534
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
xor edi, edi
call dword [ecx + 8]
jmp 0x410534
xor edi, edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41055d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x41057e
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret