Function at 0x106b9cc
Capabilities:
Delete registry key
Delete registry value
Persist via default file association registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xae0
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 0xabc], eax
mov dword [ebp - 0xac8], ecx
mov dword [ebp - 0xae0], ebx
mov dword [ebp - 0xab0], esi
mov dword [ebp - 0xab8], esi
mov dword [ebp - 0xab4], 1
mov dword [ebp - 0xac0], esi
je 0x106cc04
push edi
lea ecx, [ebp - 0xab0]
push ecx
push 0x2001f
push esi
push eax
mov edi, SysReAllocString
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106cc01
push dword [ebp - 0xab0]
inc eax
mov dword [ebp - 0xad4], esi
mov dword [ebp - 0xac4], eax
mov dword [ebp - 0xadc], esi
mov dword [ebp - 0xad0], eax
mov dword [ebp - 0xad8], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xabc]
mov ebx, 0x103
push 0x100eda0
lea eax, [ebp - 0x450]
push ebx
push eax
call fcn.01034d76
add esp, 0x10
lea eax, [ebp - 0xab0]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106bc3b
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push esi
push dword [ebp - 0xab0]
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106bc2f
cmp dword [ebp - 0xab4], 1
je 0x106bb00
cmp dword [ebp - 0xab4], 2
jne 0x106bc2f
lea eax, [ebp - 0x248]
push eax
call fcn.01068ddd
test eax, eax
je 0x106bc2f
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x248]
push eax
call fcn.01068e7c
test eax, eax
je 0x106bc2f
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push 0x100ebb4
push dword [ebp - 0xab0]
mov dword [ebp - 0xac4], esi
mov dword [ebp - 0xad4], 1
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106bc2f
cmp dword [ebp - 0xab4], 1
je 0x106bb95
cmp dword [ebp - 0xab4], 2
jne 0x106bc2f
lea eax, [ebp - 0x248]
push eax
push 0x121
lea eax, [ebp - 0x694]
push eax
call fcn.01034c79
lea eax, [ebp - 0x694]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x694]
push eax
call fcn.01068e7c
test eax, eax
jne 0x106bc2f
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106bbd4
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0xab4]
push esi
push esi
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x100f1f4
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x694]
push eax
call fcn.01068f1f
mov dword [ebp - 0xac0], eax
mov dword [ebp - 0xac4], 1
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xabc]
lea eax, [ebp - 0x450]
push 0x100f1c0
push ebx
push eax
call fcn.01034d76
add esp, 0x10
lea eax, [ebp - 0xab0]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106bda4
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push 0x100f1b4
push dword [ebp - 0xab0]
mov dword [ebp - 0xacc], esi
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106bd82
cmp dword [ebp - 0xab4], 1
jne 0x106bd82
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.msvcrt.dll__wcsupr]
lea eax, [ebp - 0x248]
push eax
push dword [0x107fdec]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 0xc
test eax, eax
jne 0x106bd82
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push 0x100f1f4
push dword [ebp - 0xab0]
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106bd78
cmp dword [ebp - 0xab4], 1
jne 0x106bd78
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106bd37
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push 1
push esi
push 0x100f1b4
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x100f1f4
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x106bd82
mov dword [ebp - 0xacc], 1
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xacc], esi
je 0x106bda4
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0xad4], esi
je 0x106bfdb
push dword [ebp - 0xabc]
lea eax, [ebp - 0x450]
push 0x100f198
push ebx
push eax
call fcn.01034d76
add esp, 0x10
lea eax, [ebp - 0xab0]
push eax
push 0x20006
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106be07
push 0x100f17c
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xabc]
lea eax, [ebp - 0x450]
push 0x100ed40
push ebx
push eax
call fcn.01034d76
add esp, 0x10
cmp dword [ebp - 0xac0], esi
je 0x106bef4
lea eax, [ebp - 0xab0]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106bef4
push dword [ebp - 0xabc]
lea eax, [ebp - 0x450]
push 0x100ed74
push ebx
push eax
mov dword [ebp - 0xac0], esi
call fcn.01034d76
add esp, 0x10
push esi
lea eax, [ebp - 0xac0]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x106bec0
push dword [ebp - 0xac0]
push dword [ebp - 0xab0]
call fcn.01058036
test eax, eax
je 0x106beb4
mov dword [ebp - 0xac4], 1
push dword [ebp - 0xac0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xabc]
lea eax, [ebp - 0x450]
push 0x100ed40
push ebx
push eax
call fcn.01034d76
add esp, 0x10
lea eax, [ebp - 0x450]
push eax
push edi
call fcn.01058684
push dword [ebp - 0xabc]
lea eax, [ebp - 0x450]
push 0x100f198
push ebx
push eax
call fcn.01034d76
add esp, 0x10
cmp dword [ebp - 0xac4], esi
je 0x106bfce
lea eax, [ebp - 0xab0]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106bfdb
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push 0x100ebb4
push dword [ebp - 0xab0]
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106bfc0
cmp dword [ebp - 0xab4], 1
jne 0x106bfc0
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106bf85
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push 1
push esi
push esi
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x100ebb4
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x106bfdb
lea eax, [ebp - 0x450]
push eax
push edi
call fcn.01058684
cmp dword [ebp - 0xac8], esi
mov dword [ebp - 0xac0], esi
je 0x106c61b
push dword [ebp - 0xac8]
lea eax, [ebp - 0x450]
push dword [ebp - 0xabc]
push 0x100edcc
push ebx
push eax
call fcn.01034d76
add esp, 0x14
lea eax, [ebp - 0xab0]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106c21a
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push esi
push dword [ebp - 0xab0]
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106c20e
cmp dword [ebp - 0xab4], 1
je 0x106c07c
cmp dword [ebp - 0xab4], 2
jne 0x106c20e
lea eax, [ebp - 0x248]
push eax
call fcn.01068ddd
test eax, eax
je 0x106c20e
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x248]
push eax
call fcn.01068e7c
test eax, eax
je 0x106c20e
push dword [ebp - 0xac8]
lea eax, [ebp - 0x450]
push dword [ebp - 0xabc]
mov dword [ebp - 0xac4], esi
push 0x100f164
push ebx
push eax
mov dword [ebp - 0xad0], esi
mov dword [ebp - 0xadc], 1
call fcn.01034d76
add esp, 0x14
lea eax, [ebp - 0xac4]
push eax
push 0x20006
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106c125
push 0x100f17c
push dword [ebp - 0xac4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0xac4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push 0x100ebb4
push dword [ebp - 0xab0]
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106c20e
cmp dword [ebp - 0xab4], 1
je 0x106c174
cmp dword [ebp - 0xab4], 2
jne 0x106c20e
lea eax, [ebp - 0x248]
push eax
push 0x121
lea eax, [ebp - 0x694]
push eax
call fcn.01034c79
lea eax, [ebp - 0x694]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x694]
push eax
call fcn.01068e7c
test eax, eax
jne 0x106c20e
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106c1b3
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0xab4]
push esi
push esi
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x100f1f4
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x694]
push eax
call fcn.01068f1f
mov dword [ebp - 0xac0], eax
mov dword [ebp - 0xad0], 1
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xac8]
lea eax, [ebp - 0x450]
push dword [ebp - 0xabc]
push 0x100f134
push ebx
push eax
call fcn.01034d76
add esp, 0x14
lea eax, [ebp - 0xab0]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106c389
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push 0x100f1b4
push dword [ebp - 0xab0]
mov dword [ebp - 0xacc], esi
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106c367
cmp dword [ebp - 0xab4], 1
jne 0x106c367
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.msvcrt.dll__wcsupr]
lea eax, [ebp - 0x248]
push eax
push dword [0x107fdec]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 0xc
test eax, eax
jne 0x106c367
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push 0x100f1f4
push dword [ebp - 0xab0]
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106c35d
cmp dword [ebp - 0xab4], 1
jne 0x106c35d
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106c31c
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push 1
push esi
push 0x100f1b4
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x100f1f4
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x106c367
mov dword [ebp - 0xacc], 1
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xacc], esi
je 0x106c389
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0xadc], esi
je 0x106c61b
push dword [ebp - 0xac8]
lea eax, [ebp - 0x450]
push dword [ebp - 0xabc]
push 0x100f104
push ebx
push eax
call fcn.01034d76
add esp, 0x14
cmp dword [ebp - 0xac0], esi
je 0x106c494
lea eax, [ebp - 0xab0]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106c494
push dword [ebp - 0xac8]
lea eax, [ebp - 0x450]
push dword [ebp - 0xabc]
mov dword [ebp - 0xac4], esi
push 0x100f104
push ebx
push eax
call fcn.01034d76
add esp, 0x14
push esi
lea eax, [ebp - 0xac4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x106c45a
push dword [ebp - 0xac4]
push dword [ebp - 0xab0]
call fcn.01058036
test eax, eax
je 0x106c44e
mov dword [ebp - 0xad0], 1
push dword [ebp - 0xac4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xac8]
lea eax, [ebp - 0x450]
push dword [ebp - 0xabc]
push 0x100f104
push ebx
push eax
call fcn.01034d76
add esp, 0x14
lea eax, [ebp - 0x450]
push eax
push edi
call fcn.01058684
push dword [ebp - 0xac8]
lea eax, [ebp - 0x450]
push dword [ebp - 0xabc]
push 0x100f164
push ebx
push eax
call fcn.01034d76
add esp, 0x14
cmp dword [ebp - 0xad0], esi
je 0x106c60e
lea eax, [ebp - 0xab0]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106c61b
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push 0x100ebb4
push dword [ebp - 0xab0]
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106c566
cmp dword [ebp - 0xab4], 1
jne 0x106c566
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106c52b
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push 1
push esi
push esi
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x100ebb4
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0xac8]
call fcn.01068ddd
test eax, eax
je 0x106c600
push 0x100bd78
push dword [ebp - 0xac8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x106c600
push 0x105
lea eax, [ebp - 0xaac]
push eax
call fcn.010590be
test eax, eax
je 0x106c600
lea eax, [ebp - 0xaac]
push eax
push 0x100ef94
lea eax, [ebp - 0x8a0]
push 0x105
push eax
call fcn.01034d76
add esp, 0x10
test eax, eax
jl 0x106c600
lea eax, [ebp - 0x8a0]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106c5d2
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x8a0]
push eax
push 2
push esi
push 0x100eb8c
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x106c61b
lea eax, [ebp - 0x450]
push eax
push edi
call fcn.01058684
push dword [ebp - 0xabc]
lea eax, [ebp - 0x450]
push 0x100ed2c
push ebx
push eax
call fcn.01034d76
add esp, 0x10
lea eax, [ebp - 0xab0]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106cb84
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push esi
push dword [ebp - 0xab0]
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106c8b7
cmp dword [ebp - 0xab4], 1
jne 0x106c8b7
lea eax, [ebp - 0x248]
push eax
call fcn.01068ddd
test eax, eax
je 0x106c8b7
lea eax, [ebp - 0x248]
push 0x100edf4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x106c74b
cmp dword [ebp - 0xad4], esi
je 0x106c74b
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push 0x100ebb4
push dword [ebp - 0xab0]
mov dword [ebp - 0xad8], 1
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106c745
cmp dword [ebp - 0xab4], 1
jne 0x106c745
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106c724
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push 1
jmp 0x106c898
push esi
jmp 0x106c8ab
cmp dword [ebp - 0xadc], esi
je 0x106c8b7
push dword [ebp - 0xac8]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x106c8b7
push 0x100bd78
push dword [ebp - 0xac8]
mov dword [ebp - 0xad8], 1
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x106c828
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push 0x100eb8c
push dword [ebp - 0xab0]
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106c828
cmp dword [ebp - 0xab4], 1
je 0x106c7e0
cmp dword [ebp - 0xab4], 2
jne 0x106c828
lea eax, [ebp - 0x248]
push eax
call fcn.01068ddd
test eax, eax
je 0x106c828
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
lea eax, [ebp - 0x248]
mov dword [esp], 0x100eb70
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x106c828
push 0x100eb8c
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push 0x100ebb4
push dword [ebp - 0xab0]
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106c8b7
cmp dword [ebp - 0xab4], 1
je 0x106c86f
cmp dword [ebp - 0xab4], 2
jne 0x106c8b7
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106c878
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0xab4]
push esi
push esi
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x100ebb4
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xad8], esi
je 0x106cb84
push 0x100eb4c
push dword [ebp - 0xabc]
lea eax, [ebp - 0x450]
push 0x1002b4c
push ebx
push eax
mov dword [ebp - 0xac0], esi
call fcn.01034d76
add esp, 0x14
lea eax, [ebp - 0xab0]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106c9c5
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push 0x100ebb4
push dword [ebp - 0xab0]
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106c9b1
cmp dword [ebp - 0xab4], 1
je 0x106c95f
cmp dword [ebp - 0xab4], 2
jne 0x106c9b1
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106c968
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0xab4]
push esi
push esi
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x100ebb4
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0xac0], 1
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xac0], esi
jne 0x106c9d2
lea eax, [ebp - 0x450]
push eax
push edi
call fcn.01058684
push 0x100f1b4
push dword [ebp - 0xabc]
lea eax, [ebp - 0x450]
push 0x1002b4c
push ebx
push eax
mov dword [ebp - 0xac0], 1
call fcn.01034d76
add esp, 0x14
lea eax, [ebp - 0xab0]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106cb84
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push 0x100f0e8
push dword [ebp - 0xab0]
mov dword [ebp - 0xab8], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106cb63
cmp dword [ebp - 0xab4], 1
jne 0x106cb63
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x7c4]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push esi
push dword [ebp - 0xab0]
mov dword [ebp - 0xab8], 0x12c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106cb63
cmp dword [ebp - 0xab4], 1
jne 0x106cb63
lea eax, [ebp - 0x7c4]
push eax
call fcn.01068ddd
test eax, eax
je 0x106cb63
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x7c4]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x106cb63
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x7c4]
push eax
lea eax, [ebp - 0xab4]
push eax
push esi
push 0x100ebb4
push dword [ebp - 0xab0]
mov dword [ebp - 0xab8], 0x12c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106cb5d
cmp dword [ebp - 0xab4], 1
jne 0x106cb5d
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106cb20
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push 1
push esi
push esi
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x100ebb4
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x106cb63
mov dword [ebp - 0xac0], esi
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xac0], esi
jne 0x106cb84
lea eax, [ebp - 0x450]
push eax
push edi
call fcn.01058684
push dword [ebp - 0xabc]
lea eax, [ebp - 0x450]
push 0x100ed2c
push ebx
push eax
call fcn.01034d76
add esp, 0x10
lea eax, [ebp - 0xab0]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x450]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x106cc03
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x248]
push eax
push esi
push dword [ebp - 0xab0]
mov dword [ebp - 0xab8], 0x122
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x106cbf3
mov eax, dword [ebp - 0xae0]
mov dword [eax], esi
push dword [ebp - 0xab0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x106cc03
mov dword [ebx], esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 0x10