Function at 0x40a6a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43287b
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x443080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.WrapPlugin.dll
mov dword [edi], 0
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [edi], eax
test eax, eax
jne 0x40a85b
mov eax, dword fs:[0x2c]
mov ecx, dword [0x444ce4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x444b00]
cmp eax, dword [ecx + 4]
jg 0x40a94b
push 0x444ae8
lea ecx, [ebp - 0x70]
call fcn.0040a5e0
push str.WrapPlugin.dll
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 3
call fcn.004136d0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov byte [ebp - 4], 5
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x70]
call fcn.0040acd0
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmova eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x40a808
push 0x20219
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0xf
movups xmmword [ecx], xmm0
push str.InstallLocation
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00409f10
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
xorps xmm0, xmm0
push 0x5e
movups xmmword [ecx], xmm0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallA9861883_31C5_4324_BD9A_DC9527EEB675_is1
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00409f10
push 0x80000002
mov byte [ebp - 4], 5
call fcn.0040fb60
add esp, 0x3c
test eax, eax
je 0x40a808
push str.WrapPlugin.dll
lea ecx, [ebp - 0x28]
call fcn.004136d0
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x40a84c
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push eax
call fcn.0040b610
add esp, 8
test eax, eax
je 0x40a84c
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 8
cmova eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [edi], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040acd0
mov eax, dword [edi]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x40a92e
push 0x24
call fcn.00414764
mov esi, eax
add esp, 4
mov dword [ebp - 0x30], esi
test esi, esi
je 0x40a8d2
mov eax, dword [ebp - 0x2c]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov dword [esi + 0x18], 0
mov dword [esi], vtable.PluginLoader::CPlugin.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x18], eax
jmp 0x40a8d4
xor esi, esi
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
cmp eax, fcn.00411080
jne 0x40a8e8
call fcn.00411080
jmp 0x40a8ea
call eax
test eax, eax
jne 0x40a92b
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], 7
mov dword [esi], vtable.PluginLoader::CPlugin.0
test eax, eax
je 0x40a90a
push dword [esi + 0x20]
call eax
add esp, 4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40a91e
cmp dword [esi + 0x1c], 0
je 0x40a91e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x24
push esi
call fcn.00414794
add esp, 8
xor esi, esi
mov dword [edi + 4], esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414ae1
mov esp, ebp
pop ebp
ret
push 0x444b00
call fcn.00414a7d
add esp, 4
cmp dword [0x444b00], 0xffffffff
jne 0x40a70e
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 0x43502c
mov dword [ebp - 0x34], eax
xorps xmm0, xmm0
mov dword [0x444af8], 0
xor eax, eax
mov dword [0x444afc], 7
movups xmmword [0x444ae8], xmm0
mov word [0x444ae8], ax
push 0x444ae8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004131f0
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x40a9d0
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x58]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x34], 0
jmp 0x40a9d0
push 0x4339d0
call fcn.004149ec
push 0x444b00
mov dword [ebp - 4], 0xffffffff
call fcn.00414a2c
add esp, 8
jmp 0x40a70e