Function at 0x408ecc
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4257b3
call fcn.00421088
push ecx
mov eax, 0x2114
call fcn.00416990
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x2124]
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00408db6
cmp eax, ebx
jl 0x409261
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2124]
push eax
call fcn.00408cb9
pop ecx
pop ecx
test eax, eax
jne 0x408f24
mov eax, 0x80020009
jmp 0x409261
call fcn.00408d91
lea eax, [ebp - 0x2124]
mov ecx, esi
call fcn.00408db6
cmp eax, ebx
jl 0x409261
movzx eax, word [ebp - 0x14]
sub eax, 8
je 0x409217
sub eax, 9
je 0x4090af
dec eax
dec eax
je 0x40906a
sub eax, 0x3ff5
jne 0x409250
lea eax, [ebp - 0x2124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
push 2
pop ecx
mul ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp edx, ebx
ja 0x408f97
cmp eax, 0xffffffff
jbe 0x408fa1
push 0x80070057
call fcn.004010d5
cmp eax, 0x100
jbe 0x408fb7
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0040a637
jmp 0x408fc3
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], eax
mov dword [ebp - 4], ebx
jmp 0x408fd4
mov esi, dword [ebp - 0x124]
cmp esi, ebx
je 0x409041
lea edi, [ebp - 0x2124]
cmp word [ebp - 0x2124], bx
je 0x409022
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
movzx ecx, word [edi]
cmp cx, 0x5c
jne 0x409013
cmp word [eax], 0x30
jne 0x409013
xor ecx, ecx
mov word [esi], cx
inc esi
inc esi
push eax
call ebx
mov edi, eax
jmp 0x40901a
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x408ff3
xor ebx, ebx
xor eax, eax
mov word [esi], ax
inc esi
inc esi
mov word [esi], ax
push dword [ebp - 0x124]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00408501
mov esi, eax
jmp 0x409044
push 0xe
pop esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x124], eax
je 0x409243
lea eax, [ebp - 0x124]
call fcn.0040a62e
jmp 0x409243
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 3
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2124]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push ebx
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
jmp 0x409243
lea eax, [ebp - 0x2124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x14], eax
test al, 1
je 0x4090cd
mov eax, 0x80004005
jmp 0x409261
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x124], ebx
push 4
pop esi
mov dword [ebp - 4], esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
cmp ebx, ebx
ja 0x408f97
cmp edi, 0xffffffff
ja 0x408f97
cmp edi, 0x100
jbe 0x409115
push edi
lea eax, [ebp - 0x124]
push eax
call fcn.0040a637
jmp 0x409121
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], eax
mov dword [ebp - 4], esi
jmp 0x409138
cmp dword [ebp - 0x124], ebx
jne 0x409166
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x124], eax
je 0x4090c3
lea eax, [ebp - 0x124]
call fcn.0040a62e
jmp 0x4090c3
push edi
push ebx
push dword [ebp - 0x124]
call fcn.0040cdd0
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0x14], ebx
jle 0x4091dd
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x124]
movzx ecx, word [ebp + esi*2 - 0x2124]
movzx edx, cx
cmp edx, 0x30
jl 0x4091c2
cmp edx, 0x39
jle 0x4091bb
cmp edx, 0x40
jle 0x4091c2
cmp edx, 0x46
jle 0x4091b6
add edx, 0xffffff9f
cmp edx, 5
ja 0x4091c2
sub cl, 0x57
jmp 0x4091be
sub cl, 0x37
jmp 0x4091be
sub cl, 0x30
mov dl, cl
jmp 0x4091c4
xor dl, dl
mov ebx, esi
and ebx, 1
shl ebx, 2
push 4
pop ecx
sub ecx, ebx
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x40917d
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push edi
push dword [ebp - 0x124]
push 3
push ebx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x124], eax
je 0x409243
lea eax, [ebp - 0x124]
call fcn.0040a62e
jmp 0x409243
lea eax, [ebp - 0x2124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2124]
push eax
push 1
push ebx
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x409250
mov eax, esi
call fcn.0040828e
jmp 0x409261
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.00408db6
cmp eax, ebx
jl 0x409261
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10