Function at 0x41c1f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x424
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x420], eax
mov ecx, dword [esp + 0x42c]
mov eax, dword [esp + 0x428]
push edi
mov edi, dword [esp + 0x434]
lea edx, [esp + 4]
push edx
push 3
push 0
push ecx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41c250
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0051916c
add esp, 0x424
ret
push esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.MRUList
mov esi, 0x400
push eax
mov dword [esp + 0x24], esi
call fcn.004b42b0
add esp, 0x18
test eax, eax
jne 0x41c2b1
cmp dword [esp + 0x10], 1
je 0x41c3f4
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0051916c
add esp, 0x424
ret
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.MRUListEx
push edx
mov dword [esp + 0x24], esi
call fcn.004b42b0
add esp, 0x18
test eax, eax
jne 0x41c417
cmp dword [esp + 0x10], 3
jne 0x41c44f
mov dword [esp + 0x14], 0xffffffff
test edi, edi
je 0x41c311
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x2c]
call fcn.0049b510
mov eax, dword [eax]
mov dword [esp + 0x18], 1
push ebx
lea edx, [esp + 0x18]
push edx
push 0x56ef48
push eax
call fcn.0051b8de
mov edx, dword [esp + 0x24]
add esp, 0xc
cmp eax, 1
jne 0x41c337
cmp edx, 0xffffffff
je 0x41c337
xor bl, bl
jmp 0x41c339
mov bl, 1
test byte [esp + 0x1c], 1
je 0x41c34d
lea ecx, [esp + 0x20]
call fcn.0049ac30
mov edx, dword [esp + 0x18]
test bl, bl
pop ebx
jne 0x41c417
mov eax, dword [esp + 0xc]
xor esi, esi
test eax, eax
jl 0x41c374
mov ecx, dword [esp + esi + 0x28]
cmp ecx, 0xffffffff
je 0x41c399
cmp ecx, edx
je 0x41c3be
add esi, 4
cmp esi, eax
jle 0x41c360
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0051916c
add esp, 0x424
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0051916c
add esp, 0x424
ret
sub eax, esi
sub eax, 4
push eax
lea eax, [esp + esi + 0x30]
push eax
lea ecx, [esp + esi + 0x30]
push ecx
call fcn.00519a20
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add edx, 0xfffffffc
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
push 0
push str.MRUListEx
jmp 0x41c4a8
lea esi, [esp + 0x28]
lea ecx, [esi + 2]
jmp 0x41c400
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41c400
sub esi, ecx
sar esi, 1
cmp esi, 0x200
jbe 0x41c43c
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0051916c
add esp, 0x424
ret
test esi, esi
je 0x41c44f
movzx eax, word [edi]
dec esi
cmp word [esp + esi*2 + 0x28], ax
je 0x41c474
test esi, esi
jne 0x41c443
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0051916c
add esp, 0x424
ret
lea edx, [esp + esi*2 + 0x28]
lea eax, [edx + 2]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41c480
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add edx, 0xfffffffe
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
push 0
push str.MRUList
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x41c45a
mov ecx, dword [esp + 0x428]
mov eax, esi
pop esi
pop edi
xor ecx, esp
call fcn.0051916c
add esp, 0x424
ret