Function at 0x41c230
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b168
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x48d514]
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
call fcn.0041c050
push str.IsWow64Process
push 0x47e3c4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x41c298
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x14], 0
mov ecx, str.devcon.exe
mov eax, str.devcon64.exe
cmove eax, ecx
lea ecx, [ebp - 0x20]
push eax
call fcn.0042a610
mov dword [ebp - 4], 2
call fcn.004312a0
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x41c405
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0041b910
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0041ef80
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
push ecx
mov ecx, dword [eax]
mov edx, str.install_amdtools.inf_AMDTOOLSDEV
call fcn.0041bb40
mov edx, dword [ebp - 0x24]
add esp, 0x10
test eax, eax
setne bl
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 6
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41c332
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41c350
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x41c40f
xor esi, esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], esi
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareAMDAMDTOOL
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 4
test eax, eax
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
cmove esi, dword [ebp - 0x24]
push eax
push 4
push 0
push str.Counter
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x41c3ac
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xb
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41c3ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xc
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41c3e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 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.00443973
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0042d1f0
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041b900
call fcn.0041ee30
mov byte [ebp - 4], 8
lea eax, [ebp - 0x14]
push dword [ebp - 0x1c]
push str.Driver_removal_failed:_n_S
push eax
call fcn.00422840
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0041cf60
push eax
lea ecx, [ebp - 0x30]
call fcn.0042dfd0
push 0x48a7c4
lea eax, [ebp - 0x30]
push eax
call fcn.004480e3
int3