Function at 0x4023c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x210c
call fcn.00494a40
push edi
lea eax, [ebp - 0x210c]
mov dword [ebp - 4], 0
mov edi, ecx
push eax
mov dword [ebp - 8], edi
call fcn.00403820
test eax, eax
js 0x4026b3
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x210c]
push eax
call fcn.004057f0
add esp, 8
test eax, eax
jne 0x402411
mov eax, 0x80020009
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, edi
call fcn.00405120
lea eax, [ebp - 0x210c]
mov ecx, edi
push eax
call fcn.00403820
test eax, eax
js 0x4026b3
movzx eax, word [ebp - 4]
push ebx
push esi
cmp eax, 0x13
ja 0x4025c0
je 0x40256e
cmp eax, 8
je 0x402553
cmp eax, 0x11
jne 0x40269e
lea ebx, [ebp - 0x210c]
lea ecx, [ebx + 2]
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x402460
sub ebx, ecx
sar ebx, 1
test bl, 1
jne 0x4024b5
mov eax, ebx
mov dword [ebp - 0x10c], 0
cdq
lea ecx, [ebp - 0x10c]
sub eax, edx
mov esi, eax
sar esi, 1
push esi
mov dword [ebp - 4], esi
call fcn.004026c0
mov eax, dword [ebp - 0x10c]
test eax, eax
jne 0x4024c3
lea eax, [ebp - 0x108]
test eax, eax
je 0x4024b5
lea ecx, [ebp - 0x10c]
call fcn.00403070
pop esi
pop ebx
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
push eax
call fcn.00496a10
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x402516
nop word [eax + eax]
movzx eax, word [ebp + edi*2 - 0x210c]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x10c]
push eax
call fcn.00402b50
mov edx, edi
mov ecx, 4
and edx, 1
inc edi
shl edx, 2
add esp, 4
sub ecx, edx
shl al, cl
or byte [esi], al
cmp edi, ebx
jl 0x4024e0
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
push esi
push dword [ebp - 0x10c]
push 3
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x108]
cmp dword [ebp - 0x10c], eax
je 0x402685
lea ecx, [ebp - 0x10c]
call fcn.00403070
jmp 0x402685
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x210c]
push 1
push eax
push dword [ebp + 0xc]
call fcn.00405070
mov esi, eax
jmp 0x402688
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
push 0
push 0
lea eax, [ebp - 0x210c]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x4025a3
lea ecx, [ebp - 4]
call fcn.00401ef0
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 8]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00404ff0
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00401ef0
jmp 0x402688
cmp eax, 0x4008
jne 0x40269e
lea ecx, [ebp - 0x210c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4025d4
sub ecx, edx
mov dword [ebp - 0x10c], 0
sar ecx, 1
lea eax, [ecx + 2]
push eax
lea ecx, [ebp - 0x10c]
call fcn.00402700
mov edi, dword [ebp - 0x10c]
test edi, edi
je 0x40266b
cmp word [ebp - 0x210c], 0
lea esi, [ebp - 0x210c]
je 0x40264c
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
nop dword [eax]
push esi
call ebx
movzx ecx, word [esi]
cmp ecx, 0x5c
jne 0x40263d
cmp word [eax], 0x30
jne 0x40263d
xor ecx, ecx
push eax
mov word [edi], cx
call ebx
mov esi, eax
jmp 0x402643
mov word [edi], cx
add esi, 2
add edi, 2
cmp word [esi], 0
jne 0x402620
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [edi], eax
push dword [ebp - 0x10c]
push dword [ebp + 0xc]
call fcn.00405010
mov edi, dword [ebp - 0x10c]
mov esi, eax
jmp 0x402670
mov esi, 0xe
lea eax, [ebp - 0x108]
cmp edi, eax
je 0x402685
lea ecx, [ebp - 0x10c]
call fcn.00403070
mov edi, dword [ebp - 8]
test esi, esi
je 0x40269e
push esi
call fcn.00402990
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
mov ecx, edi
call fcn.00403820
xor ecx, ecx
test eax, eax
pop esi
cmovs ecx, eax
mov eax, ecx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc