Function at 0x419979
Capabilities:
Set registry value

Disassembly:
push 0x24
mov eax, 0x422778
call fcn.0042120f
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push 1
push 0x402d80
call dword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x4199b1
call fcn.00419415
mov esi, eax
jmp 0x419b3f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], ebx
push 0x402dcc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040bc2a
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0041feb3
test al, al
jne 0x419a0a
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040bc2a
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00419431
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00407204
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x419a15
mov eax, dword [eax]
jmp 0x419a17
mov eax, ebx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push 0xf003f
push 4
push ebx
push ebx
push eax
push dword [esi + 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
je 0x419a50
jle 0x419b1a
movzx esi, si
or esi, 0x80070000
jmp 0x419b1a
cmp dword [ebp - 0x24], 1
jne 0x419b18
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 7
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 8
test eax, eax
je 0x419a9d
cmp word [eax], bx
je 0x419a9d
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x419a98
call fcn.00419415
mov esi, eax
mov eax, dword [ebp - 0x20]
jmp 0x419aa7
mov eax, dword [ebp - 0x20]
jmp 0x419aa5
mov eax, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
mov esi, ebx
test esi, esi
js 0x419ab4
test eax, eax
jne 0x419ad0
mov esi, 0x8007054f
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x20], 0
je 0x419aca
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 3
jmp 0x419b1a
push dword [ebp - 0x1c]
push eax
push 3
push ebx
push 0x4032d0
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x419af8
jle 0x419afc
movzx esi, si
or esi, 0x80070000
jmp 0x419afa
mov esi, ebx
test esi, esi
js 0x419ab4
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x20], 0
je 0x419b14
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 3
mov esi, ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00407204
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x10], 0
je 0x419b3c
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], bl
mov dword [ebp - 4], 0x14
cmp dword [ebp - 0x14], 0
je 0x419b58
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov dword [ebp - 0x14], ebx
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004211ec
ret 8