Function at 0x4050b9
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4179f8
call fcn.00410b5c
push ecx
mov eax, 0x2114
call fcn.00411100
mov eax, dword [0x41d280]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2118]
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x2124], esi
mov dword [ebp - 0x211c], edi
call fcn.00403db0
cmp eax, edi
jl 0x4053ac
lea eax, [ebp - 0x211c]
push eax
lea eax, [ebp - 0x2118]
push eax
call fcn.00403c51
test eax, eax
pop ecx
pop ecx
jne 0x405123
mov eax, 0x80020009
jmp 0x4053ac
mov ecx, esi
call fcn.00403d8e
lea eax, [ebp - 0x2118]
push eax
mov ecx, esi
call fcn.00403db0
cmp eax, edi
jl 0x4053ac
movzx eax, word [ebp - 0x211c]
sub eax, 8
je 0x405375
sub eax, 9
je 0x405270
dec eax
dec eax
je 0x40522b
sub eax, 0x3ff5
jne 0x405398
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x118], edi
add eax, eax
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.00404836
jmp 0x40519f
mov esi, dword [ebp - 0x118]
cmp esi, edi
je 0x405206
cmp word [ebp - 0x2118], 0
lea edi, [ebp - 0x2118]
je 0x4051eb
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x4051de
cmp word [eax], 0x30
jne 0x4051de
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x4051e5
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x4051bf
and word [esi], 0
push dword [ebp - 0x118]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00403b46
mov esi, eax
xor edi, edi
jmp 0x405209
push 0xe
pop esi
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x40538b
lea ecx, [ebp - 0x118]
call fcn.004042d2
jmp 0x40538b
call dword [0x41d050]
lea eax, [ebp - 0x211c]
push eax
push edi
push edi
lea eax, [ebp - 0x2118]
push eax
mov dword [ebp - 0x2120], edi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x211c]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00403b00
lea ecx, [ebp - 0x2120]
mov esi, eax
call fcn.0040420c
jmp 0x40538b
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x211c], eax
jne 0x4052de
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x2120], ebx
mov dword [ebp - 0x118], edi
mov dword [ebp - 4], 3
push ebx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.00404836
jmp 0x4052c1
cmp dword [ebp - 0x118], edi
jne 0x4052e8
lea eax, [ebp - 0x114]
test eax, eax
je 0x4052de
lea ecx, [ebp - 0x118]
call fcn.004042d2
mov eax, 0x80004005
jmp 0x4053ac
push ebx
push edi
push dword [ebp - 0x118]
call fcn.004103a0
add esp, 0xc
cmp dword [ebp - 0x211c], edi
jle 0x40533f
mov ecx, dword [ebp - 0x118]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
xor eax, eax
mov ax, word [ebp + edi*2 - 0x2118]
push eax
call fcn.00403ce3
pop ecx
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x211c]
jl 0x405300
xor edi, edi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x118]
push 3
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x40538b
lea ecx, [ebp - 0x118]
call fcn.004042d2
jmp 0x40538b
mov ecx, dword [ebp + 8]
push 1
lea eax, [ebp - 0x2118]
push eax
push dword [ebp + 0xc]
call fcn.00403b1a
mov esi, eax
cmp esi, edi
je 0x405398
push esi
call fcn.00403888
pop ecx
jmp 0x4053ac
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2124]
call fcn.00403db0
cmp eax, edi
jl 0x4053ac
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004102ee
pop edi
pop esi
pop ebx
leave
ret 0xc