Function at 0x10327e6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10489a8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x1c], 0
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
mov edi, 0x2000
push edi
mov dword [ebp - 0x14], ecx
call esi
mov ebx, eax
pop ecx
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x103283d
mov esi, 0x8007000e
lea ecx, [ebp - 0x1c]
call fcn.01031eec
mov eax, esi
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001b23
leave
ret 0x10
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.01031bea
mov dword [ebp - 0xc], eax
test eax, eax
jge 0x103285a
push ebx
call dword [sym.imp.msvcrt.dll_free]
mov esi, dword [ebp - 0xc]
pop ecx
jmp 0x103281f
lea eax, [ebp - 8]
push eax
push ebx
call fcn.0103194c
test eax, eax
jne 0x1032877
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov esi, 0x80020009
jmp 0x103281f
push edi
call esi
mov ebx, eax
xor edi, edi
pop ecx
mov dword [ebp - 0x20], ebx
cmp ebx, edi
jne 0x1032892
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x103281a
mov ecx, dword [ebp - 0x14]
call fcn.01031bc1
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.01031bea
cmp eax, edi
mov dword [ebp - 0xc], eax
jge 0x10328bb
mov edi, dword [sym.imp.msvcrt.dll_free]
push ebx
call edi
push dword [ebp - 0x10]
call edi
pop ecx
jmp 0x1032854
movzx eax, word [ebp - 8]
sub eax, 8
je 0x103299f
sub eax, 9
je 0x10328f5
dec eax
dec eax
jne 0x1032a9a
lea eax, [ebp - 0x24]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x24]
call fcn.01031684
jmp 0x1032a9a
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0xc], eax
test al, 1
jne 0x10329ba
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x18], esi
cmp esi, 0x400
ja 0x103292f
push esi
call fcn.01031313
test al, al
je 0x103292f
mov eax, esi
call fcn.01015579
mov dword [ebp - 8], esp
jmp 0x103293b
push esi
lea ecx, [ebp - 0x1c]
call fcn.010327b3
mov dword [ebp - 8], eax
cmp dword [ebp - 8], edi
je 0x10329ba
push esi
push edi
push dword [ebp - 8]
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp - 0xc], edi
jle 0x1032983
mov ecx, dword [ebp - 8]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
movzx eax, word [ebx + edi*2]
push eax
call fcn.010319dd
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 - 0xc]
jl 0x1032952
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push dword [ebp - 8]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1032a9a
cmp byte [ebp + 0x14], 0
mov dword [ebp - 8], ebx
je 0x1032a80
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xffe
jle 0x10329d4
mov esi, dword [sym.imp.msvcrt.dll_free]
push ebx
call esi
push dword [ebp - 0x10]
call esi
pop ecx
pop ecx
mov esi, 0x80004005
jmp 0x103281f
push 0x2000
call esi
mov edi, eax
pop ecx
test edi, edi
jne 0x10329f6
mov esi, dword [sym.imp.msvcrt.dll_free]
push ebx
call esi
push dword [ebp - 0x10]
call esi
pop ecx
jmp 0x103288f
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
and dword [ebp - 0x28], 0
push 0x101ccc8
call fcn.010320d7
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1032a78
push eax
push ebx
call fcn.01031afb
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x1032a78
cmp esi, dword [ebp + 0x10]
je 0x1032a34
push esi
push ebx
call dword [sym.imp.USER32.dll_CharPrevW]
cmp word [eax], 0x22
je 0x1032a78
sub esi, ebx
sar esi, 1
push esi
push ebx
xor eax, eax
push edi
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebx, 0x1032ad8
push ebx
push edi
call esi
push dword [ebp - 0xc]
push edi
call esi
push ebx
push edi
call esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*2]
push eax
push edi
call esi
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 8], edi
lea ecx, [ebp - 0x28]
call fcn.01031eec
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 8]
call fcn.010316a7
test edi, edi
je 0x1032a9a
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.01031bea
mov esi, eax
push ebx
test esi, esi
jge 0x1032ac0
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push dword [ebp - 0x10]
call edi
pop ecx
pop ecx
jmp 0x103281f
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebp - 0x10]
call esi
pop ecx
pop ecx
xor esi, esi
jmp 0x103281f