Function at 0x421e42
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x68]
mov eax, 0x2108
call fcn.0047ed00
push ebx
push esi
mov esi, dword [ebp + 0x70]
xor ebx, ebx
lea eax, [ebp - 0x20a0]
mov ecx, esi
mov dword [ebp + 0x64], ebx
call fcn.004217e3
cmp eax, ebx
jl 0x422123
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x20a0]
push eax
call fcn.0042212c
test eax, eax
pop ecx
pop ecx
jne 0x421e90
mov eax, 0x80020009
jmp 0x422123
call fcn.0042230d
lea eax, [ebp - 0x20a0]
mov ecx, esi
call fcn.004217e3
cmp eax, ebx
jl 0x422123
movzx eax, word [ebp + 0x64]
sub eax, 8
push edi
je 0x4220f0
sub eax, 9
je 0x421fcf
dec eax
dec eax
je 0x421fa3
sub eax, 0x3ff5
jne 0x422111
lea eax, [ebp - 0x20a0]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
inc eax
push 2
push eax
mov dword [ebp - 0xa0], ebx
call fcn.0041c9d6
cmp eax, 0x100
pop ecx
pop ecx
jbe 0x421f09
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004221f8
jmp 0x421f15
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov edi, dword [ebp - 0xa0]
cmp edi, ebx
je 0x421f7e
cmp word [ebp - 0x20a0], bx
lea esi, [ebp - 0x20a0]
je 0x421f62
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push esi
call ebx
movzx ecx, word [esi]
cmp cx, 0x5c
jne 0x421f53
cmp word [eax], 0x30
jne 0x421f53
and word [edi], 0
inc edi
push eax
inc edi
call ebx
mov esi, eax
jmp 0x421f5a
mov word [edi], cx
inc edi
inc edi
inc esi
inc esi
cmp word [esi], 0
jne 0x421f34
xor ebx, ebx
mov word [edi], bx
mov word [edi + 2], bx
push dword [ebp - 0xa0]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.00422219
mov esi, eax
jmp 0x421f81
push 0xe
pop esi
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0xa0], eax
je 0x422104
lea eax, [ebp - 0xa0]
call fcn.004213e1
jmp 0x422104
call dword [section..data]
lea eax, [ebp + 0x64]
push eax
push ebx
push ebx
lea eax, [ebp - 0x20a0]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0x64]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.0041f533
jmp 0x422102
lea eax, [ebp - 0x20a0]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
test al, 1
mov dword [ebp + 0x64], eax
jne 0x422039
cdq
sub eax, edx
mov edi, eax
sar edi, 1
push 1
push edi
mov dword [ebp - 0xa0], ebx
call fcn.0041c9d6
cmp eax, 0x100
pop ecx
pop ecx
jbe 0x422010
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004221f8
jmp 0x42201c
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], ebx
jne 0x422043
lea eax, [ebp - 0x9c]
test eax, eax
je 0x422039
lea eax, [ebp - 0xa0]
call fcn.004213e1
mov eax, 0x80004005
jmp 0x422122
push edi
push ebx
push dword [ebp - 0xa0]
call fcn.0046eea0
add esp, 0xc
xor esi, esi
cmp dword [ebp + 0x64], ebx
jle 0x4220ba
movzx ecx, word [ebp + esi*2 - 0x20a0]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0xa0]
movzx edx, cx
cmp edx, 0x30
jl 0x42209f
cmp edx, 0x39
jle 0x422098
cmp edx, 0x40
jle 0x42209f
cmp edx, 0x46
jle 0x422093
add edx, 0xffffff9f
cmp edx, 5
ja 0x42209f
sub cl, 0x57
jmp 0x42209b
sub cl, 0x37
jmp 0x42209b
sub cl, 0x30
mov dl, cl
jmp 0x4220a1
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 + 0x64]
jl 0x42205a
xor ebx, ebx
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push edi
push dword [ebp - 0xa0]
push 3
push ebx
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 0x422104
lea eax, [ebp - 0xa0]
call fcn.004213e1
jmp 0x422104
lea eax, [ebp - 0x20a0]
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.004221be
mov esi, eax
cmp esi, ebx
je 0x422111
mov eax, esi
call fcn.004225b3
jmp 0x422122
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x70]
call fcn.004217e3
cmp eax, ebx
jl 0x422122
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10