Function at 0x4f00d3e8
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4f01a01c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x124]
push eax
push 0x2000000
xor eax, eax
mov esi, edx
push eax
push 0x4f0015e8
push 0x80000002
mov ebx, ecx
mov dword [ebp - 0x134], eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f00d6a4
push 0x28
pop eax
mov word [ebp - 0x130], ax
mov word [ebp - 0x12e], ax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x130]
push eax
push 0x10
push ebx
call dword [sym.imp.ntdll.dll_RtlIntegerToUnicodeString]
xor ecx, ecx
lea eax, [ebp - 0x120]
push ecx
push eax
push ecx
push 0x2000000
push ecx
push ecx
push ecx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x124]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x4f00d698
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x134]
jne 0x4f00d48e
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
xor esi, esi
push esi
push 0x4f001574
push dword [ebp - 0x120]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x4f00d67a
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4f00d4cd
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push esi
push 0x4f0015a0
push dword [ebp - 0x120]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x4f00d67a
movzx eax, bl
lea ecx, [ebp - 0x11c]
sub eax, 0x11
je 0x4f00d522
sub eax, 1
je 0x4f00d51b
push 0x4f001960
jmp 0x4f00d527
push 0x4f001948
jmp 0x4f00d527
push 0x4f001930
push 0x50
pop edx
call fcn.4f00c5bc
lea ecx, [ebp - 0x11c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4f00d538
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x11c]
push eax
push 1
push esi
push 0x4f001588
push dword [ebp - 0x120]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x4f00d67a
push dword [ebp - 0x120]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
push dword [ebp - 0x124]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x128]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x4f0015b8
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
xor esi, esi
inc esi
xor ebx, ebx
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
push 0x28
rep stosd dword es:[edi], eax
pop eax
mov word [ebp - 0x130], ax
mov word [ebp - 0x12e], ax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x130]
push eax
push 0xa
push esi
call dword [sym.imp.ntdll.dll_RtlIntegerToUnicodeString]
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0x26
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x128]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x4f00d630
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4f00d630
inc esi
cmp esi, 0x400
jl 0x4f00d5b0
cmp esi, 0x400
jge 0x4f00d672
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x2c]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push ebx
lea ecx, [ebp - 0x7c]
push ecx
push dword [ebp - 0x128]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
push dword [ebp - 0x128]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x4f00d6a6
push dword [ebp - 0x128]
jmp 0x4f00d69e
push dword [ebp - 0x120]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x124]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
push dword [ebp - 0x124]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4f0051a0
leave
ret 4