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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4739c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
lea edi, [ecx + 4]
push edi
push 0
push 0x20006
push 0
push 0
push 0
push dword [ecx]
mov dword [ebp - 0x28], edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41ac04
cmp dword [esi], eax
je 0x41abfc
add esi, 0xc
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x2c], esi
nop word [eax + eax]
mov eax, dword [esi - 8]
cmp eax, 7
ja case.default.0x41aabc
jmp dword [eax*4 + 0x41acc4]
mov eax, dword [esi]
push 4
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push 4
push 0
push dword [esi - 0xc]
push dword [edi]
call ebx
jmp case.default.0x41aabc
mov eax, dword [esi]
push 4
movzx eax, byte [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0
push dword [esi - 0xc]
push dword [edi]
call ebx
jmp case.default.0x41aabc
mov eax, dword [esi]
push 8
movsd xmm0, qword [eax]
lea eax, [ebp - 0x48]
push eax
push 3
push 0
push dword [esi - 0xc]
movsd qword [ebp - 0x48], xmm0
push dword [edi]
call ebx
jmp case.default.0x41aabc
mov eax, dword [esi]
push 4
movsx eax, word [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0
push dword [esi - 0xc]
push dword [edi]
call ebx
jmp case.default.0x41aabc
mov edx, dword [esi]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ab44
sub ecx, edi
mov edi, dword [ebp - 0x28]
push ecx
push edx
push 1
push 0
push dword [esi - 0xc]
push dword [edi]
call ebx
jmp case.default.0x41aabc
mov ebx, dword [esi - 4]
lea eax, [ebp - 0x30]
mov edi, dword [esi]
push 0
push eax
mov eax, dword [ebp - 0x28]
push 0
push 0x20006
push 0
push 0
push 0
push dword [esi - 0xc]
shr ebx, 2
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41abe2
xor esi, esi
test ebx, ebx
je 0x41abd6
push esi
push 0x45c810
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.00402230
add esp, 0x10
lea eax, [ebp - 0x24]
cmp dword [edi], 0
je 0x41abc4
push 4
push edi
push 4
push 0
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x41abce
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc esi
add edi, 4
cmp esi, ebx
jb 0x41ab95
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x2c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [ebp - 0x28]
add esi, 0x18
mov dword [ebp - 0x2c], esi
cmp dword [esi - 0xc], 0
jne 0x41aab0
pop ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004297e8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
mov edi, dword [esi - 4]
push 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x28]
push 0
push 0x20006
push 0
push 0
push 0
push dword [esi - 0xc]
shr edi, 1
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41abe8
xor esi, esi
test edi, edi
je 0x41ac9c
nop dword [eax + eax]
push esi
push 0x45c810
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.00402230
mov eax, dword [ebp - 0x3c]
add esp, 0x10
movzx ecx, word [eax + esi*2]
mov eax, ecx
mov dword [ebp - 0x40], eax
test cx, cx
je 0x41ac8a
push 4
lea eax, [ebp - 0x40]
push eax
push 4
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x34]
call ebx
jmp 0x41ac97
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc esi
cmp esi, edi
jb 0x41ac50
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x2c]
jmp 0x41abe8
push dword [esi - 4]
push dword [esi]
push 3
push 0
push dword [esi - 0xc]
push dword [edi]
call ebx
jmp case.default.0x41aabc