Function at 0x1001643e
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x1124
lea ebp, [esp - 0x10a4]
call fcn.10018600
mov eax, dword [0x1001e248]
and dword [ebp - 0x74], 0
xor eax, ebp
push ebx
mov dword [ebp + 0x10a0], eax
mov eax, dword [ebp + 0x10b4]
push esi
mov esi, dword [ebp + 0x10b0]
push edi
mov edi, dword [ebp + 0x10ac]
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0xa0]
mov ebx, ecx
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x70], esi
call fcn.10015ad1
test eax, eax
jl 0x10016754
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0xa0]
push eax
call fcn.100167ab
test eax, eax
pop ecx
pop ecx
jne 0x100164b8
mov eax, 0x80020009
jmp 0x10016754
mov ecx, ebx
call fcn.10015aa9
lea eax, [ebp + 0xa0]
push eax
mov ecx, ebx
call fcn.10015ad1
test eax, eax
jl 0x10016754
movzx eax, word [ebp - 0x74]
sub eax, 8
je 0x10016723
sub eax, 9
je 0x10016659
dec eax
dec eax
je 0x100165ad
sub eax, 0x3ff5
jne 0x10016743
lea eax, [ebp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x64], 0
inc eax
cmp eax, 0x100
jbe 0x10016522
push eax
lea ecx, [ebp - 0x64]
call fcn.1001457a
jmp 0x10016528
lea eax, [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov edi, dword [ebp - 0x64]
test edi, edi
je 0x10016591
cmp byte [ebp + 0xa0], 0
lea esi, [ebp + 0xa0]
je 0x1001657c
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x1001655e
cmp byte [eax], 0x30
jne 0x1001655e
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x10016577
xor eax, eax
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x10016575
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x10016544
mov ecx, dword [ebp - 0x68]
mov byte [edi], 0
push dword [ebp - 0x64]
push dword [ebp - 0x70]
call fcn.10016774
mov esi, eax
jmp 0x10016594
push 0xe
pop esi
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x10016736
lea ecx, [ebp - 0x64]
call fcn.10014571
jmp 0x10016736
call dword [0x1001e040]
and dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x100165f1
push ebx
call fcn.100011b6
test al, al
pop ecx
je 0x100165f1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.10018600
mov eax, esp
jmp 0x100165fa
push ebx
lea ecx, [ebp - 0x6c]
call fcn.1000212c
push dword [ebp - 0x68]
lea ecx, [ebp + 0xa0]
push esi
push ecx
push eax
call fcn.100012dc
xor esi, esi
cmp eax, esi
jne 0x10016623
lea ecx, [ebp - 0x6c]
call fcn.10001aef
mov eax, 0x8007000e
jmp 0x10016754
lea ecx, [ebp - 0x78]
push ecx
push esi
push esi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x78]
push 4
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
push 4
push esi
push dword [ebp - 0x70]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.10001aef
jmp 0x10016736
lea eax, [ebp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0x6c], eax
jne 0x100166a6
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
xor edi, edi
cmp ebx, 0x100
mov dword [ebp - 0x64], edi
jbe 0x1001668c
push ebx
lea ecx, [ebp - 0x64]
call fcn.1001457a
jmp 0x10016692
lea eax, [ebp - 0x60]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], edi
jne 0x100166b0
lea eax, [ebp - 0x60]
test eax, eax
je 0x100166a6
lea ecx, [ebp - 0x64]
call fcn.10014571
mov eax, 0x80004005
jmp 0x10016754
push ebx
push edi
push dword [ebp - 0x64]
call fcn.10018640
add esp, 0xc
cmp dword [ebp - 0x6c], 0
jle 0x100166f8
mov eax, edi
cdq
sub eax, edx
mov esi, eax
xor eax, eax
mov al, byte [ebp + edi + 0xa0]
sar esi, 1
add esi, dword [ebp - 0x64]
push eax
call fcn.1001683d
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 - 0x6c]
jl 0x100166c3
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x64]
push 3
push 0
push dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x10016736
lea ecx, [ebp - 0x64]
call fcn.10014571
jmp 0x10016736
push 1
lea eax, [ebp + 0xa0]
push eax
push esi
mov ecx, edi
call fcn.10009511
mov esi, eax
test esi, esi
je 0x10016743
push esi
call fcn.10010b24
pop ecx
jmp 0x10016754
push dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
call fcn.10015ad1
test eax, eax
jl 0x10016754
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10a0]
xor ecx, ebp
call fcn.10018081
add ebp, 0x10a4
leave
ret 0xc