Function at 0x406590
Capabilities:
Copy file
Get common file path
Set file attributes
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x416da6
push eax
mov dword fs:[0], esp
sub esp, 0x33c
mov ecx, 0x41
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x108]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [0x41eae4]
xor ebx, ebx
cmp eax, ebx
jne 0x406616
cmp dword [0x41eae0], ebx
jne 0x406616
mov edi, str.drivers
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x9d]
mov byte [esp + 0x9c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x108]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.e100.sys
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x20c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4066ae
xor eax, eax
jmp 0x406a08
mov edi, 0x41b1cc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0xd4], bl
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x9c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x238]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xc
lea edi, [esp + 0xd5]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x9c]
push eax
push ecx
call fcn.00406bd0
add esp, 8
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push edx
push str.SoftwareIntelBasedrivers
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
cmp eax, ebx
jne 0x406806
mov eax, dword [str.Success]
mov ecx, dword [0x41b4e4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0x54]
lea edx, [esp + 0x4c]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov ecx, dword [esp + 0x10]
inc eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea eax, [esp + 0x50]
push eax
push 2
push ebx
push str.Install
push ecx
call esi
mov eax, dword [0x41eae4]
mov ebp, 1
cmp eax, ebp
je 0x4067c6
cmp dword [0x41eae0], ebp
je 0x4067c6
cmp dword [0x41eadc], ebp
jne 0x4067e2
lea edx, [esp + 0x4c]
push edx
call edi
inc eax
push eax
mov eax, dword [esp + 0x14]
push 0x41b4d4
push ebp
push ebx
push str.Reboot
push eax
call esi
lea ecx, [esp + 0xd4]
push ecx
call edi
inc eax
lea edx, [esp + 0xd4]
push eax
mov eax, dword [esp + 0x14]
push edx
push ebp
push ebx
push str.Version
push eax
call esi
jmp 0x40680c
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.SetupBD.din
lea ecx, [esp + 0x40]
push 0x41eb30
push ecx
call fcn.0040e650
add esp, 0xc
lea edx, [esp + 0x108]
push 0x104
push edx
mov dword [esp + 0x35c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp + 0x17]
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call fcn.00401d10
lea edi, [esp + 0x108]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call fcn.00402510
test al, al
je 0x40689e
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], bl
lea ecx, [esp + 0x18]
push str.SetupBD.din
lea edx, [esp + 0x30]
push ecx
push edx
mov byte [esp + 0x360], 1
call fcn.0040e650
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp eax, ebx
mov ecx, 0x41821c
je 0x4068cc
mov ecx, eax
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x4068d9
mov eax, 0x41821c
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40697f
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x4068f7
mov eax, 0x41821c
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x28]
push eax
push str.SOFTWAREIntelProunstlDins
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40697f
mov ecx, dword [str.SetupBD.Uninstall]
mov edx, dword [0x41b484]
mov eax, dword [0x41b488]
mov dword [esp + 0x4c], ecx
mov ecx, dword [0x41b48c]
mov dword [esp + 0x50], edx
mov dx, word [0x41b490]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x5e]
mov word [esp + 0x5c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x28]
inc eax
lea ecx, [esp + 0x4c]
push eax
push ecx
push 1
push ebx
push 0x41b474
push edx
call esi
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x4069a3
mov al, byte [ecx - 1]
cmp al, bl
je 0x406999
cmp al, 0xff
je 0x406999
dec al
mov byte [ecx - 1], al
jmp 0x4069a3
dec ecx
push ecx
call fcn.0040e98e
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], ebx
cmp ecx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
je 0x4069d3
mov al, byte [ecx - 1]
cmp al, bl
je 0x4069c9
cmp al, 0xff
je 0x4069c9
dec al
mov byte [ecx - 1], al
jmp 0x4069d3
dec ecx
push ecx
call fcn.0040e98e
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], ebx
cmp ecx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
je 0x406a03
mov al, byte [ecx - 1]
cmp al, bl
je 0x4069f9
cmp al, 0xff
je 0x4069f9
dec al
mov byte [ecx - 1], al
jmp 0x406a03
dec ecx
push ecx
call fcn.0040e98e
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x34c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x348
ret