Function at 0x401640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fd90
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 0x4549c0
mov ecx, 0x4462a0
mov byte [ebp - 4], 1
call fcn.00406580
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 0x401824
mov eax, dword [edi + 0x188]
mov edi, dword [eax]
cmp edi, eax
je 0x40181a
mov eax, dword [edi + 0x28]
cmp dword [eax + 0x14], 8
jb 0x4016ef
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4016f4
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x48]
call fcn.00402c70
mov eax, dword [edi + 0x28]
add eax, 0x54
cmp dword [eax + 0x14], 8
jb 0x40171a
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x401720
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.00402c70
mov eax, dword [ebp - 0x48]
mov esi, 8
cmp dword [ebp - 0x34], esi
jae 0x401748
lea eax, [ebp - 0x48]
push eax
push str.Driver_name:__s
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], esi
jae 0x40176b
lea eax, [ebp - 0x2c]
push eax
push str.Previous_Driver_version:__s
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp eax, ebx
je 0x4017b4
mov edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x401795
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x4017a0
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 0x4017cb
push str.No_Previous_driver_found
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 8
cmp byte [edi + 0x2d], bl
jne 0x401806
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x2d], bl
jne 0x4017ed
mov eax, dword [ecx]
cmp byte [eax + 0x2d], bl
jne 0x4017e9
nop
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x2d], bl
je 0x4017e0
mov edi, ecx
jmp 0x401806
mov eax, dword [edi + 4]
cmp byte [eax + 0x2d], bl
jne 0x401804
cmp edi, dword [eax + 8]
jne 0x401804
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x2d], bl
je 0x4017f5
mov edi, eax
mov edx, dword [ebp - 0x50]
cmp edi, dword [edx + 0x188]
jne 0x4016e4
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 0x40183a
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042b948
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 0x401857
mov eax, dword [ebp - 0x48]
push eax
call fcn.0042b948
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.0042b939
mov esp, ebp
pop ebp
ret