Function at 0x100031e7
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x1114
lea ebp, [esp - 0x68]
call fcn.10009f10
mov eax, dword [0x1000d040]
push ebx
push esi
mov esi, dword [ebp + 0x70]
push edi
mov dword [ebp + 0x64], eax
xor edi, edi
lea eax, [ebp - 0x10a0]
mov ecx, esi
mov dword [ebp - 0x10a4], edi
call fcn.10003105
cmp eax, edi
jl 0x10003518
lea eax, [ebp - 0x10a4]
push eax
lea eax, [ebp - 0x10a0]
push eax
call fcn.10002fcc
test eax, eax
pop ecx
pop ecx
jne 0x10003244
mov eax, 0x80020009
jmp 0x10003518
call fcn.100030eb
lea eax, [ebp - 0x10a0]
mov ecx, esi
call fcn.10003105
cmp eax, edi
jl 0x10003518
movzx eax, word [ebp - 0x10a4]
sub eax, 8
je 0x100034e2
sub eax, 9
je 0x10003407
dec eax
dec eax
je 0x1000333e
sub eax, 0x3ff5
jne 0x10003507
lea eax, [ebp - 0x10a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea esi, [ebp - 0xa0]
mov dword [ebp - 0xa0], edi
call fcn.10007698
mov edi, dword [ebp - 0xa0]
test edi, edi
je 0x10003319
cmp byte [ebp - 0x10a0], 0
lea esi, [ebp - 0x10a0]
je 0x10003301
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x100032e3
cmp byte [eax], 0x30
jne 0x100032e3
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x100032fc
xor eax, eax
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x100032fa
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x100032c9
mov byte [edi], 0
push dword [ebp - 0xa0]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.100025e0
mov esi, eax
jmp 0x1000331c
push 0xe
pop esi
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0xa0], eax
je 0x100034f8
lea eax, [ebp - 0xa0]
call fcn.1000768f
jmp 0x100034f8
call dword [0x1000d078]
mov dword [ebp - 0x10ac], eax
lea eax, [ebp - 0x10a0]
push eax
mov dword [ebp - 0x10a4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
lea esi, [ebx + ebx]
cmp esi, 0x400
ja 0x10003387
push esi
call fcn.10001000
test al, al
pop ecx
je 0x10003387
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.10009f10
mov eax, esp
jmp 0x1000339a
mov eax, esi
lea esi, [ebp - 0x10a4]
call fcn.10001a28
mov edi, dword [ebp - 0x10a4]
push dword [ebp - 0x10ac]
lea ecx, [ebp - 0x10a0]
push ebx
push ecx
mov esi, eax
call fcn.1000111e
test eax, eax
je 0x100033e5
lea ecx, [ebp - 0x10a8]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x10a8]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.1000259a
mov esi, eax
jmp 0x100033fe
mov eax, edi
mov edi, dword [edi]
push eax
call fcn.10008fa2
pop ecx
test edi, edi
jne 0x100033da
mov eax, 0x8007000e
jmp 0x10003518
mov eax, edi
mov edi, dword [edi]
push eax
call fcn.10008fa2
pop ecx
test edi, edi
jne 0x100033f3
jmp 0x100034f8
lea eax, [ebp - 0x10a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0x10a4], eax
jne 0x10003450
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea esi, [ebp - 0xa0]
mov dword [ebp - 0xa0], edi
call fcn.10007698
cmp dword [ebp - 0xa0], edi
jne 0x1000345a
lea eax, [ebp - 0x9c]
test eax, eax
je 0x10003450
mov eax, esi
call fcn.1000768f
mov eax, 0x80004005
jmp 0x10003518
push ebx
push edi
push dword [ebp - 0xa0]
call fcn.10009810
add esp, 0xc
cmp dword [ebp - 0x10a4], 0
jle 0x100034ab
mov ecx, dword [ebp - 0xa0]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x10a0]
call fcn.1000305e
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 - 0x10a4]
jl 0x10003473
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push ebx
push dword [ebp - 0xa0]
push 3
push 0
push dword [ebp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0xa0], eax
je 0x100034f8
lea eax, [ebp - 0xa0]
call fcn.1000768f
jmp 0x100034f8
push 1
lea eax, [ebp - 0x10a0]
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.100025b8
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x10003507
mov eax, esi
call fcn.10001d2d
jmp 0x10003518
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x70]
call fcn.10003105
cmp eax, edi
jl 0x10003518
xor eax, eax
lea esp, [ebp - 0x10b8]
mov ecx, dword [ebp + 0x64]
call fcn.10009226
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10