Function at 0x40dd90
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 0x598873
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd44
mov eax, dword [0x65ca8c]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 1
push ecx
mov dword [ebp - 0x10c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40de7e
cmp dword [ebp - 0xfc], 2
jne 0x40de7e
mov eax, dword [ebp - 0x108]
mov ecx, 1
cmp eax, 6
mov dword [ebp - 0x24], ecx
jb 0x40de18
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp eax, 5
jne 0x40de2a
mov eax, dword [ebp - 0x104]
test eax, eax
jne 0x40de2a
mov dword [ebp - 0x30], ecx
mov edx, dword [0x6614bc]
push str.Uninstall.exe
push edx
lea eax, [ebp - 0x20]
push 0x637020
push eax
call fcn.0057f8fb
add esp, 0x10
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x74]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x74], 0x3c
mov dword [ebp - 0x70], 0x40
mov dword [ebp - 0x68], 0x636f3c
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 3
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp + 8]
xor edx, edx
test ecx, ecx
setne dl
test edi, edi
mov dword [ebp - 0x2c], edx
mov eax, str.EnableDriver
jne 0x40de99
mov eax, str.AdvancedIntegration
mov edx, dword [0x6614e8]
lea ecx, [ebp - 0x2c]
push 4
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi + 0x1c], eax
je 0x40e131
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x78]
add esi, 4
push eax
push ecx
mov ecx, esi
mov dword [ebp - 0x34], 1
call fcn.00409d20
mov ebx, dword [ebp - 0x34]
xor edx, edx
test eax, eax
sete dl
xor ecx, ecx
mov eax, edx
test ebx, ebx
sete cl
test eax, eax
jne 0x40def7
test edi, edi
je 0x40e0d0
mov eax, dword [ebp - 0x24]
xor ebx, ebx
test eax, eax
je 0x40e01f
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
push eax
call fcn.0040d9b0
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x18]
sete cl
mov edi, ecx
mov ecx, dword [ebp - 0x38]
xor edx, edx
test ecx, ecx
sete dl
test eax, eax
mov esi, edx
je 0x40dfdb
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40dfa9
mov ecx, dword [ebp - 0x20]
push ebx
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0040c100
test al, al
je 0x40dfa9
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test esi, esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], str._instdriv
jne 0x40df6b
mov dword [ebp - 0x60], str._startdriv
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40dfa1
mov eax, dword [ebp - 0x3c]
push 0xffffffffffffffff
push eax
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40e005
mov ebx, dword [ebp - 0x18]
jmp 0x40e005
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e005
mov eax, dword [0x661608]
push 0
push 0x1437
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [0x661c28]
mov edx, dword [0x6619ec]
push 0x30
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40e005
test esi, esi
je 0x40dfed
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.0040db00
mov ebx, eax
jmp 0x40dff2
mov ebx, 1
mov ecx, dword [ebp - 0x1c]
test edi, edi
je 0x40e000
call fcn.0040d5b0
jmp 0x40e005
call fcn.0040d4f0
mov eax, dword [0x661608]
push 0
push 0x1437
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40e029
push ecx
mov ecx, esi
call fcn.00408850
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x40e038
mov dword [ebp - 0x14], 1
jmp 0x40e069
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], esi
cmp eax, esi
mov eax, str.EnableDriver
jne 0x40e04c
mov eax, str.AdvancedIntegration
mov edx, dword [0x6614e8]
lea ecx, [ebp - 0x2c]
push 4
push ecx
push 4
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], esi
mov eax, dword [0x6614e8]
lea edx, [ebp - 0x28]
push 4
xor ecx, ecx
push edx
cmp ebx, esi
push 4
push esi
setne cl
push str.lastintres
push eax
mov dword [ebp - 0x28], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp ebx, esi
je 0x40e0d0
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.00410390
push 0
push 0
mov ecx, esi
call fcn.0040ee20
push 0
push 0
mov ecx, esi
call fcn.0040fa80
push 0
push 0
mov ecx, esi
call fcn.0040faf0
push 0
push 0
mov ecx, esi
call fcn.0040f070
push 1
mov ecx, esi
call fcn.00413c70
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40e232
mov edx, dword [0x65ca8c]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x210]
push str.idmmbc.dll
push eax
lea ecx, [ebp - 0x18]
push 0x6379fc
push ecx
mov byte [ebp - 4], 2
call fcn.0057f8fb
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push edx
call fcn.00410920
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00586b33
jmp 0x40e232
test edi, edi
je 0x40e227
push 0x66102c
mov ecx, esi
call fcn.0040d9b0
test ebx, ebx
mov dword [0x661030], eax
je 0x40e1fe
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e1cc
mov ecx, dword [ebp - 0x20]
push 0
push ecx
mov ecx, esi
call fcn.0040c100
test al, al
je 0x40e1cc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [ebp - 0x74]
mov dword [ebp - 0x6c], eax
push edx
mov dword [ebp - 0x60], str._stopdriv
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40e1c4
mov eax, dword [ebp - 0x3c]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40e20c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
jmp 0x40e20c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e20c
mov ecx, dword [0x661608]
push 0
push 0x1437
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [0x661c28]
mov eax, dword [0x6619ec]
push 0x30
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40e20c
mov ecx, esi
mov dword [ebp - 0x14], 1
call fcn.0040d790
mov ecx, dword [0x661608]
push 0
push 0x1437
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40e232
lea ecx, [esi + 4]
call fcn.00409800
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40e3a5
mov eax, dword [ebp + 8]
xor esi, esi
test eax, eax
jne 0x40e2bb
mov eax, dword [0x6614e8]
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 0x40e297
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 [0x661ed8]
mov ecx, dword [0x661edc]
push 0x50004
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40e2bb
mov esi, 1
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40e2c6
xor edi, edi
jmp 0x40e2c9
mov edi, dword [ebp - 0x24]
test esi, esi
je 0x40e37c
test edi, edi
je 0x40e3b3
push 0
lea ecx, [ebp - 0xd50]
call fcn.004d28d0
lea ecx, [ebp - 0xd50]
mov byte [ebp - 4], 3
call fcn.00582ac6
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 0xb
call fcn.00586b33
lea ecx, [ebp - 0xbc0]
mov byte [ebp - 4], 0xa
call fcn.00537f80
lea ecx, [ebp - 0xbc8]
mov byte [ebp - 4], 9
call fcn.00586b33
lea ecx, [ebp - 0xc04]
mov byte [ebp - 4], 8
call fcn.0058e953
lea ecx, [ebp - 0xc40]
mov byte [ebp - 4], 7
call fcn.0058e953
lea ecx, [ebp - 0xc7c]
mov byte [ebp - 4], 6
call fcn.0058e953
lea ecx, [ebp - 0xcb8]
mov byte [ebp - 4], 5
call fcn.0058e7cb
lea ecx, [ebp - 0xcf4]
mov byte [ebp - 4], 4
call fcn.0058e803
lea ecx, [ebp - 0xd50]
mov byte [ebp - 4], 1
call fcn.00582707
test edi, edi
jne 0x40e3a5
mov ecx, dword [0x661f14]
mov edx, dword [0x661ec0]
push 0x50030
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040b160
add esp, 4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.00586b33
jmp 0x40e3dd
mov eax, dword [0x6614e8]
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 0x40e380
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4