Function at 0x1016bfe4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x100]
sub esp, 0x180
mov eax, dword [0x1023904c]
xor eax, ebp
mov dword [ebp + 0xfc], eax
mov eax, dword [ebp + 0x108]
or dword [ebp - 0x54], 0xffffffff
or dword [ebp - 0x58], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x110]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10c]
push esi
push edi
mov edi, dword [ebp + 0x114]
mov dword [ebp - 0x64], eax
xor eax, eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x6c], eax
mov esi, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x5c], eax
call fcn.1000e7de
lea ecx, [ebp - 0x44]
call fcn.1000e7de
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x118]
xor ecx, eax
or eax, ecx
mov dword [ebp + 0x118], ecx
mov dword [ebx], eax
test cl, 3
je 0x1016c0c1
test cl, 4
je 0x1016c170
lea edi, [ebx + 4]
push edi
call fcn.1015692e
mov esi, eax
test esi, esi
js 0x1016c35f
mov edi, dword [edi]
mov dword [ebp - 0x60], edi
test edi, 0xffff0000
je 0x1016c0bb
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x6c]
jne 0x1016c091
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 1]
call fcn.1000c5c0
mov eax, esp
push edi
push eax
call fcn.1000c540
mov edi, eax
mov dword [ebp - 0x60], edi
mov ecx, dword [ebp + 0x118]
test cl, 1
je 0x1016c346
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx]
lea edx, [ebp - 0x74]
push edx
push ecx
call dword [eax + 0x1c]
mov esi, eax
test esi, esi
js 0x1016c35f
mov ecx, dword [ebp - 0x74]
mov ax, word [ecx + 0x18]
mov word [ebp - 0x24], ax
mov ax, word [ecx + 0x1a]
mov word [ebp - 0x22], ax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x28], eax
mov esi, ecx
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ax, word [ecx + 0x1c]
mov esi, dword [ebp - 0x64]
push ecx
mov word [ebp - 0x20], ax
mov eax, dword [esi]
push esi
call dword [eax + 0x30]
mov eax, dword [esi]
lea ecx, [ebp - 0x68]
push ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x5c]
push ecx
push edi
push 0xffffffffffffffff
push esi
call dword [eax + 0x24]
mov esi, eax
test esi, esi
js 0x1016c35f
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x1016c19e
test esi, 0xffff0000
je 0x1016c199
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x1016c147
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 1]
call fcn.1000c5c0
mov eax, esp
push esi
push eax
call fcn.1000c540
mov dword [ebp - 0x50], eax
jmp 0x1016c1a5
cmp dword [ebx + 4], esi
je 0x1016c17e
push dword [ebx + 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call fcn.1001b2f9
mov dword [ebx + 4], eax
test eax, eax
jne 0x1016c0bb
mov esi, 0x8007000e
jmp 0x1016c35f
mov dword [ebp - 0x50], esi
jmp 0x1016c1a5
mov dword [ebp - 0x50], 0x1023af04
mov esi, dword [ebp - 0x68]
test esi, esi
jne 0x1016c1b5
mov dword [ebp - 0x48], 0x1023af04
jmp 0x1016c200
test esi, 0xffff0000
je 0x1016c1e8
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x1016c1c2
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 1]
call fcn.1000c5c0
mov eax, esp
push esi
push eax
call fcn.1000c540
mov esi, eax
push esi
lea ecx, [ebp - 0x80]
call fcn.100dcd86
test eax, eax
je 0x1016c18f
lea ecx, [ebp - 0x80]
call fcn.1015692e
mov dword [ebp - 0x48], eax
mov esi, dword [ebp - 0x58]
lea eax, [ebp - 0x58]
push eax
push str.VBKeySave5
push SysReAllocString
call fcn.1015692e
test eax, eax
je 0x1016c21d
mov dword [ebp - 0x58], esi
push eax
call fcn.100bb880
mov esi, eax
test esi, esi
js 0x1016c35f
mov esi, 0x10e
push esi
call fcn.1000e3fc
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
push esi
call fcn.1000e3fc
push eax
push 1
push edi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov eax, dword [0x1024458c]
mov dword [ebx + 0xc], eax
push dword [ebx + 0xc]
inc eax
mov dword [0x1024458c], eax
call dword [sym.imp.ole32.dll_CoGetCurrentProcess]
push eax
lea eax, [ebp + 0xe8]
push 0x1014cbf0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [ebp - 0x54]
add esp, 0x10
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp + 0xe8]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1016c2a6
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1016c253
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp + 0xe8]
push eax
push dword [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.1015692e
test eax, eax
je 0x1016c2c3
mov dword [ebp - 0x54], esi
push eax
call fcn.100bb880
mov esi, eax
test esi, esi
jns 0x1016c2d8
or dword [ebp - 0x54], 0xffffffff
jmp 0x1016c35b
push dword [ebp - 0x54]
lea eax, [ebp - 0x38]
push eax
mov dword [ebx + 0x10], 1
call fcn.1016ce87
mov esi, eax
test esi, esi
js 0x1016c35f
mov eax, dword [ebp - 0x70]
mov edi, dword [ebp - 0x60]
xor ecx, ecx
mov dword [ebp - 0x4c], edi
cmp dword [eax + 0xfc], ecx
jne 0x1016c3cb
push 0x104
lea eax, [ebp - 0x1c]
push eax
push dword [0x1023a224]
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x44]
call fcn.100dcd86
test eax, eax
je 0x1016c18f
lea eax, [ebp - 0x50]
push eax
call fcn.1016d02f
mov esi, eax
test esi, esi
js 0x1016c35f
mov ecx, dword [ebp + 0x118]
test cl, 2
je 0x1016c35b
mov ecx, dword [ebp - 0x64]
lea eax, [ebx + 8]
push eax
push edi
push ecx
call fcn.1015692e
mov esi, eax
test esi, esi
jns 0x1016c36b
push dword [ebp + 0x118]
push ebx
call fcn.1015692e
cmp dword [ebp - 0x54], 0xffffffff
je 0x1016c37a
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x58], 0xffffffff
je 0x1016c389
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x5c]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push dword [ebp - 0x68]
call edi
lea ecx, [ebp - 0x44]
call fcn.1001b92f
lea ecx, [ebp - 0x80]
call fcn.1001b92f
mov eax, esi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xfc]
xor ecx, ebp
call fcn.10001e57
add ebp, 0x100
leave
ret 0x14
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.1015692e
jmp 0x1016c329