Function at 0x404848
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x2114
lea ebp, [esp - 0x6c]
call fcn.0040ad40
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.00403dc8
cmp eax, edi
jl 0x404b0a
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x20a8]
push eax
call fcn.00404b4d
test eax, eax
pop ecx
pop ecx
jne 0x404897
mov eax, 0x80020009
jmp 0x404b0a
mov ecx, esi
call fcn.00403d9f
lea eax, [ebp - 0x20a8]
push eax
mov ecx, esi
call fcn.00403dc8
cmp eax, edi
jl 0x404b0a
movzx eax, word [ebp + 0x64]
sub eax, 8
push ebx
je 0x404abf
sub eax, 9
je 0x4049cd
dec eax
dec eax
je 0x4049a1
sub eax, 0x3ff5
jne 0x404af8
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 0x404909
push eax
lea ecx, [ebp - 0xa8]
call fcn.00404c11
jmp 0x404915
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov esi, dword [ebp - 0xa8]
cmp esi, edi
je 0x40497c
cmp word [ebp - 0x20a8], 0
lea edi, [ebp - 0x20a8]
je 0x404961
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x404954
cmp word [eax], 0x30
jne 0x404954
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x40495b
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x404935
and word [esi], 0
push dword [ebp - 0xa8]
mov ecx, dword [ebp + 0x74]
push dword [ebp + 0x78]
call fcn.00404b13
mov esi, eax
xor edi, edi
jmp 0x40497f
push 0xe
pop esi
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0xa8], eax
je 0x404aeb
lea ecx, [ebp - 0xa8]
call fcn.00403c6e
jmp 0x404aeb
call dword [0x415068]
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 0x404ada
lea eax, [ebp - 0x20a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp + 0x68], eax
je 0x4049eb
mov eax, 0x80004005
jmp 0x404b09
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebx, 0x100
mov dword [ebp - 0xa8], edi
jbe 0x404a0e
push ebx
lea ecx, [ebp - 0xa8]
call fcn.00404c11
jmp 0x404a1a
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], edi
jne 0x404a39
lea eax, [ebp - 0xa4]
test eax, eax
je 0x4049e1
lea ecx, [ebp - 0xa8]
call fcn.00403c6e
jmp 0x4049e1
push ebx
push edi
push dword [ebp - 0xa8]
call fcn.0040a1a0
add esp, 0xc
cmp dword [ebp + 0x68], edi
jle 0x404a89
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.00404bdf
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 0x404a4e
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 0x404aeb
lea ecx, [ebp - 0xa8]
call fcn.00403c6e
jmp 0x404aeb
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 0x404af8
push esi
call fcn.004046d9
pop ecx
jmp 0x404b09
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x5c]
call fcn.00403dc8
cmp eax, edi
jl 0x404b09
xor eax, eax
pop ebx
pop edi
pop esi
add ebp, 0x6c
leave
ret 0xc