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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4302dc
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 0x4181ad
push 1
lea ecx, [ebp - 0xc8]
call fcn.00406160
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.00404180
push eax
call fcn.004055a0
add esp, 0xc
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2c0
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.0041a580
add esp, 4
jmp 0x41826e
push esi
lea edx, [ebp - 0x14]
push edx
push 1
push str.O:BAG:BAD:_A__0xb___WD_S:_ML__NX___LW_
mov dword [ebp - 0x14], esi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x4182eb
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 0x418260
push ebx
push edi
push 3
push 0
push str.LaunchPermission
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x418260
push 1
lea ecx, [ebp - 0xc8]
call fcn.00406160
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.00404180
push eax
call fcn.004055a0
add esp, 0xc
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2c0
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.0041a580
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41826e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41827c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
lea ecx, [ebp - 0x178]
call fcn.00406160
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.sd_set
push eax
mov dword [ebp - 4], 3
call fcn.00404180
push eax
call fcn.004055a0
add esp, 0xc
lea ecx, [ebp - 0x110]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2c0
lea edx, [ebp - 0x110]
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041a580
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.00406160
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_create_sd
push eax
mov dword [ebp - 4], 1
call fcn.00404180
push eax
call fcn.004055a0
add esp, 0xc
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2c0
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.0041a580
add esp, 4
jmp 0x41826e