Function at 0x1032be7
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 [0x103f058]
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 0x1004250
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.01027f64
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 0x80000000
call edi
test eax, eax
jne 0x1032db2
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 0x1032d8e
cmp dword [ebp - 0x3e0], 1
je 0x1032cb4
cmp dword [ebp - 0x3e0], 2
jne 0x1032d8e
lea eax, [ebp - 0x248]
push eax
call fcn.010313bf
test eax, eax
je 0x1032d8e
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea eax, [ebp - 0x248]
push eax
call fcn.01031552
test eax, eax
jne 0x1032cf7
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1032eb0
lea eax, [ebp - 0x3e4]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x3e0]
push eax
push esi
push 0x10064bc
push dword [ebp - 0x3dc]
mov dword [ebp - 0x3e4], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1032d88
cmp dword [ebp - 0x3e0], 1
je 0x1032d3e
cmp dword [ebp - 0x3e0], 2
jne 0x1032d88
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1032d47
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 0x10064bc
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1032d8e
mov dword [ebp - 0x3e8], esi
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3e8], esi
jne 0x1032db2
push dword [ebp - 0x3ec]
push 0x80000000
jmp 0x1032eab
push dword [ebp - 0x3ec]
lea eax, [ebp - 0x3d8]
push 0x100688c
push 0xc7
push eax
mov dword [ebp - 0x3e8], 1
call fcn.01027f64
add esp, 0x10
lea eax, [ebp - 0x3dc]
push eax
push ebx
push esi
lea eax, [ebp - 0x3d8]
push eax
mov ebx, 0x80000000
push ebx
call edi
test eax, eax
jne 0x1032eb0
lea eax, [ebp - 0x3e4]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x3e0]
push eax
push esi
mov edi, 0x10064bc
push edi
push dword [ebp - 0x3dc]
mov dword [ebp - 0x3e4], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1032e89
cmp dword [ebp - 0x3e0], 1
je 0x1032e43
cmp dword [ebp - 0x3e0], 2
jne 0x1032e89
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 0x1032e59
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 0x1032e8f
mov dword [ebp - 0x3e8], esi
push dword [ebp - 0x3dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3e8], esi
jne 0x1032eb0
lea eax, [ebp - 0x3d8]
push eax
push ebx
call fcn.0102f8ce
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102df7d
leave
ret 4