Function at 0x404914
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x2114
lea ebp, [esp - 0x6c]
call fcn.0040a330
push esi
push edi
lea eax, [ebp - 0x20a8]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x64], edi
call fcn.00403e94
cmp eax, edi
jl 0x404bd6
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x20a8]
push eax
call fcn.00404c19
test eax, eax
pop ecx
pop ecx
jne 0x404963
mov eax, 0x80020009
jmp 0x404bd6
mov ecx, esi
call fcn.00403e6b
lea eax, [ebp - 0x20a8]
push eax
mov ecx, esi
call fcn.00403e94
cmp eax, edi
jl 0x404bd6
movzx eax, word [ebp + 0x64]
sub eax, 8
push ebx
je 0x404b8b
sub eax, 9
je 0x404a99
dec eax
dec eax
je 0x404a6d
sub eax, 0x3ff5
jne 0x404bc4
lea eax, [ebp - 0x20a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
cmp eax, 0x100
mov dword [ebp - 0xa8], edi
jbe 0x4049d5
push eax
lea ecx, [ebp - 0xa8]
call fcn.00404cdd
jmp 0x4049e1
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov esi, dword [ebp - 0xa8]
cmp esi, edi
je 0x404a48
cmp word [ebp - 0x20a8], 0
lea edi, [ebp - 0x20a8]
je 0x404a2d
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x404a20
cmp word [eax], 0x30
jne 0x404a20
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x404a27
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x404a01
and word [esi], 0
push dword [ebp - 0xa8]
mov ecx, dword [ebp + 0x74]
push dword [ebp + 0x78]
call fcn.00404bdf
mov esi, eax
xor edi, edi
jmp 0x404a4b
push 0xe
pop esi
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0xa8], eax
je 0x404bb7
lea ecx, [ebp - 0xa8]
call fcn.00403d3a
jmp 0x404bb7
call dword [0x414068]
lea eax, [ebp + 0x68]
push eax
push edi
push edi
lea eax, [ebp - 0x20a8]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x60], eax
push 4
lea eax, [ebp + 0x60]
push eax
push 4
jmp 0x404ba6
lea eax, [ebp - 0x20a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp + 0x68], eax
je 0x404ab7
mov eax, 0x80004005
jmp 0x404bd5
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebx, 0x100
mov dword [ebp - 0xa8], edi
jbe 0x404ada
push ebx
lea ecx, [ebp - 0xa8]
call fcn.00404cdd
jmp 0x404ae6
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], edi
jne 0x404b05
lea eax, [ebp - 0xa4]
test eax, eax
je 0x404aad
lea ecx, [ebp - 0xa8]
call fcn.00403d3a
jmp 0x404aad
push ebx
push edi
push dword [ebp - 0xa8]
call fcn.00409750
add esp, 0xc
cmp dword [ebp + 0x68], edi
jle 0x404b55
mov eax, edi
cdq
sub eax, edx
mov esi, eax
xor eax, eax
mov ax, word [ebp + edi*2 - 0x20a8]
sar esi, 1
add esi, dword [ebp - 0xa8]
push eax
call fcn.00404cab
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 + 0x68]
jl 0x404b1a
xor edi, edi
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push ebx
push dword [ebp - 0xa8]
push 3
push edi
push dword [ebp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0xa8], eax
je 0x404bb7
lea ecx, [ebp - 0xa8]
call fcn.00403d3a
jmp 0x404bb7
lea eax, [ebp - 0x20a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20a8]
push eax
push 1
mov eax, dword [ebp + 0x74]
push edi
push dword [ebp + 0x78]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
je 0x404bc4
push esi
call fcn.004047a5
pop ecx
jmp 0x404bd5
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x5c]
call fcn.00403e94
cmp eax, edi
jl 0x404bd5
xor eax, eax
pop ebx
pop edi
pop esi
add ebp, 0x6c
leave
ret 0xc