Function at 0x4236a1
Capabilities:
Set registry value

Disassembly:
mov eax, 0x43eae2
call fcn.004036d1
push ecx
mov eax, 0x1220
call fcn.0040366c
mov eax, dword [0x446a0c]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x101c]
push eax
call fcn.00420b63
test eax, eax
jl 0x4239bc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x101c]
push eax
call fcn.004208b7
test eax, eax
jne 0x423702
mov eax, 0x80020009
jmp 0x4239bc
mov ecx, esi
call fcn.00420b41
lea eax, [ebp - 0x101c]
push eax
mov ecx, esi
call fcn.00420b63
test eax, eax
jl 0x4239bc
movzx eax, word [ebp - 0x1c]
sub eax, 8
je 0x423989
sub eax, 9
je 0x423875
dec eax
dec eax
je 0x423813
sub eax, 0x3ff5
jne 0x4239ab
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
and dword [ebp - 0x1120], 0
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1120]
call fcn.00421f19
and dword [ebp - 4], 0
mov edi, dword [ebp - 0x1120]
test edi, edi
je 0x4237ea
lea esi, [ebp - 0x101c]
cmp byte [ebp - 0x101c], 0
je 0x4237d2
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x4237b4
cmp byte [eax], 0x30
jne 0x4237b4
and byte [edi], 0
inc edi
push eax
call ebx
mov esi, eax
jmp 0x4237cd
mov byte [edi], cl
xor eax, eax
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4237cb
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x423794
and byte [edi], 0
push dword [ebp - 0x1120]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0042072f
mov esi, eax
jmp 0x4237ed
push 0xe
pop esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x111c]
cmp dword [ebp - 0x1120], eax
je 0x42399f
lea ecx, [ebp - 0x1120]
call fcn.00420fd6
jmp 0x42399f
call dword [0x446f78]
mov edi, eax
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov dword [ebp - 0x10], esp
mov eax, esp
push edi
push esi
lea ecx, [ebp - 0x101c]
push ecx
push eax
call fcn.0040cd05
lea ecx, [ebp - 0x1124]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x1124]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004206ec
jmp 0x42399d
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1128], eax
test al, 1
jne 0x4238ee
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x112c], ebx
and dword [ebp - 0x1230], 0
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
push ebx
lea ecx, [ebp - 0x1230]
call fcn.00421f19
jmp 0x4238c5
push 3
pop edx
mov dword [ebp - 4], edx
mov edi, dword [ebp - 0x1230]
test edi, edi
jne 0x4238f8
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x122c]
cmp edi, eax
je 0x4238ee
lea ecx, [ebp - 0x1230]
call fcn.00420fd6
mov eax, 0x80004005
jmp 0x4239bc
mov ecx, ebx
xor eax, eax
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, edx
rep stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp - 0x1128], edi
jle 0x42394e
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x1230]
lea esi, [eax + ecx]
xor eax, eax
mov al, byte [ebp + edi - 0x101c]
push eax
call fcn.00420976
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 - 0x1128]
jl 0x423913
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x1230]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x122c]
cmp dword [ebp - 0x1230], eax
je 0x42399f
lea ecx, [ebp - 0x1230]
call fcn.00420fd6
jmp 0x42399f
push 1
lea eax, [ebp - 0x101c]
push eax
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00420706
mov esi, eax
test esi, esi
je 0x4239ab
push esi
call fcn.004205a7
jmp 0x4239bc
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.00420b63
test eax, eax
jl 0x4239bc
xor eax, eax
lea esp, [ebp - 0x123c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
call fcn.004037c0
pop edi
pop esi
pop ebx
leave
ret 0xc