Function at 0x40ecc0
Capabilities:
Check if file exists
Check os version
Create process on windows
Get common file path
Get file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afc96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf80
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov word [ebp - 0x34], di
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x138], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40eee4
cmp dword [ebp - 0x128], 2
jne 0x40eee4
mov eax, dword [ebp - 0x134]
mov ecx, 1
cmp eax, 6
mov dword [ebp - 0x20], ecx
jb 0x40ed4a
mov dword [ebp - 0x18], ecx
cmp eax, 5
jne 0x40ed5a
cmp dword [ebp - 0x130], edi
jne 0x40ed5a
mov dword [ebp - 0x48], ecx
mov esi, dword [0x67e540]
cmp esi, edi
jne 0x40ed69
mov esi, 0x67e544
mov ecx, 0x653050
test ecx, ecx
je 0x40ee89
cmp esi, edi
je 0x40ee89
mov edx, str.Uninstall.exe
test edx, edx
je 0x40ee89
push edi
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov word [ebp - 0x28], di
call fcn.004028e0
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00403bb0
mov ebx, 3
push str.Uninstall.exe
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], bl
call fcn.00403bb0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00401070
mov edi, dword [ebp - 0x58]
test edi, edi
jne 0x40edda
lea edi, [ebp - 0x54]
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0xa0]
call fcn.00401fb0
push eax
call fcn.00581b1a
mov edx, eax
push edi
mov dword [ebp - 0x3c], edx
call fcn.00581b1a
mov ecx, dword [ebp - 0x3c]
add esi, ecx
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.0059a2da
mov edx, eax
add esp, 0xc
test edx, edx
mov dword [ebp - 0x38], edx
je 0x40ee61
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, ebx
rep stosb byte es:[edi], al
lea ecx, [ebp - 0xa0]
call fcn.00401fb0
push eax
lea ecx, [ebp - 0x58]
call fcn.00401fb0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401fb0
push eax
mov eax, dword [ebp - 0x38]
push esi
push eax
call fcn.00581aaa
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00581b1a
add esp, 0x18
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401070
jmp 0x40ee8e
mov ebx, 3
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x38]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x94], 0x3c
mov dword [ebp - 0x90], 0x40
mov dword [ebp - 0x88], str.open
je 0x40eecc
mov dword [ebp - 0x84], eax
jmp 0x40eed5
lea edx, [ebp - 0x34]
mov dword [ebp - 0x84], edx
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ecx
mov ebx, dword [ebp + 8]
xor eax, eax
test ebx, ebx
setne al
mov dword [ebp - 0x44], eax
mov eax, str.EnableDriver
test edi, edi
jne 0x40eeff
mov eax, str.AdvancedIntegration
mov edx, dword [0x67e58c]
lea ecx, [ebp - 0x44]
push 4
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test ebx, ebx
mov dword [esi + 0x1c], ebx
je 0x40f231
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0xa4]
add esi, 4
push eax
push ecx
mov ecx, esi
mov dword [ebp - 0x3c], 1
call fcn.00409e60
mov ebx, dword [ebp - 0x3c]
xor edx, edx
test eax, eax
sete dl
xor ecx, ecx
mov eax, edx
test ebx, ebx
sete cl
test eax, eax
jne 0x40ef5d
test edi, edi
je 0x40f157
mov eax, dword [ebp - 0x20]
xor ebx, ebx
test eax, eax
je 0x40f0a9
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
call fcn.0040e7b0
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x18]
sete cl
mov esi, ecx
mov ecx, dword [ebp - 0x4c]
xor edx, edx
test ecx, ecx
sete dl
test eax, eax
mov edi, edx
je 0x40f076
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x40efa0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f044
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x40efba
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
push 0
push eax
call fcn.0040c650
test al, al
je 0x40f044
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test edi, edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], str._instdriv
jne 0x40efe7
mov dword [ebp - 0x80], str._startdriv
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40f03c
mov ecx, dword [ebp - 0x5c]
push 0xffffffffffffffff
push ecx
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40f01e
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov ecx, dword [0x67e6ac]
push 0
push 0x1437
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40f0b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40f01e
mov ecx, dword [0x67e6ac]
push 0
push 0x1437
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [0x67ed28]
mov eax, dword [0x67eaec]
push 0x30
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40f01e
test edi, edi
je 0x40f08a
mov edi, dword [ebp - 0x14]
push 1
mov ecx, edi
call fcn.0040e900
mov ebx, eax
jmp 0x40f092
mov edi, dword [ebp - 0x14]
mov ebx, 1
test esi, esi
mov ecx, edi
je 0x40f09f
call fcn.0040e100
jmp 0x40f021
call fcn.0040e040
jmp 0x40f021
push ecx
mov ecx, esi
call fcn.004089b0
mov edi, dword [ebp - 0x14]
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x40f0c5
mov dword [ebp - 0x1c], 1
jmp 0x40f0f2
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x44], esi
cmp eax, esi
mov eax, str.EnableDriver
jne 0x40f0d9
mov eax, str.AdvancedIntegration
lea edx, [ebp - 0x44]
push 4
push edx
push 4
push esi
push eax
mov eax, dword [0x67e58c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [edi + 0x1c], esi
mov eax, dword [0x67e58c]
lea edx, [ebp - 0x40]
push 4
xor ecx, ecx
push edx
cmp ebx, esi
push 4
push esi
setne cl
push str.lastintres
push eax
mov dword [ebp - 0x40], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp ebx, esi
je 0x40f14e
mov ecx, edi
call fcn.004114f0
push esi
push esi
mov ecx, edi
call fcn.004100a0
push esi
push esi
mov ecx, edi
call fcn.00410da0
push esi
push esi
mov ecx, edi
call fcn.00410e10
push esi
push esi
mov ecx, edi
call fcn.00410490
push 1
mov ecx, edi
call fcn.00416bf0
cmp dword [ebp - 0x20], esi
jne 0x40f349
lea ecx, [ebp - 0x23c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40f349
mov edx, dword [0x679a04]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x23c]
push str.idmmbc.dll
push eax
lea ecx, [ebp - 0x18]
push 0x653a2c
push ecx
mov byte [ebp - 4], 5
call fcn.00596d08
mov esi, dword [ebp - 0x18]
xor ebx, ebx
add esp, 0x10
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x28], bx
call fcn.00401070
cmp esi, ebx
je 0x40f1fd
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40f1fd
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push ebx
call edi
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x40f1fd
lea edx, [eax + eax + 2]
push edx
call fcn.0059a2da
add esp, 4
cmp eax, ebx
mov dword [ebp - 0x2c], eax
je 0x40f200
mov ecx, dword [ebp - 0x24]
push ecx
push eax
push 0xffffffffffffffff
push esi
push ebx
push ebx
call edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
mov byte [ebp - 4], 6
jne 0x40f20b
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00412110
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0059df40
jmp 0x40f349
test edi, edi
je 0x40f33e
push 0x67df8c
mov ecx, esi
call fcn.0040e7b0
mov dword [0x67df90], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40f315
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x40f266
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f2e3
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x40f27c
lea eax, [ebp - 0x34]
push 0
push eax
mov ecx, esi
call fcn.0040c650
test al, al
je 0x40f2e3
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [ebp - 0x94]
mov dword [ebp - 0x8c], eax
push edx
mov dword [ebp - 0x80], str._stopdriv
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40f2db
mov eax, dword [ebp - 0x5c]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40f323
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
jmp 0x40f323
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40f323
mov ecx, dword [0x67e6ac]
push 0
push 0x1437
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [0x67ed28]
mov eax, dword [0x67eaec]
push 0x30
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40f323
mov ecx, esi
mov dword [ebp - 0x1c], 1
call fcn.0040e450
mov ecx, dword [0x67e6ac]
push 0
push 0x1437
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40f349
lea ecx, [esi + 4]
call fcn.00409940
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f4bc
mov eax, dword [ebp + 8]
xor esi, esi
test eax, eax
jne 0x40f3d2
mov eax, dword [0x67e58c]
lea edx, [ebp + 8]
push esi
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push str.netApps
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40f3ae
mov edi, str.turn_off
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [ebp + 8]
push str.turn_off
push 1
push eax
push str.00002action
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x67efd8]
mov ecx, dword [0x67efdc]
push 0x50004
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40f3d2
mov esi, 1
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x40f3dd
xor edi, edi
jmp 0x40f3e0
mov edi, dword [ebp - 0x20]
test esi, esi
je 0x40f493
test edi, edi
je 0x40f4ca
push 0
lea ecx, [ebp - 0xf8c]
call fcn.004e3800
lea ecx, [ebp - 0xf8c]
mov byte [ebp - 4], 7
call fcn.00599ed3
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xf
call fcn.0059df40
lea ecx, [ebp - 0xdfc]
mov byte [ebp - 4], 0xe
call fcn.0054c620
lea ecx, [ebp - 0xe04]
mov byte [ebp - 4], 0xd
call fcn.0059df40
lea ecx, [ebp - 0xe40]
mov byte [ebp - 4], 0xc
call fcn.005a5bd1
lea ecx, [ebp - 0xe7c]
mov byte [ebp - 4], 0xb
call fcn.005a5bd1
lea ecx, [ebp - 0xeb8]
mov byte [ebp - 4], 0xa
call fcn.005a5bd1
lea ecx, [ebp - 0xef4]
mov byte [ebp - 4], 9
call fcn.005a5a49
lea ecx, [ebp - 0xf30]
mov byte [ebp - 4], 8
call fcn.005a5a81
lea ecx, [ebp - 0xf8c]
mov byte [ebp - 4], 1
call fcn.00599b14
test edi, edi
jne 0x40f4bc
mov ecx, dword [0x67f014]
mov edx, dword [0x67efc0]
push 0x50030
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040b670
add esp, 4
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x40f4f4
mov eax, dword [0x67e58c]
lea edx, [ebp + 8]
push 4
push edx
push 4
push 0
push str.NeedSnRpAfRb
push eax
mov dword [ebp + 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40f497
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4