Function at 0x10003144
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.10009ba0
and dword [ebp - 4], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x110c]
mov esi, ecx
push eax
mov dword [ebp - 8], esi
call fcn.10001b85
test eax, eax
jl 0x100033f9
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x110c]
push eax
call fcn.10001a39
test eax, eax
pop ecx
pop ecx
jne 0x10003191
mov eax, 0x80020009
jmp 0x100033f9
mov ecx, esi
call fcn.10001b63
lea eax, [ebp - 0x110c]
push eax
mov ecx, esi
call fcn.10001b85
test eax, eax
jl 0x100033f9
movzx eax, word [ebp - 4]
sub eax, 8
je 0x100033c5
sub eax, 9
je 0x100032e5
dec eax
dec eax
je 0x1000328c
sub eax, 0x3ff5
jne 0x100033e8
lea eax, [ebp - 0x110c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x10c], 0
inc eax
push eax
lea ecx, [ebp - 0x10c]
call fcn.10002479
mov edi, dword [ebp - 0x10c]
test edi, edi
je 0x10003267
cmp byte [ebp - 0x110c], 0
lea esi, [ebp - 0x110c]
je 0x1000324f
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x10003231
cmp byte [eax], 0x30
jne 0x10003231
and byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x1000324a
xor eax, eax
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x10003248
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x10003217
and byte [edi], 0
push dword [ebp - 0x10c]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.10001853
mov esi, eax
jmp 0x1000326a
push 0xe
pop esi
lea eax, [ebp - 0x108]
cmp dword [ebp - 0x10c], eax
je 0x100033db
lea ecx, [ebp - 0x10c]
call fcn.100016ae
jmp 0x100033db
call dword [0x1000d020]
mov edi, eax
lea eax, [ebp - 0x110c]
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.10009ba0
mov eax, esp
push edi
push esi
lea ecx, [ebp - 0x110c]
push ecx
push eax
call fcn.100013e2
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.100017ad
jmp 0x100033d9
lea eax, [ebp - 0x110c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 4], eax
jne 0x10003332
and dword [ebp - 0x10c], 0
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea ecx, [ebp - 0x10c]
call fcn.10002479
mov edi, dword [ebp - 0x10c]
test edi, edi
jne 0x1000333c
lea eax, [ebp - 0x108]
test eax, eax
je 0x10003332
lea ecx, [ebp - 0x10c]
call fcn.100016ae
mov eax, 0x80004005
jmp 0x100033f9
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp - 4], edi
jle 0x1000338e
mov ecx, dword [ebp - 0x10c]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
xor eax, eax
mov al, byte [ebp + edi - 0x110c]
push eax
call fcn.10001acb
pop ecx
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 - 4]
jl 0x10003355
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x10c]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x108]
cmp dword [ebp - 0x10c], eax
je 0x100033db
lea ecx, [ebp - 0x10c]
call fcn.100016ae
jmp 0x100033db
mov ecx, dword [ebp + 8]
push 1
lea eax, [ebp - 0x110c]
push eax
push dword [ebp + 0xc]
call fcn.1000182a
mov esi, eax
test esi, esi
je 0x100033e8
push esi
call fcn.10001686
pop ecx
jmp 0x100033f9
push dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
call fcn.10001b85
test eax, eax
jl 0x100033f9
xor eax, eax
lea esp, [ebp - 0x1118]
pop edi
pop esi
pop ebx
leave
ret 0xc