Function at 0x401e7d
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x210c
lea ebp, [esp - 0x68]
call fcn.004110e0
mov eax, dword [0x41f278]
push esi
mov esi, dword [ebp + 0x70]
push edi
mov dword [ebp + 0x64], eax
xor edi, edi
lea eax, [ebp - 0x20a0]
mov ecx, esi
mov dword [ebp - 0x20a4], edi
call fcn.00401d82
cmp eax, edi
jl 0x402118
lea eax, [ebp - 0x20a4]
push eax
lea eax, [ebp - 0x20a0]
push eax
call fcn.00401c35
test eax, eax
pop ecx
pop ecx
jne 0x401ed9
mov eax, 0x80020009
jmp 0x402118
call fcn.00401d67
lea eax, [ebp - 0x20a0]
mov ecx, esi
call fcn.00401d82
cmp eax, edi
jl 0x402118
movzx eax, word [ebp - 0x20a4]
sub eax, 8
push ebx
je 0x4020e1
sub eax, 9
je 0x401ffe
dec eax
dec eax
je 0x401fcc
sub eax, 0x3ff5
jne 0x402106
lea eax, [ebp - 0x20a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
lea esi, [ebp - 0xa0]
mov dword [ebp - 0xa0], edi
call fcn.00406ad8
mov esi, dword [ebp - 0xa0]
cmp esi, edi
je 0x401fa7
cmp word [ebp - 0x20a0], 0
lea edi, [ebp - 0x20a0]
je 0x401f8e
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x401f81
cmp word [eax], 0x30
jne 0x401f81
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x401f88
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x401f62
and word [esi], 0
push dword [ebp - 0xa0]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.00401624
mov esi, eax
jmp 0x401faa
push 0xe
pop esi
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0xa0], eax
je 0x4020f7
lea eax, [ebp - 0xa0]
call fcn.00406af8
jmp 0x4020f7
call dword [0x41fcd4]
lea eax, [ebp - 0x20a4]
push eax
push edi
push edi
lea eax, [ebp - 0x20a0]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x20a4]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.004015db
jmp 0x4020f5
lea eax, [ebp - 0x20a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x20a4], eax
je 0x40201f
mov eax, 0x80004005
jmp 0x402117
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea esi, [ebp - 0xa0]
mov dword [ebp - 0xa0], edi
call fcn.00406ad8
mov edi, dword [ebp - 0xa0]
test edi, edi
jne 0x402055
lea eax, [ebp - 0x9c]
test eax, eax
je 0x402015
mov eax, esi
call fcn.00406af8
jmp 0x402015
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp - 0x20a4], edi
jle 0x4020aa
mov ecx, dword [ebp - 0xa0]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov ax, word [ebp + edi*2 - 0x20a0]
call fcn.00401cc7
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 - 0x20a4]
jl 0x402071
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push ebx
push dword [ebp - 0xa0]
push 3
push 0
push dword [ebp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0xa0], eax
je 0x4020f7
lea eax, [ebp - 0xa0]
call fcn.00406af8
jmp 0x4020f7
push 1
lea eax, [ebp - 0x20a0]
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.004015f9
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x402106
mov eax, esi
call fcn.0040131a
jmp 0x402117
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x70]
call fcn.00401d82
cmp eax, edi
jl 0x402117
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
call fcn.0040efeb
add ebp, 0x68
leave
ret 0x10