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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43078c
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 0x4181fd
push 1
lea ecx, [ebp - 0xc8]
call fcn.00405fb0
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.004041c0
push eax
call fcn.004053f0
add esp, 0xc
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2e0
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.0041aa30
add esp, 4
jmp 0x4182be
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 0x41833b
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 0x4182b0
push ebx
push edi
push 3
push 0
push str.LaunchPermission
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4182b0
push 1
lea ecx, [ebp - 0xc8]
call fcn.00405fb0
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.004041c0
push eax
call fcn.004053f0
add esp, 0xc
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2e0
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.0041aa30
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4182be
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4182cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
lea ecx, [ebp - 0x178]
call fcn.00405fb0
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.sd_set
push eax
mov dword [ebp - 4], 3
call fcn.004041c0
push eax
call fcn.004053f0
add esp, 0xc
lea ecx, [ebp - 0x110]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2e0
lea edx, [ebp - 0x110]
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041aa30
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.00405fb0
mov dword [eax + 0x60], 0xa
add eax, 0x10
push str.ERROR:_couldnt_create_sd
push eax
mov dword [ebp - 4], 1
call fcn.004041c0
push eax
call fcn.004053f0
add esp, 0xc
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2e0
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.0041aa30
add esp, 4
jmp 0x4182be