Function at 0x40b350
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d908
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x468cb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
push 0x45b844
push eax
mov dword [ebp - 0x28], str.CRegInfo::Win7_DisableReaderRmb_PCIE
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 1
call fcn.0040a3d0
mov dword [ebp - 4], 0
mov eax, dword [0x46d77c]
push dword [eax + 0x14]
push dword [eax + 0x10]
lea eax, [ebp - 0x28]
push str.OS_Version:__d__d_n
push eax
call fcn.0040a3d0
mov eax, dword [0x46d77c]
add esp, 0x18
mov esi, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
cmp esi, 6
jb 0x40b66f
cmp edx, 1
jb 0x40b66f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
lea edi, [ecx + 8]
cmp dword [eax - 0xc], 0
je 0x40b66f
mov eax, dword [ecx + 0xc]
lea ebx, [ecx + 0xc]
cmp dword [eax - 0xc], 0
je 0x40b66f
push edx
push esi
lea eax, [ebp - 0x28]
push str.OS_Version:__d__d_n
push eax
call fcn.0040a3d0
add esp, 0x10
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push str.SYSTEMCurrentControlSetControlDeviceOverrides_
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401c90
mov byte [ebp - 4], 2
call fcn.0040e738
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40b457
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401610
push 0x45bd24
push 0x45b654
lea ecx, [ebp - 0x10]
call fcn.0040a8a0
push 0x45bd28
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040bc10
push edi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.00403b00
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00401610
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40b4d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b4f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push dword [edi - 0xc]
push edi
call fcn.00401380
mov eax, dword [0x46d77c]
mov ecx, 0xf013f
mov eax, dword [eax]
push eax
test eax, eax
lea eax, [ebp - 0x28]
push str.OS_Wow64:__d_n
mov esi, 0xf003f
push eax
cmovne esi, ecx
call fcn.0040a3d0
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push str.SetDWORDValue1:__s_n
push eax
call fcn.0040a3d0
add esp, 0x18
lea ecx, [ebp - 0x34]
push 0
push 0
push esi
push 0
push 0
push dword [ebp - 0x14]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040bd60
test eax, eax
jne 0x40b5b6
push dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push str.SetDWORDValue4:__s_n
push eax
call fcn.0040a3d0
mov ebx, dword [ebp - 0x34]
add esp, 0xc
lea eax, [ebp - 0x1c]
push 4
push eax
push 4
push 0
push str.Removable
push ebx
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x40b59d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test ebx, ebx
je 0x40b5ad
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0
jmp 0x40b5bc
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40b626
lea ecx, [ebp - 0x18]
call fcn.00401680
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 6
push dword [ecx + 0x1c]
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x12]
push eax
movzx eax, word [ecx + 0x10]
push eax
lea eax, [ebp - 0x18]
push str.Set_None_Removable_Reader__04X__04X__04X__d__OK_n
push eax
call fcn.00404280
mov esi, dword [ebp - 0x18]
push esi
lea eax, [ebp - 0x28]
push 0x45b934
push eax
call fcn.0040a3d0
lea edx, [esi - 0x10]
or esi, 0xffffffff
add esp, 0x24
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b629
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40b629
or esi, 0xffffffff
add edi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b646
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40b664
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x40b66f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
push str.EXIT________n
push eax
call fcn.0040a3d0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4