Function at 0x40b050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d958
mov eax, dword fs:[0]
push eax
sub esp, 0x24
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 - 0x24]
push 0x45b844
push eax
mov dword [ebp - 0x24], str.CRegInfo::Win7_DisableReaderRmb_USB
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 1
call fcn.0040a3d0
mov dword [ebp - 4], 0
mov eax, dword [0x46d77c]
push dword [eax + 0x14]
push dword [eax + 0x10]
lea eax, [ebp - 0x24]
push str.OS_Version:__d__d_n
push eax
call fcn.0040a3d0
mov eax, dword [0x46d77c]
add esp, 0x18
cmp dword [eax + 0x10], 6
jb 0x40b31c
cmp dword [eax + 0x14], 1
jb 0x40b31c
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push str.SYSTEMCurrentControlSetControlDeviceOverrides_
lea ecx, [ebp - 0x10]
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 0x40b11d
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 3
mov eax, dword [ecx + 8]
cmp dword [eax - 0xc], 0
jne 0x40b15c
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x12]
push eax
movzx eax, word [ecx + 0x10]
push eax
lea eax, [ebp - 0x14]
push str.USBVID__04XPID__04XREV__04XLocationPaths
push eax
call fcn.00404280
add esp, 0x14
jmp 0x40b17d
push eax
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x12]
push eax
movzx eax, word [ecx + 0x10]
push eax
lea eax, [ebp - 0x14]
push str.USBVID__04XPID__04XREV__04XLocationPaths_s
push eax
call fcn.00404280
add esp, 0x18
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
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 - 0x24]
push str.OS_Wow64:__d_n
mov esi, 0xf003f
push eax
cmovne esi, ecx
call fcn.0040a3d0
push dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push str.SetDWORDValue1:__s_n
push eax
call fcn.0040a3d0
add esp, 0x18
lea ecx, [ebp - 0x30]
push 0
push 0
push esi
push 0
push 0
push dword [ebp - 0x10]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040bd60
test eax, eax
jne 0x40b240
push dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push str.SetDWORDValue4:__s_n
push eax
call fcn.0040a3d0
mov ebx, dword [ebp - 0x30]
add esp, 0xc
lea eax, [ebp - 0x18]
push 4
push eax
push 4
push 0
push str.Removable
push ebx
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x40b224
push ebx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
test ebx, ebx
je 0x40b234
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], 0
jmp 0x40b246
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
or esi, 0xffffffff
test eax, eax
jne 0x40b2d6
call fcn.0040e738
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40b26d
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 4
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 - 0x24]
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 0x40b2d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x40b2f3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40b311
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x40b31c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x24]
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