Function at 0x1f8cf3fc
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0x18
mov eax, 0x1f9634bb
call fcn.1f8a600e
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f8cf449
test dword [eax + 0x1c], 0x400
je 0x1f8cf449
mov ecx, dword [esi + 0x34]
push esi
push dword [ebp + 8]
call fcn.1f8bfa4a
push eax
mov eax, dword [0x1f97b00c]
mov ebx, 0x1f879438
push ebx
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f8cbe56
jmp 0x1f8cf44e
mov ebx, 0x1f879438
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x24]
call fcn.1f895fbd
and dword [ebp - 4], 0
mov edi, dword [ebp + 0xc]
push 0x3b
push dword [ebp + 8]
mov dword [ebp - 0x18], edi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x1f8cf47f
sub eax, dword [ebp + 8]
sar eax, 1
mov dword [ebp - 0x18], eax
mov edi, eax
test edi, edi
je 0x1f8cf847
cmp edi, 9
jne 0x1f8cf4a6
push edi
push 0x1f879a04
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x1f8cf847
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x1f8cf4da
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1f8cf4b2
sub eax, ebx
sar eax, 1
cmp eax, edi
jne 0x1f8cf4da
push edi
push ecx
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x1f8cf915
push 2
pop edx
add edi, 9
xor ecx, ecx
mov eax, edi
mul edx
seto cl
push 0
neg ecx
or eax, ecx
lea ecx, [ebp + 0xf]
push ecx
push eax
call sym.WsmSvc.DLL_public:_static_void____stdcall_WSManMemory::Alloc_unsigned_int__class_TestSystem::CallSite_const___enum_TestSystem::Mode_
lea ebx, [esi + 0x3c]
push eax
mov ecx, ebx
call fcn.1f95c8ef
mov eax, dword [ebx]
test eax, eax
jne 0x1f8cf523
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], eax
jne 0x1f8cf51b
mov ecx, dword [ebp - 0x24]
call fcn.1f8a79e7
push 0xe
pop eax
jmp 0x1f8cf929
push 0x1f8799f0
push edi
push eax
call fcn.1f89fa84
test eax, eax
jge 0x1f8cf568
push 0
mov esi, 0x54f
push esi
push 0x1f8788a8
push 0xe4
push 0x1f879448
call fcn.1f8a7bdf
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
jne 0x1f8cf561
mov ecx, dword [ebp - 0x24]
call fcn.1f8a79e7
mov eax, esi
jmp 0x1f8cf929
push dword [ebp - 0x18]
mov eax, dword [ebx]
push dword [ebp + 8]
add edi, 0xfffffff8
push edi
add eax, 0x10
push eax
call fcn.1f897e99
test eax, eax
jge 0x1f8cf595
push 0
mov esi, 0x54f
push esi
push 0x1f8799e8
push 0xe9
jmp 0x1f8cf545
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f8cf5ce
test dword [eax + 0x1c], 0x400
je 0x1f8cf5ce
mov ebx, dword [ebx]
mov ecx, dword [esi + 0x34]
push esi
push ebx
call fcn.1f8bfa4a
push eax
mov eax, dword [0x1f97b00c]
push 0x1f879438
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f8cbe56
and dword [ebp - 0x10], 0
mov byte [ebp - 4], 4
mov esi, dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20106
push ebx
push 0
push 0x1f879850
mov edi, SysReAllocStringLen
push edi
call esi
mov dword [ebp + 8], eax
test eax, eax
je 0x1f8cf62e
cmp eax, 2
je 0x1f8cf63e
cmp eax, 0xa1
je 0x1f8cf62e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1f8ab67d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
jne 0x1f8cf626
mov ecx, dword [ebp - 0x24]
call fcn.1f8a79e7
mov eax, dword [ebp + 8]
jmp 0x1f8cf929
cmp eax, 2
je 0x1f8cf63e
cmp eax, 0xa1
jne 0x1f8cf744
and dword [ebp + 0xc], 0
mov byte [ebp - 4], 6
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0x1f875698
push edi
call esi
mov dword [ebp + 8], eax
cmp eax, 2
je 0x1f8cf668
cmp eax, 0xa1
jne 0x1f8cf70f
and dword [ebp - 0x1c], 0
mov byte [ebp - 4], 8
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0x1f879988
push edi
call esi
mov dword [ebp + 8], eax
cmp eax, 2
je 0x1f8cf68e
cmp eax, 0xa1
jne 0x1f8cf6db
and dword [ebp - 0x18], 0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x18]
push eax
push ebx
push 0
push 0x1f879930
push edi
call esi
xor esi, esi
mov dword [ebp + 8], eax
cmp eax, esi
jne 0x1f8cf6cd
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x102
push esi
push esi
push esi
push 0x1f879920
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x18]
call fcn.1f8ab67d
jmp 0x1f8cf6dd
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1f8cf701
push esi
lea eax, [ebp + 0xc]
push eax
push esi
push 0x102
push esi
push esi
push esi
push 0x1f879910
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c]
call fcn.1f8ab67d
jmp 0x1f8cf711
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1f8cf735
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push 0x102
push esi
push esi
push esi
push 0x1f8798ec
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.1f8ab67d
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1f8cf7f8
mov eax, dword [ebp - 0x14]
add eax, 0x3c
mov ecx, dword [eax]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1f8cf759
mov edi, dword [ebp - 0x10]
sub eax, esi
mov esi, dword [ebp - 0x14]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
mov ecx, dword [esi + 0x34]
push 1
push 0
call fcn.1f8bfa4a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x1f8cf7ec
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f8cf7c7
test dword [eax + 0x1c], 0x200
je 0x1f8cf7c7
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x34]
push esi
push eax
call fcn.1f8bfa4a
push eax
mov eax, dword [0x1f97b00c]
push 0x1f879438
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f8cbe56
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1f8ab67d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
jne 0x1f8cf7e5
mov ecx, dword [ebp - 0x24]
call fcn.1f8a79e7
mov eax, edi
jmp 0x1f8cf929
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
jmp 0x1f8cf910
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f8cf608
test dword [eax + 0x1c], 0x200
je 0x1f8cf608
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
add eax, 0x3c
mov eax, dword [eax]
push ecx
mov ecx, dword [ecx + 0x34]
push eax
call fcn.1f8bfa4a
push eax
mov eax, dword [0x1f97b00c]
push 0x1f879438
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f8cbe56
jmp 0x1f8cf608
lea ecx, [esi + 0x3c]
cmp dword [ecx], 0
je 0x1f8cf915
push 0
call fcn.1f95b4ee
and dword [ebp + 0xc], 0
mov byte [ebp - 4], 2
lea eax, [ebp + 0xc]
push eax
push 0x20106
push 0
push 0x1f879850
push SysReAllocStringLen
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1f8cf909
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f8cf8ba
test dword [eax + 0x1c], 0x400
je 0x1f8cf8ba
mov ecx, dword [esi + 0x34]
push esi
push dword [ebp + 8]
call fcn.1f8bfa4a
push eax
mov eax, dword [0x1f97b00c]
push ebx
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f8cbe56
mov ecx, dword [esi + 0x34]
mov edi, dword [ebp + 0xc]
call fcn.1f8bfa4a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_RegDeleteValueW]
mov edi, eax
test edi, edi
je 0x1f8cf909
mov eax, dword [0x1f97b00c]
cmp eax, 0x1f97b00c
je 0x1f8cf909
test dword [eax + 0x1c], 0x400
je 0x1f8cf909
mov ecx, dword [esi + 0x34]
push esi
push dword [ebp + 8]
call fcn.1f8bfa4a
push eax
mov eax, dword [0x1f97b00c]
push edi
push ebx
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1f8cbab0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.1f8ab67d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
jne 0x1f8cf927
mov ecx, dword [ebp - 0x24]
call fcn.1f8a79e7
xor eax, eax
call fcn.1f8a60fa
ret 8