Function at 0x40dd40
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 0x59a403
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd44
mov eax, dword [0x65ec1c]
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 0x40de2e
cmp dword [ebp - 0xfc], 2
jne 0x40de2e
mov eax, dword [ebp - 0x108]
mov ecx, 1
cmp eax, 6
mov dword [ebp - 0x24], ecx
jb 0x40ddc8
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp eax, 5
jne 0x40ddda
mov eax, dword [ebp - 0x104]
test eax, eax
jne 0x40ddda
mov dword [ebp - 0x30], ecx
mov edx, dword [0x663654]
push str.Uninstall.exe
push edx
lea eax, [ebp - 0x20]
push 0x639028
push eax
call fcn.0058148b
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], 0x638f44
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 0x40de49
mov eax, str.AdvancedIntegration
mov edx, dword [0x663680]
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 0x40e0e1
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.00409cd0
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 0x40dea7
test edi, edi
je 0x40e080
mov eax, dword [ebp - 0x24]
xor ebx, ebx
test eax, eax
je 0x40dfcf
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
push eax
call fcn.0040d960
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 0x40df8b
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40df59
mov ecx, dword [ebp - 0x20]
push ebx
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0040c0b0
test al, al
je 0x40df59
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test esi, esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], str._instdriv
jne 0x40df1b
mov dword [ebp - 0x60], str._startdriv
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40df51
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 0x40dfb5
mov ebx, dword [ebp - 0x18]
jmp 0x40dfb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40dfb5
mov eax, dword [0x6637a0]
push 0
push 0x1437
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [0x663dc0]
mov edx, dword [0x663b84]
push 0x30
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40dfb5
test esi, esi
je 0x40df9d
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.0040dab0
mov ebx, eax
jmp 0x40dfa2
mov ebx, 1
mov ecx, dword [ebp - 0x1c]
test edi, edi
je 0x40dfb0
call fcn.0040d560
jmp 0x40dfb5
call fcn.0040d4a0
mov eax, dword [0x6637a0]
push 0
push 0x1437
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40dfd9
push ecx
mov ecx, esi
call fcn.00408800
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x40dfe8
mov dword [ebp - 0x14], 1
jmp 0x40e019
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], esi
cmp eax, esi
mov eax, str.EnableDriver
jne 0x40dffc
mov eax, str.AdvancedIntegration
mov edx, dword [0x663680]
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 [0x663680]
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 0x40e080
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.004103e0
push 0
push 0
mov ecx, esi
call fcn.0040ee30
push 0
push 0
mov ecx, esi
call fcn.0040fa90
push 0
push 0
mov ecx, esi
call fcn.0040fb00
push 0
push 0
mov ecx, esi
call fcn.0040f080
push 1
mov ecx, esi
call fcn.00413cc0
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40e1e2
mov edx, dword [0x65ec1c]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x210]
push str.idmmbc.dll
push eax
lea ecx, [ebp - 0x18]
push 0x639a04
push ecx
mov byte [ebp - 4], 2
call fcn.0058148b
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push edx
call fcn.00410970
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005886c0
jmp 0x40e1e2
test edi, edi
je 0x40e1d7
push 0x6631bc
mov ecx, esi
call fcn.0040d960
test ebx, ebx
mov dword [0x6631c0], eax
je 0x40e1ae
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e17c
mov ecx, dword [ebp - 0x20]
push 0
push ecx
mov ecx, esi
call fcn.0040c0b0
test al, al
je 0x40e17c
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 0x40e174
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 0x40e1bc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
jmp 0x40e1bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e1bc
mov ecx, dword [0x6637a0]
push 0
push 0x1437
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov edx, dword [0x663dc0]
mov eax, dword [0x663b84]
push 0x30
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40e1bc
mov ecx, esi
mov dword [ebp - 0x14], 1
call fcn.0040d740
mov ecx, dword [0x6637a0]
push 0
push 0x1437
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40e1e2
lea ecx, [esi + 4]
call fcn.004097b0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40e355
mov eax, dword [ebp + 8]
xor esi, esi
test eax, eax
jne 0x40e26b
mov eax, dword [0x663680]
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 0x40e247
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 [0x664070]
mov ecx, dword [0x664074]
push 0x50004
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40e26b
mov esi, 1
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40e276
xor edi, edi
jmp 0x40e279
mov edi, dword [ebp - 0x24]
test esi, esi
je 0x40e32c
test edi, edi
je 0x40e363
push 0
lea ecx, [ebp - 0xd50]
call fcn.004d3f30
lea ecx, [ebp - 0xd50]
mov byte [ebp - 4], 3
call fcn.00584656
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 0xb
call fcn.005886c0
lea ecx, [ebp - 0xbc0]
mov byte [ebp - 4], 0xa
call fcn.00539850
lea ecx, [ebp - 0xbc8]
mov byte [ebp - 4], 9
call fcn.005886c0
lea ecx, [ebp - 0xc04]
mov byte [ebp - 4], 8
call fcn.005904e3
lea ecx, [ebp - 0xc40]
mov byte [ebp - 4], 7
call fcn.005904e3
lea ecx, [ebp - 0xc7c]
mov byte [ebp - 4], 6
call fcn.005904e3
lea ecx, [ebp - 0xcb8]
mov byte [ebp - 4], 5
call fcn.0059035b
lea ecx, [ebp - 0xcf4]
mov byte [ebp - 4], 4
call fcn.00590393
lea ecx, [ebp - 0xd50]
mov byte [ebp - 4], 1
call fcn.00584297
test edi, edi
jne 0x40e355
mov ecx, dword [0x6640ac]
mov edx, dword [0x664058]
push 0x50030
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040b110
add esp, 4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.005886c0
jmp 0x40e38d
mov eax, dword [0x663680]
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 0x40e330
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