Function at 0x4182d0
Capabilities:
Check if file exists
Check os version
Get common file path
Get file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x639276
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1048
call fcn.00609d40
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x34], bx
lea eax, [ebp - 0x13c]
mov esi, 1
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x13c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4184fd
cmp dword [ebp - 0x12c], 2
jne 0x4184fd
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x1c], esi
cmp eax, 6
jb 0x41835f
mov dword [ebp - 0x3c], esi
cmp eax, 5
jne 0x41836f
cmp dword [ebp - 0x134], ebx
jne 0x41836f
mov dword [ebp - 0x48], esi
mov esi, dword [0x6fca20]
cmp esi, ebx
jne 0x41837e
mov esi, 0x6fca24
mov ecx, 0x6c900c
test ecx, ecx
je 0x4184a3
cmp esi, ebx
je 0x4184a3
mov edx, str.Uninstall.exe
test edx, edx
je 0x4184a3
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x54], bx
push ebx
push ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004027e0
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x28], bx
call fcn.00401f20
mov ebx, 3
push str.Uninstall.exe
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], bl
call fcn.00401ee0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00401070
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0xa4]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [ebp - 0x2c]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x38], edx
je 0x41847b
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 - 0xa4]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x58]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x38]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00401070
jmp 0x4184a8
mov ebx, 3
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x38]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x98], 0x3c
mov dword [ebp - 0x94], 0x40
mov dword [ebp - 0x8c], str.open
je 0x4184e6
mov dword [ebp - 0x88], eax
jmp 0x4184ef
lea edx, [ebp - 0x34]
mov dword [ebp - 0x88], edx
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x78], ecx
xor ebx, ebx
mov esi, dword [ebp + 8]
xor eax, eax
cmp esi, ebx
setne al
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
mov eax, str.EnableDriver
jne 0x41851b
mov eax, str.AdvancedIntegration
mov edx, dword [0x6fcafc]
lea ecx, [ebp - 0x44]
push 4
push ecx
push 4
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov ecx, edi
mov dword [edi + 0x1c], esi
call fcn.004a47a0
cmp esi, ebx
je 0x41886e
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0xa8]
lea esi, [edi + 4]
push eax
push ecx
mov ecx, esi
mov dword [ebp - 0x4c], 1
call fcn.0040e350
xor edx, edx
cmp eax, ebx
sete dl
mov eax, edx
mov edx, dword [ebp - 0x4c]
xor ecx, ecx
cmp edx, ebx
sete cl
cmp eax, ebx
jne 0x418581
cmp dword [ebp - 0x1c], ebx
je 0x418792
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
je 0x4186dc
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.00417b30
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x3c]
sete cl
mov esi, ecx
mov ecx, dword [ebp - 0x5c]
xor edx, edx
test ecx, ecx
sete dl
test eax, eax
mov edi, edx
je 0x418690
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x4185c4
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418659
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x4185de
lea eax, [ebp - 0x34]
mov ebx, dword [ebp - 0x20]
push 0
push eax
mov ecx, ebx
call fcn.00414110
test al, al
je 0x41865c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test edi, edi
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x84], str._instdriv
jne 0x418613
mov dword [ebp - 0x84], str._startdriv
lea eax, [ebp - 0x98]
push eax
call dword [0x6fc2d0]
test eax, eax
je 0x418651
mov ecx, dword [ebp - 0x60]
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4186c1
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
jmp 0x4186c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4186c1
mov ebx, dword [ebp - 0x20]
mov edx, dword [0x6fcc58]
push 0
push 0x1437
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [0x6fd630]
mov ecx, dword [0x6fd3f8]
push 0x30
push eax
push ecx
push 0
call fcn.00457010
add esp, 0x10
jmp 0x4186c1
test edi, edi
je 0x4186a5
mov ebx, dword [ebp - 0x20]
push 1
mov ecx, ebx
call fcn.00417f00
mov dword [ebp - 0x14], eax
jmp 0x4186af
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x14], 1
test esi, esi
mov ecx, ebx
je 0x4186bc
call fcn.00417470
jmp 0x4186c1
call fcn.004173b0
mov edx, dword [0x6fcc58]
push 0
push 0x1437
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4186ea
push ecx
mov ecx, esi
call fcn.0040ce90
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
xor edi, edi
cmp esi, edi
je 0x4186fc
mov dword [ebp - 0x18], 1
jmp 0x41872a
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], edi
cmp eax, edi
mov eax, str.EnableDriver
jne 0x418710
mov eax, str.AdvancedIntegration
mov edx, dword [0x6fcafc]
lea ecx, [ebp - 0x44]
push 4
push ecx
push 4
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebx + 0x1c], edi
mov edx, dword [0x6fcafc]
lea ecx, [ebp - 0x40]
push 4
xor eax, eax
push ecx
cmp esi, edi
push 4
push edi
setne al
push str.lastintres
push edx
mov dword [ebp - 0x40], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, edi
je 0x418787
mov ecx, ebx
call fcn.0041b350
push edi
push edi
mov ecx, ebx
call fcn.00419ae0
push edi
push edi
mov ecx, ebx
call fcn.0041a650
push edi
push edi
mov ecx, ebx
call fcn.0041a6c0
push edi
push edi
mov ecx, ebx
call fcn.00419d40
push 1
mov ecx, ebx
call fcn.00421f40
cmp dword [ebp - 0x1c], edi
jne 0x418986
xor ebx, ebx
lea eax, [ebp - 0x240]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x418988
mov ecx, dword [0x6f7b78]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x240]
push str.idmmbc.dll
push edx
lea eax, [ebp - 0x14]
push 0x6c9ce8
push eax
mov byte [ebp - 4], 5
call fcn.0061fae1
mov esi, dword [ebp - 0x14]
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 0x418838
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x418838
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push eax
call edi
test eax, eax
mov dword [ebp - 0x24], eax
je 0x418838
lea ecx, [eax + eax + 2]
push ecx
call fcn.00622acb
add esp, 4
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x41883b
mov edx, dword [ebp - 0x24]
push edx
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
mov byte [ebp - 4], 6
cmp eax, ebx
jne 0x418848
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
push eax
call fcn.0041c640
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00622d8a
jmp 0x418988
cmp dword [ebp - 0x1c], ebx
je 0x418979
push 0x6fc44c
mov ecx, edi
call fcn.00417b30
mov dword [0x6fc450], eax
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x418951
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], ebx
cmp eax, ebx
jne 0x4188a0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41891f
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x4188b6
lea eax, [ebp - 0x34]
push ebx
push eax
mov ecx, edi
call fcn.00414110
test al, al
je 0x41891f
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x84], str._stopdriv
call dword [0x6fc2d0]
test eax, eax
je 0x418917
mov ecx, dword [ebp - 0x60]
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x41895f
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x18], ecx
jmp 0x41895f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41895f
mov edx, dword [0x6fcc58]
push ebx
push 0x1437
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [0x6fd630]
mov ecx, dword [0x6fd3f8]
push 0x30
push eax
push ecx
push ebx
call fcn.00457010
add esp, 0x10
jmp 0x41895f
mov ecx, edi
mov dword [ebp - 0x18], 1
call fcn.004177d0
mov edx, dword [0x6fcc58]
push ebx
push 0x1437
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x418988
lea ecx, [edi + 4]
call fcn.0040de30
mov dword [ebp - 0x18], eax
jmp 0x418988
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
je 0x418aee
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, ebx
jne 0x418a14
mov ecx, dword [0x6fcafc]
lea eax, [ebp + 8]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.netApps
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4189ee
mov edi, str.turn_off
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [ebp + 8]
not ecx
push ecx
push str.turn_off
push 1
push eax
push str.00002action
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov ecx, dword [0x6fd8e0]
mov edx, dword [0x6fd8e4]
push 0x50004
push ecx
push edx
push ebx
call fcn.00457010
add esp, 0x10
cmp eax, 6
jne 0x418a14
mov esi, 1
cmp dword [ebp - 0x48], ebx
je 0x418a1d
xor edi, edi
jmp 0x418a20
mov edi, dword [ebp - 0x1c]
cmp esi, ebx
je 0x418ac5
cmp edi, ebx
je 0x418afc
push ebx
lea ecx, [ebp - 0x1058]
call fcn.00534af0
lea ecx, [ebp - 0x1058]
mov byte [ebp - 4], 7
call fcn.006226c5
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0xf
call fcn.00622d8a
lea ecx, [ebp - 0xf20]
mov byte [ebp - 4], 0xe
call fcn.005c6d50
lea ecx, [ebp - 0xf28]
mov byte [ebp - 4], 0xd
call fcn.00622d8a
mov eax, 0x657cdc
lea ecx, [ebp - 0xf84]
mov dword [ebp - 0xf38], eax
mov dword [ebp - 0xf48], eax
mov byte [ebp - 4], 0xa
call fcn.0062e243
lea ecx, [ebp - 0xfc0]
mov byte [ebp - 4], 9
call fcn.0062e243
lea ecx, [ebp - 0xffc]
mov byte [ebp - 4], 8
call fcn.0062e243
lea ecx, [ebp - 0x1058]
mov byte [ebp - 4], 1
call fcn.00622306
cmp edi, ebx
jne 0x418aee
mov edx, dword [0x6fd91c]
mov eax, dword [0x6fd8c8]
push 0x50030
push edx
push eax
push ebx
call fcn.00457010
add esp, 0x10
push 1
call fcn.00413520
add esp, 4
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.00401070
jmp 0x418b26
mov ecx, dword [0x6fcafc]
lea eax, [ebp + 8]
push 4
push eax
push 4
push ebx
push str.NeedSnRpAfRb
push ecx
mov dword [ebp + 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x418ac9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4