Function at 0x42408e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.004fd000
mov eax, dword [0x500144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2110], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x211c], eax
mov edi, ecx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2120], edi
push eax
mov dword [ebp - 0x2114], ebx
call fcn.00424740
test eax, eax
js 0x4243f3
xor eax, eax
push esi
mov esi, eax
push dword [esi*8 + 0x404910]
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x42410d
inc esi
cmp esi, 4
jb 0x4240e5
mov eax, 0x80020009
jmp 0x4243f2
movzx esi, word [esi*8 + 0x404914]
mov ecx, edi
call fcn.00424e36
lea eax, [ebp - 0x2004]
mov ecx, edi
push eax
call fcn.00424740
test eax, eax
js 0x4243f2
mov eax, esi
push 2
pop edi
sub eax, 8
je 0x424393
sub eax, 9
je 0x424288
sub eax, edi
je 0x424246
sub eax, 0x3ff5
jne 0x4243db
lea ecx, [ebp - 0x2004]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, bx
jne 0x424167
sub ecx, edx
mov dword [ebp - 0x2108], ebx
sar ecx, 1
lea eax, [ecx + 2]
mul edi
cmp edx, ebx
ja 0x424403
cmp eax, 0xffffffff
ja 0x424403
cmp eax, 0x100
jbe 0x4241ac
push eax
lea ecx, [ebp - 0x2108]
call fcn.00423c51
mov esi, dword [ebp - 0x2108]
jmp 0x4241b8
lea esi, [ebp - 0x2104]
mov dword [ebp - 0x2108], esi
test esi, esi
je 0x424225
cmp word [ebp - 0x2004], 0
lea ebx, [ebp - 0x2004]
je 0x424200
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [ebx]
cmp ecx, 0x5c
jne 0x4241f1
cmp word [eax], 0x30
jne 0x4241f1
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
jmp 0x4241f6
mov word [esi], cx
add ebx, edi
xor eax, eax
add esi, 2
cmp word [ebx], ax
jne 0x4241cc
mov ecx, dword [ebp - 0x2114]
xor eax, eax
mov dword [esi], eax
push dword [ebp - 0x2108]
push dword [ebp - 0x2110]
call fcn.00423f9d
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x424228
push 0xe
pop edi
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x4243ce
lea ecx, [ebp - 0x2108]
call fcn.00423c41
jmp 0x4243ce
lea eax, [ebp - 0x210c]
xor esi, esi
push eax
push esi
push esi
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x210c], esi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x4243f2
mov eax, dword [ebp - 0x210c]
mov dword [ebp - 0x2114], eax
lea eax, [ebp - 0x2114]
push 4
push eax
push 4
jmp 0x4243bd
lea ebx, [ebp - 0x2004]
xor esi, esi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, edi
cmp ax, si
jne 0x424293
sub ebx, ecx
sar ebx, 1
test bl, 1
jne 0x4242f8
mov eax, ebx
mov dword [ebp - 0x2108], esi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [ebp - 0x2118], ecx
cmp ecx, 0x100
jbe 0x4242dd
push ecx
lea ecx, [ebp - 0x2108]
call fcn.00423c51
mov eax, dword [ebp - 0x2108]
mov ecx, dword [ebp - 0x2118]
jmp 0x4242e9
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
test eax, eax
jne 0x424302
lea ecx, [ebp - 0x2108]
call fcn.00423c41
mov eax, 0x80004005
jmp 0x4243f2
push ecx
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edx, esi
mov dword [ebp - 0x210c], edx
test ebx, ebx
jle 0x424353
mov cx, word [ebp + edx*2 - 0x2004]
mov edi, edx
mov esi, dword [ebp - 0x2108]
shr edi, 1
call fcn.00424008
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
mov edx, dword [ebp - 0x210c]
shl al, cl
or byte [edi + esi], al
inc edx
mov dword [ebp - 0x210c], edx
cmp edx, ebx
jl 0x424319
xor esi, esi
push dword [ebp - 0x2118]
mov eax, dword [ebp - 0x2114]
push dword [ebp - 0x2108]
push 3
push esi
push dword [ebp - 0x2110]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x4243ce
lea ecx, [ebp - 0x2108]
call fcn.00423c41
jmp 0x4243ce
lea ecx, [ebp - 0x2004]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, edi
cmp ax, si
jne 0x42439e
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
push esi
push dword [ebp - 0x2110]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x4243db
mov ecx, edi
call fcn.0042472a
jmp 0x4243f2
push dword [ebp - 0x211c]
mov ecx, dword [ebp - 0x2120]
call fcn.00424740
test eax, eax
js 0x4243f2
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004fb5e0
leave
ret 0xc
mov ecx, 0x80070057
call fcn.00424428
int3