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

Disassembly:
push ebp
lea ebp, [esp - 0x438]
sub esp, 0x438
push 0xffffffffffffffff
push 0x65514e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x434], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 0x440]
mov eax, dword [ebp + 0x444]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x450]
mov dword [ebp - 0x38], ecx
mov edi, dword [ebp + 0x454]
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x20], eax
xor edx, edx
mov word [ebp + 0x1c], dx
mov byte [ebp - 4], 3
mov eax, dword [0x75dd28]
push eax
mov ecx, dword [ebp + 0x44c]
push ecx
lea ecx, [ebp + 0x18]
call fcn.00401980
cmp byte [ebp + 0x458], 0
jne 0x4f3b59
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x4f3b51
lea eax, [ebp + 0x1c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x14], eax
xor edx, edx
mov word [ebp + 0x10], dx
mov byte [ebp - 4], 4
push edi
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.004f3a80
test eax, eax
je 0x4f3e35
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4f3cb1
cmp dword [ebp - 0x34], eax
je 0x4f3cb1
xor edi, edi
xor esi, esi
mov dword [ebp - 0x30], edi
test esi, esi
jne 0x4f3cb1
push 0x104
lea eax, [ebp + 0x22c]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x4f3cab
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
push eax
push 0xf003f
push eax
push 0x679c78
push eax
lea eax, [ebp + 0x22c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4f3cab
mov dword [ebp - 0x1c], 0x208
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp + 0x24]
push edx
push eax
push eax
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f3ca1
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4f3c33
lea eax, [ebp + 0x10]
lea ecx, [ebp + 0x24]
push ecx
push eax
call fcn.0062567a
add esp, 8
test eax, eax
jne 0x4f3ca1
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x4f3c4e
lea eax, [ebp + 0x1c]
lea ecx, [ebp + 0x22c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4f3c7a
test dx, dx
je 0x4f3c76
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4f3c7a
add eax, 4
add ecx, 4
test dx, dx
jne 0x4f3c54
xor eax, eax
jmp 0x4f3c7f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4f3ca1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x22c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
inc edi
jmp 0x4f3bb5
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
jmp 0x4f3bb5
cmp byte [ebp + 0x458], 0
je 0x4f3e35
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x4f3cc8
lea eax, [ebp + 0x1c]
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4f3e35
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x1c], 0x208
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x24]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f3d32
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4f3d1c
lea eax, [ebp + 0x10]
lea ecx, [ebp + 0x24]
push ecx
push eax
call fcn.0062567a
add esp, 8
test eax, eax
jne 0x4f3d32
mov byte [ebp - 0x11], al
jmp 0x4f3d6f
mov edx, dword [ebp + 0xc]
test edx, edx
mov eax, edx
jne 0x4f3d3e
lea eax, [ebp + 0x10]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f3d41
sub eax, esi
sar eax, 1
test edx, edx
mov ecx, edx
jne 0x4f3d59
lea ecx, [ebp + 0x10]
lea edx, [eax + eax + 2]
push edx
push ecx
push 1
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x24], 4
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 0
push 0
push str.contexts
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4f3da7
cmp dword [ebp - 0x2c], 0xf3
jne 0x4f3da7
mov byte [ebp - 0x11], al
jmp 0x4f3dc7
mov dword [ebp - 0x20], 0xf3
push 4
lea ecx, [ebp - 0x20]
push ecx
push 4
push 0
push str.contexts
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp]
call fcn.00406fc0
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x4f3e29
mov edx, dword [ebp + 0x18]
test edx, edx
mov eax, edx
jne 0x4f3df4
lea eax, [ebp + 0x1c]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f3df7
sub eax, esi
sar eax, 1
test edx, edx
jne 0x4f3e0d
lea edx, [ebp + 0x1c]
mov ecx, dword [ebp]
test ecx, ecx
jne 0x4f3e17
lea ecx, [ebp + 4]
lea eax, [eax + eax + 2]
push eax
push edx
push 1
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.00401210
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xc]
call fcn.00401210
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.00401210
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x448]
call fcn.00402570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x44c]
call fcn.00402570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x434]
xor ecx, ebp
call fcn.0062016f
add ebp, 0x438
mov esp, ebp
pop ebp
ret 0x1c