Function at 0x40a2e0
Capabilities:
Check mutex on windows
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d22c
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x5976b8]
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 eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push 0x114
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x1c]
lea edi, [esi + 0x30]
push 0
push edi
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x430], edx
mov dword [esi + 0xd73c], eax
call fcn.005149a0
add esp, 0xc
push edi
mov dword [edi], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push ebx
lea ecx, [esi + 0x154]
call fcn.00404820
test eax, eax
je 0x40a467
cmp dword [esi + 0x40], 2
mov dword [ebp - 0x424], 0x643
jne 0x40a390
mov ecx, esi
call fcn.004067f0
test eax, eax
jne 0x40a390
mov dword [ebp - 0x424], 5
mov eax, dword [ebp + 0x18]
cmp eax, 2
je 0x40a3a1
cmp eax, 3
jne 0x40a455
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40a455
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.005149a0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call fcn.005149a0
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
add esp, 0x18
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x3f2
push edi
call ebx
cmp dword [ebp - 0x424], 5
push 0x104
jne 0x40a424
lea eax, [ebp - 0x420]
push eax
push 0x3f7
jmp 0x40a430
lea ecx, [ebp - 0x420]
push ecx
push 0x3f3
push edi
call ebx
push edi
push 0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push eax
push 0
call fcn.00405ed0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, esi
call fcn.00406cc0
mov eax, dword [ebp - 0x424]
jmp 0x40a7b0
mov eax, dword [ebp + 0x18]
cmp eax, 3
jne 0x40a4b6
push 1
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [esi + 0xd740]
push edx
lea eax, [ebp - 0x428]
push eax
push str.Window
push str.SOFTWARECanonIJAppUpdateInstall
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esi + 0x154]
mov dword [ebp - 0x43c], 4
mov dword [ebp - 0x428], 0
call fcn.00403240
jmp 0x40a4bf
cmp eax, 2
jne 0x40a73d
lea ecx, [esi + 0xc]
call fcn.004035e0
cmp dword [ebp + 0x18], 3
jne 0x40a520
mov edx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x42c]
lea ecx, [ebp + 0x20]
push ecx
push edx
push eax
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [esi + 0x154]
call fcn.00405c50
push eax
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
call fcn.00404700
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40a56f
mov ecx, dword [ebp - 0x438]
mov edx, dword [ebp - 0x42c]
push 0
push ecx
push edx
lea eax, [ebp - 0x428]
push eax
lea ecx, [esi + 0x154]
call fcn.00405c50
push eax
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 1
call fcn.00404700
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a57b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esi + 0xc]
cmp dword [ebx - 0xc], 0
je 0x40a7a4
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [esi + 0x14c], ebx
test ebx, ebx
je 0x40a7a4
call fcn.00417a8d
cmp dword [ebp + 0x18], 2
mov dword [eax + 0xc], ebx
jne 0x40a686
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [esi + 0x154]
call fcn.004051b0
mov eax, dword [eax]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
lea ecx, [ebp - 0x428]
mov ebx, eax
call fcn.004037d0
test ebx, ebx
je 0x40a686
lea edx, [ebp - 0x434]
push edx
lea ecx, [esi + 0x154]
call fcn.00403b40
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov dword [ebp - 4], 2
mov word [ebp - 0x218], ax
call fcn.005149a0
mov eax, dword [esi + 0x14c]
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x3f6
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esi + 0x14c]
mov edx, dword [ebp - 0x434]
push ecx
mov ecx, dword [esi + 0xd740]
push 0
push edx
lea eax, [ebp - 0x218]
push eax
push ecx
call fcn.00405ed0
add esp, 0x14
mov ecx, esi
call fcn.00406cc0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x434]
call fcn.004037d0
mov eax, 0x652
jmp 0x40a7b0
lea edx, [ebp - 0x424]
push edx
lea ecx, [esi + 0x154]
call fcn.00403ba0
mov eax, dword [ebp - 0x424]
push eax
push 0
push 0
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x148], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a762
cmp dword [esi + 0x148], 0
je 0x40a762
cmp dword [esi + 0x40], 2
jne 0x40a728
mov ecx, esi
call fcn.004067f0
test eax, eax
jne 0x40a728
push eax
push eax
push 2
push ecx
mov ecx, esp
mov dword [ebp - 0x430], esp
push ecx
lea ecx, [esi + 0x154]
call fcn.00403b40
mov edx, dword [esi + 0xd740]
push edx
mov ecx, esi
call fcn.00408c40
mov ecx, esi
call fcn.00406cc0
lea ecx, [ebp - 0x424]
call fcn.004037d0
mov eax, 5
jmp 0x40a7b0
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
call fcn.004037d0
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x42c]
push eax
lea ecx, [esi + 0x10]
call fcn.004047d0
mov ecx, dword [ebp - 0x430]
push ecx
lea ecx, [esi + 4]
call fcn.004047d0
xor eax, eax
jmp 0x40a7b0
push 0
push 0
push 1
push ecx
mov edx, esp
mov dword [ebp - 0x430], esp
push edx
lea ecx, [esi + 0x154]
call fcn.00403b40
mov eax, dword [esi + 0xd740]
push eax
mov ecx, esi
call fcn.00408c40
mov ecx, esi
call fcn.00406cc0
lea ecx, [ebp - 0x424]
call fcn.004037d0
mov eax, 0x652
jmp 0x40a7b0
mov ecx, esi
call fcn.00406cc0
mov eax, 0x643
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.00514990
mov esp, ebp
pop ebp
ret 0x1c