Function at 0x416410
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425056
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2114
call fcn.00419c10
mov eax, dword [0x42d5a0]
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.00415000
cmp eax, edi
jl 0x41674e
lea ecx, [ebp - 0x211c]
push ecx
lea edx, [ebp - 0x2118]
push edx
call fcn.00414e40
add esp, 8
test eax, eax
jne 0x416489
mov eax, 0x80020009
jmp 0x41674e
mov ecx, esi
call fcn.00414fa0
lea eax, [ebp - 0x2118]
push eax
mov ecx, esi
call fcn.00415000
cmp eax, edi
jl 0x41674e
movzx eax, word [ebp - 0x211c]
cmp eax, 0x13
jg 0x416659
je 0x416612
cmp eax, 8
je 0x4165f6
cmp eax, 0x11
jne 0x416739
lea ecx, [ebp - 0x2118]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test bl, 1
mov dword [ebp - 0x2120], ebx
jne 0x416549
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x211c], esi
mov dword [ebp - 0x118], 0
mov dword [ebp - 4], 3
push esi
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.004160c0
jmp 0x41652a
mov edi, dword [ebp - 0x118]
test edi, edi
jne 0x416553
lea edx, [ebp - 0x114]
test edx, edx
je 0x416549
lea ecx, [ebp - 0x118]
call fcn.00402410
mov eax, 0x80004005
jmp 0x41674e
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
xor esi, esi
test ebx, ebx
rep stosb byte es:[edi], al
jle 0x4165ae
jmp 0x416570
mov ecx, dword [ebp - 0x118]
xor edx, edx
mov dx, word [ebp + esi*2 - 0x2118]
mov eax, esi
shr eax, 1
lea edi, [eax + ecx]
push edx
call fcn.00414ef0
mov ecx, esi
and ecx, 1
shl ecx, 2
mov edx, ecx
mov ecx, 4
sub ecx, edx
mov dl, byte [edi]
shl al, cl
add esp, 4
or dl, al
inc esi
cmp esi, ebx
mov byte [edi], dl
jl 0x416570
mov ecx, dword [ebp - 0x211c]
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x118]
lea edx, [ebp - 0x114]
cmp eax, edx
je 0x416722
lea ecx, [ebp - 0x118]
call fcn.00402410
jmp 0x416722
mov ecx, dword [ebp + 0xc]
push 1
lea eax, [ebp - 0x2118]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401b30
mov esi, eax
jmp 0x416722
call dword [0x42d0a0]
lea edx, [ebp - 0x2120]
push edx
push edi
push edi
lea eax, [ebp - 0x2118]
push eax
mov dword [ebp - 0x211c], edi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ecx, dword [ebp - 0x2120]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.00401b10
lea ecx, [ebp - 0x211c]
mov esi, eax
call fcn.00402380
jmp 0x416722
cmp eax, 0x4008
jne 0x416739
lea eax, [ebp - 0x2118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.00416090
mov edi, dword [ebp - 0x118]
test edi, edi
je 0x416708
cmp word [ebp - 0x2118], 0
lea esi, [ebp - 0x2118]
je 0x4166e6
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
jmp 0x4166b0
push esi
call ebx
mov cx, word [esi]
cmp cx, 0x5c
jne 0x4166d7
cmp word [eax], 0x30
jne 0x4166d7
mov word [edi], 0
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x4166e0
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x4166b0
mov edx, dword [ebp + 0xc]
mov word [edi], 0
mov ecx, dword [ebp - 0x118]
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.00401b60
mov edi, dword [ebp - 0x118]
mov esi, eax
jmp 0x41670d
mov esi, 0xe
lea eax, [ebp - 0x114]
cmp edi, eax
je 0x416722
lea ecx, [ebp - 0x118]
call fcn.00402410
xor edi, edi
cmp esi, edi
je 0x416733
push esi
call fcn.00401900
add esp, 4
jmp 0x41674e
mov esi, dword [ebp - 0x2124]
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.00415000
xor edx, edx
cmp eax, edi
setge dl
dec edx
and eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00419c7e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc