Function at 0x41aaf0
Capabilities:
Set registry value

Disassembly:
mov eax, 0x211c
call fcn.00424660
mov eax, dword [0x43a070]
xor eax, esp
mov dword [esp + 0x2118], eax
mov eax, dword [esp + 0x2124]
push ebp
mov ebp, dword [esp + 0x2124]
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x124]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
call fcn.0041b090
test eax, eax
jl 0x41adee
push ebx
lea ecx, [esp + 0x10]
push ecx
lea ebx, [esp + 0x12c]
call fcn.0041a920
add esp, 4
test eax, eax
jne 0x41ab6c
mov eax, 0x80020009
jmp 0x41aded
call fcn.0041b8b0
lea eax, [esp + 0x128]
mov ecx, esi
call fcn.0041b090
xor esi, esi
cmp eax, esi
jl 0x41aded
movzx eax, word [esp + 0x10]
cmp eax, 0x13
jg 0x41ad15
je 0x41accf
cmp eax, 8
je 0x41ac9f
cmp eax, 0x11
jne 0x41add6
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test bl, 1
jne 0x41ac11
cdq
sub eax, edx
mov ebp, eax
xor eax, eax
sar ebp, 1
mov dword [esp + 0x24], esi
cmp eax, esi
ja 0x41abda
cmp ebp, 0xffffffff
jbe 0x41abe4
push 0x80070057
call fcn.00401730
cmp ebp, 0x100
jbe 0x41ac1b
lea eax, [esp + 0x24]
push eax
mov eax, ebp
call fcn.004129e0
mov eax, dword [esp + 0x24]
cmp eax, esi
jne 0x41ac23
lea ecx, [esp + 0x28]
test ecx, ecx
je 0x41ac11
lea eax, [esp + 0x24]
call fcn.0040d690
mov eax, 0x80004005
jmp 0x41aded
lea eax, [esp + 0x28]
mov dword [esp + 0x24], eax
push ebp
push esi
push eax
call fcn.0041e460
add esp, 0xc
cmp ebx, esi
jle 0x41ac65
mov eax, dword [esp + 0x24]
mov cx, word [esp + esi*2 + 0x128]
mov edx, esi
shr edx, 1
lea edi, [edx + eax]
call fcn.0041aa80
mov ecx, esi
and ecx, 1
add ecx, ecx
add ecx, ecx
mov edx, ecx
mov ecx, 4
sub ecx, edx
shl al, cl
inc esi
or byte [edi], al
cmp esi, ebx
jl 0x41ac32
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push ebp
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
lea eax, [esp + 0x28]
cmp dword [esp + 0x24], eax
je 0x41adc9
lea eax, [esp + 0x24]
call fcn.0040d690
jmp 0x41adc9
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x12c]
push eax
push 1
push esi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
jmp 0x41adc9
lea edx, [esp + 0x18]
push edx
push esi
push esi
lea eax, [esp + 0x134]
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x18]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push esi
push edi
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea esi, [esp + 0x10]
mov ebx, eax
call fcn.0041aa60
jmp 0x41adc9
cmp eax, 0x4008
jne 0x41add6
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x24], esi
add eax, 2
lea esi, [esp + 0x24]
call fcn.0041a9d0
mov edi, dword [esp + 0x24]
test edi, edi
je 0x41adb3
cmp word [esp + 0x128], 0
lea esi, [esp + 0x128]
je 0x41ad90
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov edi, edi
push esi
call ebx
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x41ad81
cmp word [eax], 0x30
jne 0x41ad81
xor edx, edx
mov word [edi], dx
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x41ad8a
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x41ad60
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [edi + 2], cx
mov edx, dword [esp + 0x24]
push edx
push eax
push ebp
call fcn.0041aa10
mov edi, dword [esp + 0x24]
mov ebx, eax
jmp 0x41adb8
mov ebx, 0xe
lea ecx, [esp + 0x28]
cmp edi, ecx
je 0x41adc9
lea eax, [esp + 0x24]
call fcn.0040d690
test ebx, ebx
je 0x41add6
mov eax, ebx
call fcn.0041b050
jmp 0x41aded
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
call fcn.0041b090
xor edx, edx
test eax, eax
setge dl
dec edx
and eax, edx
pop ebx
mov ecx, dword [esp + 0x2124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041cac6
add esp, 0x211c
ret 8