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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
push ecx
inc eax
push 0x100eda0
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 0x3e8], eax
lea eax, [ebp - 0x3d8]
xor esi, esi
push 0xc7
push eax
mov dword [ebp - 0x3ec], ecx
mov dword [ebp - 0x3dc], esi
mov dword [ebp - 0x3e4], esi
call fcn.01034d76
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x10
lea eax, [ebp - 0x3dc]
push eax
mov ebx, 0x2001f
push ebx
push esi
lea eax, [ebp - 0x3d8]
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x106a8f4
lea eax, [ebp - 0x3e4]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x3e0]
push eax
push esi
push esi
push dword [ebp - 0x3dc]
mov dword [ebp - 0x3e4], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106a8d0
cmp dword [ebp - 0x3e0], 1
je 0x106a7f6
cmp dword [ebp - 0x3e0], 2
jne 0x106a8d0
lea eax, [ebp - 0x248]
push eax
call fcn.01068ddd
test eax, eax
je 0x106a8d0
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
jne 0x106a839
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x106a9f2
lea eax, [ebp - 0x3e4]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x3e0]
push eax
push esi
push 0x100ebb4
push dword [ebp - 0x3dc]
mov dword [ebp - 0x3e4], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106a8ca
cmp dword [ebp - 0x3e0], 1
je 0x106a880
cmp dword [ebp - 0x3e0], 2
jne 0x106a8ca
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106a889
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x3e0]
push esi
push esi
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x100ebb4
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x106a8d0
mov dword [ebp - 0x3e8], esi
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3e8], esi
jne 0x106a8f4
push dword [ebp - 0x3ec]
push SysReAllocString
jmp 0x106a9ed
push dword [ebp - 0x3ec]
lea eax, [ebp - 0x3d8]
push 0x100ee50
push 0xc7
push eax
mov dword [ebp - 0x3e8], 1
call fcn.01034d76
add esp, 0x10
lea eax, [ebp - 0x3dc]
push eax
push ebx
push esi
lea eax, [ebp - 0x3d8]
push eax
mov ebx, SysReAllocString
push ebx
call edi
test eax, eax
jne 0x106a9f2
lea eax, [ebp - 0x3e4]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x3e0]
push eax
push esi
mov edi, 0x100ebb4
push edi
push dword [ebp - 0x3dc]
mov dword [ebp - 0x3e4], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x106a9cb
cmp dword [ebp - 0x3e0], 1
je 0x106a985
cmp dword [ebp - 0x3e0], 2
jne 0x106a9cb
push edi
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x106a99b
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x3e0]
push esi
push esi
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x106a9d1
mov dword [ebp - 0x3e8], esi
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3e8], esi
jne 0x106a9f2
lea eax, [ebp - 0x3d8]
push eax
push ebx
call fcn.01058684
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 4