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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x417c96
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 [0x41fb74]
xor ebx, ebx
cmp eax, ebx
jne 0x4067d6
cmp dword [0x41fb70], ebx
jne 0x4067d6
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 0x40686e
xor eax, eax
jmp 0x406bd8
mov edi, 0x41c1cc
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.00407300
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 0x4069d5
mov eax, dword [str.Success]
mov ecx, dword [0x41c530]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0x54]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x4c]
not ecx
push ecx
push edx
push 2
push ebx
push str.Install
push eax
call esi
mov eax, dword [0x41fb74]
mov ebp, 1
cmp eax, ebp
je 0x40698b
cmp dword [0x41fb70], ebp
je 0x40698b
cmp dword [0x41fb6c], ebp
je 0x40698b
cmp dword [0x41fbe0], ebp
jne 0x4069ac
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push 0x41c520
push ebp
push ebx
push str.Reboot
push ecx
call esi
lea edi, [esp + 0xd4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd4]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
push ecx
push edx
push ebp
push ebx
push str.Version
push eax
call esi
jmp 0x4069db
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.SetupBD.din
lea ecx, [esp + 0x40]
push 0x41fbc0
push ecx
call fcn.0040f530
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 0x406a6d
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.0040f530
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp eax, ebx
mov ecx, 0x41921c
je 0x406a9b
mov ecx, eax
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x406aa8
mov eax, 0x41921c
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x406b4f
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x406ac6
mov eax, 0x41921c
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 0x406b4f
mov ecx, dword [str.SetupBD.Uninstall]
mov edx, dword [0x41c4d0]
mov eax, dword [0x41c4d4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [0x41c4d8]
mov dword [esp + 0x50], edx
mov dx, word [0x41c4dc]
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 edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
push 1
push ebx
push 0x41c4c0
push ecx
call esi
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x406b73
mov al, byte [ecx - 1]
cmp al, bl
je 0x406b69
cmp al, 0xff
je 0x406b69
dec al
mov byte [ecx - 1], al
jmp 0x406b73
dec ecx
push ecx
call fcn.0040f86e
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 0x406ba3
mov al, byte [ecx - 1]
cmp al, bl
je 0x406b99
cmp al, 0xff
je 0x406b99
dec al
mov byte [ecx - 1], al
jmp 0x406ba3
dec ecx
push ecx
call fcn.0040f86e
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 0x406bd3
mov al, byte [ecx - 1]
cmp al, bl
je 0x406bc9
cmp al, 0xff
je 0x406bc9
dec al
mov byte [ecx - 1], al
jmp 0x406bd3
dec ecx
push ecx
call fcn.0040f86e
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