Function at 0x42ca1e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2120
call fcn.0050d9b0
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2120], eax
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x211c], eax
mov dword [ebp - 0x2114], eax
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2118], esi
mov dword [ebp - 0x210c], ebx
mov dword [ebp - 0x2110], edi
call fcn.0042c8cc
test eax, eax
js 0x42cdd4
lea edx, [ebp - 0x2114]
lea ecx, [ebp - 0x2004]
call fcn.0042c7e1
test eax, eax
jne 0x42ca9c
mov eax, 0x80020009
jmp 0x42cdd4
mov ecx, esi
call fcn.0042c8a3
lea eax, [ebp - 0x2004]
mov ecx, esi
push eax
call fcn.0042c8cc
test eax, eax
js 0x42cdd4
movzx eax, word [ebp - 0x2114]
sub eax, 8
je 0x42cd8f
sub eax, 9
je 0x42cc35
dec eax
dec eax
je 0x42cbee
sub eax, 0x3ff5
jne 0x42cdc1
lea ecx, [ebp - 0x2004]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x42caf0
sub ecx, edx
mov dword [ebp - 0x2108], esi
sar ecx, 1
xor eax, eax
add ecx, 2
shld eax, ecx, 1
add ecx, ecx
cmp eax, esi
ja 0x42cde7
cmp ecx, 0xffffffff
ja 0x42cde7
cmp ecx, 0x100
jbe 0x42cb3d
push ecx
lea ecx, [ebp - 0x2108]
call fcn.0042eb2c
mov esi, dword [ebp - 0x2108]
jmp 0x42cb49
lea esi, [ebp - 0x2104]
mov dword [ebp - 0x2108], esi
test esi, esi
je 0x42cbbc
cmp word [ebp - 0x2004], 0
lea edi, [ebp - 0x2004]
je 0x42cb9b
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x42cb85
push 0x30
pop edx
cmp word [eax], dx
jne 0x42cb85
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call ebx
mov edi, eax
jmp 0x42cb8e
mov word [esi], cx
add esi, 2
add edi, 2
xor eax, eax
cmp word [edi], ax
jne 0x42cb63
mov ebx, dword [ebp - 0x210c]
xor eax, eax
mov ecx, ebx
mov dword [esi], eax
push dword [ebp - 0x2108]
push dword [ebp - 0x2110]
call fcn.0042c1aa
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x42cbbf
push 0xe
pop edi
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x42cbd4
lea ecx, [ebp - 0x2108]
call fcn.0042eb23
mov esi, dword [ebp - 0x2118]
test edi, edi
je 0x42cdc1
mov ecx, edi
call fcn.0042bda3
jmp 0x42cdd4
lea eax, [ebp - 0x210c]
push eax
xor eax, eax
push eax
push eax
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x42cdd4
mov eax, dword [ebp - 0x210c]
mov dword [ebp - 0x2110], eax
lea eax, [ebp - 0x2110]
push 4
push eax
push 4
xor eax, eax
push eax
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x42cbda
lea ebx, [ebp - 0x2004]
xor edx, edx
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x42cc40
sub ebx, ecx
sar ebx, 1
test bl, 1
je 0x42cc5e
mov eax, 0x80004005
jmp 0x42cdd4
mov eax, ebx
xor ecx, ecx
cdq
sub eax, edx
mov dword [ebp - 0x2108], ecx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x211c], esi
cmp ecx, ecx
ja 0x42cde7
cmp esi, 0xffffffff
ja 0x42cde7
cmp esi, 0x100
jbe 0x42cca4
push esi
lea ecx, [ebp - 0x2108]
call fcn.0042eb2c
mov eax, dword [ebp - 0x2108]
xor ecx, ecx
jmp 0x42ccb0
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
test eax, eax
jne 0x42cccb
lea eax, [ebp - 0x2104]
test eax, eax
je 0x42cc54
lea ecx, [ebp - 0x2108]
call fcn.0042eb23
jmp 0x42cc54
push esi
push ecx
push eax
call fcn.005091d0
xor ecx, ecx
add esp, 0xc
mov edi, ecx
test ebx, ebx
jle 0x42cd4d
mov eax, edi
cdq
sub eax, edx
movzx edx, word [ebp + edi*2 - 0x2004]
sar eax, 1
add eax, dword [ebp - 0x2108]
mov dword [ebp - 0x2114], eax
mov eax, edx
cmp eax, 0x30
jl 0x42cd26
cmp eax, 0x39
jle 0x42cd21
cmp eax, 0x40
jle 0x42cd26
cmp eax, 0x46
jle 0x42cd1c
add eax, 0xffffff9f
cmp eax, 5
ja 0x42cd26
sub dl, 0x57
jmp 0x42cd28
sub dl, 0x37
jmp 0x42cd28
sub dl, 0x30
jmp 0x42cd28
mov dl, cl
mov eax, edi
and eax, 1
push 4
shl eax, 2
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x2114]
shl dl, cl
push 0
pop ecx
or byte [eax], dl
inc edi
cmp edi, ebx
jl 0x42ccde
mov esi, dword [ebp - 0x211c]
mov eax, dword [ebp - 0x210c]
push esi
push dword [ebp - 0x2108]
push 3
push ecx
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 0x42cbd4
lea ecx, [ebp - 0x2108]
call fcn.0042eb23
jmp 0x42cbd4
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x211c]
jne 0x42cd98
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
jmp 0x42cc25
push dword [ebp - 0x2120]
mov ecx, esi
call fcn.0042c8cc
test eax, eax
js 0x42cdd4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret 0xc
push 0x80070216
call fcn.00421572
int3