Function at 0x4181b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4307bc
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
push ebx
push esi
push edi
mov eax, dword [0x43dfc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
push str.SOFTWAREClassesAppID11AC3232_E7D7_49CD_ABFE_501700100B3A
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, esi
je 0x41824d
push 1
lea ecx, [ebp - 0xc8]
call fcn.00406150
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_open_services_registry_key
push eax
mov dword [ebp - 4], esi
call fcn.00404170
push eax
call fcn.00405590
add esp, 0xc
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2b0
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.0041aa80
add esp, 4
jmp 0x41830e
push esi
lea edx, [ebp - 0x14]
push edx
push 1
push str.O:BAG:BAD:_A__CCDCSW___WD__A__CCDCSW___s_1_15_2_1_S:_ML___NX___LW_
mov dword [ebp - 0x14], esi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x41838b
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push eax
mov dword [ebp - 0x18], eax
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
push 0
push 0
push 0
push 0
push str.LaunchPermission
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
jne 0x418300
push ebx
push edi
push 3
push 0
push str.LaunchPermission
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x418300
push 1
lea ecx, [ebp - 0xc8]
call fcn.00406150
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_set_sd_in_registry
push eax
mov dword [ebp - 4], 2
call fcn.00404170
push eax
call fcn.00405590
add esp, 0xc
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2b0
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.0041aa80
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41830e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41831c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
lea ecx, [ebp - 0x178]
call fcn.00406150
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.sd_set
push eax
mov dword [ebp - 4], 3
call fcn.00404170
push eax
call fcn.00405590
add esp, 0xc
lea ecx, [ebp - 0x110]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2b0
lea edx, [ebp - 0x110]
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041aa80
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea ecx, [ebp - 0xc8]
call fcn.00406150
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_create_sd
push eax
mov dword [ebp - 4], 1
call fcn.00404170
push eax
call fcn.00405590
add esp, 0xc
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2b0
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.0041aa80
add esp, 4
jmp 0x41830e