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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ea20
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], vtable.Registry.0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
push str.IsWow64Process
mov byte [ebp - 4], 3
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp esi, ebx
je 0x41a5d2
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 0x14]
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x100
or eax, 0xf003f
mov esi, eax
jne 0x41a5ef
mov esi, 0x20019
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push ecx
push esi
push ebx
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
cmp eax, ebx
je 0x41a64f
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push ecx
push ebx
push ebx
push edx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
cmp eax, ebx
je 0x41a64c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push str.IsWow64Process
push str.kernel32
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp esi, ebx
je 0x41a67d
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 0x14]
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0x100
or eax, 0xf003f
mov esi, eax
jne 0x41a69a
mov esi, 0x20019
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push esi
push ebx
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
cmp eax, ebx
je 0x41a76f
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push ebx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x24]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x24]
neg esi
sbb esi, esi
inc esi
cmp eax, ebx
je 0x41a6f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
cmp esi, ebx
je 0x41a772
mov edi, dword [ebp + 0xc]
call fcn.00407c10
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffffff00
add esi, 0x100
or esi, 0xf003f
jne 0x41a728
mov esi, 0x20019
lea eax, [ebp - 0x24]
push eax
push esi
push ebx
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
cmp eax, ebx
je 0x41a76f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x24]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x41a76a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
jmp 0x41a772
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], vtable.Registry.0
cmp eax, ebx
je 0x41a787
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x20], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a7ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a7cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a7f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc