Function at 0x40a82b
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
mov eax, 0x1114
call fcn.00414400
push ebx
push esi
push edi
lea eax, [ebp - 0x10a8]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x68], edi
call fcn.0040950e
cmp eax, edi
jl 0x40ab38
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x10a8]
push eax
call fcn.004093be
test eax, eax
pop ecx
pop ecx
jne 0x40a87b
mov eax, 0x80020009
jmp 0x40ab38
mov ecx, esi
call fcn.004094ec
lea eax, [ebp - 0x10a8]
push eax
mov ecx, esi
call fcn.0040950e
cmp eax, edi
jl 0x40ab38
movzx eax, word [ebp + 0x68]
sub eax, 8
je 0x40ab04
sub eax, 9
je 0x40aa2b
dec eax
dec eax
je 0x40a983
sub eax, 0x3ff5
jne 0x40ab27
lea eax, [ebp - 0x10a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
inc eax
push eax
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], edi
call fcn.0040a59a
cmp dword [ebp - 0xa8], edi
je 0x40a95e
cmp byte [ebp - 0x10a8], 0
mov edi, dword [ebp - 0xa8]
lea esi, [ebp - 0x10a8]
je 0x40a940
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40a91f
cmp byte [eax], 0x30
jne 0x40a91f
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x40a93b
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40a939
inc edi
inc esi
mov al, byte [esi]
test al, al
je 0x40a940
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x40a905
mov ecx, dword [ebp + 0x74]
mov byte [edi], 0
mov byte [edi + 1], 0
push dword [ebp - 0xa8]
push dword [ebp + 0x78]
call fcn.00409276
mov esi, eax
xor edi, edi
jmp 0x40a961
push 0xe
pop esi
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0xa8], eax
je 0x40ab1a
lea ecx, [ebp - 0xa8]
call fcn.00409756
jmp 0x40ab1a
call dword [0xb2ff3c]
mov ebx, eax
lea eax, [ebp - 0x10a8]
push eax
mov dword [ebp + 0x68], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 2
push eax
mov dword [ebp + 0x64], eax
lea eax, [ebp + 0x64]
push eax
call fcn.00401035
add esp, 0xc
test eax, eax
jl 0x40a9ef
mov esi, dword [ebp + 0x64]
cmp esi, 0x400
jg 0x40a9d3
push esi
call fcn.00402502
test al, al
pop ecx
je 0x40a9d3
mov eax, esi
call fcn.00413e60
mov eax, esp
jmp 0x40a9dc
push esi
lea ecx, [ebp + 0x68]
call fcn.0040270f
push ebx
push esi
lea ecx, [ebp - 0x10a8]
push ecx
push eax
call fcn.00401062
cmp eax, edi
jne 0x40aa01
lea ecx, [ebp + 0x68]
call fcn.0040233c
mov eax, 0x8007000e
jmp 0x40ab38
lea ecx, [ebp + 0x60]
push ecx
push edi
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0x60]
mov ecx, dword [ebp + 0x74]
push dword [ebp + 0x78]
call fcn.00409223
lea ecx, [ebp + 0x68]
mov esi, eax
call fcn.0040233c
jmp 0x40ab1a
lea eax, [ebp - 0x10a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp + 0x64], eax
je 0x40aa49
mov eax, 0x80004005
jmp 0x40ab38
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa8], edi
call fcn.0040a59a
cmp dword [ebp - 0xa8], edi
jne 0x40aa81
lea eax, [ebp - 0xa4]
test eax, eax
je 0x40aa3f
lea ecx, [ebp - 0xa8]
call fcn.00409756
jmp 0x40aa3f
push ebx
push edi
push dword [ebp - 0xa8]
call fcn.004141a0
add esp, 0xc
cmp dword [ebp + 0x64], edi
jle 0x40aace
mov ecx, dword [ebp - 0xa8]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
movzx eax, byte [ebp + edi - 0x10a8]
push eax
call fcn.00409450
pop ecx
mov edx, edi
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp + 0x64]
jl 0x40aa96
xor edi, edi
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push ebx
push dword [ebp - 0xa8]
push 3
push edi
push dword [ebp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0xa8], eax
je 0x40ab1a
lea ecx, [ebp - 0xa8]
call fcn.00409756
jmp 0x40ab1a
mov ecx, dword [ebp + 0x74]
push 1
lea eax, [ebp - 0x10a8]
push eax
push dword [ebp + 0x78]
call fcn.0040923d
mov esi, eax
cmp esi, edi
je 0x40ab27
push esi
call fcn.004090c3
pop ecx
jmp 0x40ab38
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x5c]
call fcn.0040950e
cmp eax, edi
jl 0x40ab38
xor eax, eax
lea esp, [ebp - 0x10b4]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc