Function at 0x401660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4404a0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, 7
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
mov dword [ebp - 4], ebx
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
push str.Writing_driver_version.
push 0x4549c8
mov ecx, 0x4462a0
mov byte [ebp - 4], 1
call fcn.00406230
add esp, 8
push ebx
lea edx, [ebp - 0x4c]
push edx
push ebx
push 0x20006
push 1
push ebx
push ebx
push str.SoftwareIntelRST_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401844
mov eax, dword [edi + 0x188]
mov edi, dword [eax]
cmp edi, eax
je 0x40183a
mov eax, dword [edi + 0x28]
cmp dword [eax + 0x14], 8
jb 0x40170f
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x401714
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x48]
call fcn.00402c20
mov eax, dword [edi + 0x28]
add eax, 0x54
cmp dword [eax + 0x14], 8
jb 0x40173a
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x401740
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.00402c20
mov eax, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x401768
lea eax, [ebp - 0x48]
push eax
push str.Driver_name:__s
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], esi
jae 0x40178b
lea eax, [ebp - 0x2c]
push eax
push str.Previous_Driver_version:__s
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp eax, ebx
je 0x4017d4
mov edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x4017b5
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x4017c0
lea ecx, [ebp - 0x48]
add eax, eax
push eax
push edx
push 1
push ebx
push ecx
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4017eb
push str.No_Previous_driver_found
push 0x4549c8
mov ecx, 0x4462a0
call fcn.00406230
add esp, 8
cmp byte [edi + 0x2d], bl
jne 0x401826
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x2d], bl
jne 0x40180d
mov eax, dword [ecx]
cmp byte [eax + 0x2d], bl
jne 0x401809
nop
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x2d], bl
je 0x401800
mov edi, ecx
jmp 0x401826
mov eax, dword [edi + 4]
cmp byte [eax + 0x2d], bl
jne 0x401824
cmp edi, dword [eax + 8]
jne 0x401824
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x2d], bl
je 0x401815
mov edi, eax
mov edx, dword [ebp - 0x50]
cmp edi, dword [edx + 0x188]
jne 0x401704
mov esi, 7
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 8
cmp dword [ebp - 0x18], edi
jb 0x40185a
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042c048
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], edi
jb 0x401877
mov eax, dword [ebp - 0x48]
push eax
call fcn.0042c048
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c039
mov esp, ebp
pop ebp
ret