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

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
mov eax, dword [ebp + 0x7c]
sub esp, 0x2c8
push esi
push edi
mov edi, dword [eax]
xor esi, esi
cmp edi, 0x10
jbe 0x407e62
lea ecx, [edi - 0x10]
mov dword [ebp + 0x68], esi
test ecx, 0xfffffffe
jbe 0x407e62
mov ecx, dword [ebp + 0x78]
push ebx
mov ebx, dword [ecx]
mov ecx, ebx
cmp word [ecx], si
je 0x407bcd
inc dword [ebp + 0x68]
mov edx, edi
sub edx, 0x10
inc ecx
shr edx, 1
inc ecx
cmp dword [ebp + 0x68], edx
jb 0x407bb2
jmp 0x407e61
mov ecx, ebx
call fcn.0040d6c6
lea ecx, [eax + eax]
lea edx, [ecx + ebx + 2]
lea eax, [edx + 0x10]
mov dword [ebp + 0x64], eax
mov eax, ebx
sub eax, dword [ebp + 0x64]
add eax, edi
sub edi, ecx
inc edi
inc edi
mov dword [ebp + 0x60], eax
cmp edi, 0x10
jb 0x407e61
lea ecx, [ebp - 4]
call fcn.00407749
xor edi, edi
cmp word [ebx], 0x2a
jne 0x407d2e
cmp word [ebx + 2], di
jne 0x407d2e
lea eax, [ebp + 0x5c]
push eax
push 8
push edi
push 0x401d60
mov ebx, 0x80000001
push ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407e61
mov dword [ebp + 0x78], edi
lea eax, [ebp + 0x54]
push eax
push edi
push edi
push edi
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x78]
mov dword [ebp + 0x7c], 0x28
push dword [ebp + 0x5c]
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
cmp eax, 0xea
je 0x407d1e
cmp eax, edi
jne 0x407d26
cmp dword [ebp + 0x7c], 0x26
jne 0x407d1e
cmp word [ebp - 0x54], 0x7b
jne 0x407d1e
cmp word [ebp - 0xa], 0x7d
jne 0x407d1e
lea eax, [ebp - 0x54]
push eax
push 0x401d60
lea eax, [ebp - 0x25c]
push eax
call dword [0x411bf4]
cmp dword [ebp + 0x74], 0x11
jne 0x407cd2
lea eax, [ebp + 0x68]
push eax
push 2
push edi
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407d15
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x68]
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
jmp 0x407d0b
cmp dword [ebp + 0x74], 0xf
jne 0x407d12
push edi
lea eax, [ebp + 0x68]
push eax
push edi
push 2
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407d15
push dword [ebp + 0x60]
lea eax, [ebp - 4]
push dword [ebp + 0x64]
push 3
push edi
push eax
push dword [ebp + 0x68]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
test eax, eax
jne 0x407d15
inc esi
jmp 0x407d15
mov dword [ebp + 0x68], edi
push dword [ebp + 0x68]
call dword [sym.imp.advapi32.dll_RegCloseKey]
inc dword [ebp + 0x78]
jmp 0x407c39
push dword [ebp + 0x5c]
jmp 0x407e5b
mov ecx, ebx
call fcn.0040d6c6
add eax, eax
push eax
push ebx
lea eax, [ebp + 0x4c]
push eax
call fcn.0040e0c4
lea ecx, [ebp - 0x54]
lea edx, [ebp + 0x4c]
call fcn.00407749
lea eax, [ebp - 0x54]
push eax
push 0x401d60
lea eax, [ebp - 0x25c]
push eax
call dword [0x411bf4]
mov ebx, dword [ebp + 0x74]
lea eax, [ebp + 0x68]
cmp ebx, 0xf
jne 0x407d8a
push edi
push eax
push edi
push 2
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push eax
push 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
jmp 0x407da8
push eax
xor eax, eax
cmp ebx, 0x11
sete al
inc eax
push eax
push edi
lea eax, [ebp - 0x25c]
push eax
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp esi, edi
je 0x407e61
cmp ebx, 0xf
jne 0x407dd4
push dword [ebp + 0x60]
lea eax, [ebp - 4]
push dword [ebp + 0x64]
push 3
push edi
push eax
push dword [ebp + 0x68]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
jmp 0x407de6
cmp ebx, 0x11
jne 0x407def
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x68]
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x407e58
cmp ebx, 0x10
jne 0x407e58
lea eax, [ebp + 0x74]
push eax
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x68]
xor esi, esi
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x407e58
mov eax, dword [ebp + 0x74]
cmp eax, edi
jbe 0x407e1e
call fcn.0040d29c
mov ebx, eax
jmp 0x407e20
xor ebx, ebx
cmp ebx, edi
je 0x407e58
lea eax, [ebp + 0x74]
push eax
push ebx
push edi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x68]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x407e52
mov esi, dword [ebp + 0x78]
push dword [esi]
call fcn.0040d2af
mov eax, dword [ebp + 0x7c]
mov dword [esi], ebx
mov esi, dword [ebp + 0x74]
mov dword [eax], esi
jmp 0x407e58
push ebx
call fcn.0040d2af
push dword [ebp + 0x68]
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
add ebp, 0x6c
leave
ret 0xc