Function at 0x40bf20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8e8
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x3fe
xor ebx, ebx
mov edi, ecx
lea edx, [ebp - 0x4ca]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x8e4], eax
mov word [ebp - 0x4cc], cx
call fcn.0049eae0
push 0x3fe
lea ecx, [ebp - 0x8ca]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x8cc], ax
call fcn.0049eae0
push 0xc6
lea eax, [ebp - 0xca]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0x8d8], ebx
mov dword [ebp - 0x8dc], ebx
mov dword [ebp - 0x8d4], ebx
mov dword [ebp - 0x8e0], ebx
mov word [ebp - 0xcc], dx
call fcn.0049eae0
mov esi, dword [ebp + 0xc]
mov eax, esi
add esp, 0x24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40bfb7
sub eax, edx
sar eax, 1
je 0x40c23b
lea edx, [ebp - 0xcc]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x40bfd6
xor eax, eax
jmp 0x40bff0
movzx ecx, word [eax + str.BackwardsCompatibleToVersion]
mov word [ebp + eax - 0x8cc], cx
add eax, 2
cmp cx, bx
jne 0x40bff0
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x4d337c]
mov word [ebp + eax - 0x4cc], cx
add eax, 2
cmp cx, bx
jne 0x40c010
lea ecx, [ebp - 0x8d8]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0x4cc]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea esi, [edi + 0x1008]
lea edx, [ebp - 0x4cc]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x40c056
lea eax, [ebp - 0x8e0]
push eax
mov eax, dword [ebp - 0x8d8]
lea ecx, [ebp - 0x8dc]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea edx, [ebp - 0x4cc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor eax, eax
jmp 0x40c0a0
movzx ecx, word [eax + 0x4d337c]
mov word [ebp + eax - 0x4cc], cx
add eax, 2
cmp cx, bx
jne 0x40c0a0
mov eax, esi
mov edx, esi
jmp 0x40c0c0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c0c0
lea edi, [ebp - 0x4cc]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x40c0d6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x4cc]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40c100
mov edx, dword [0x4d3378]
lea eax, [ebp - 0x4cc]
mov dword [edi], edx
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x40c120
mov ecx, dword [0x4d3364]
mov dword [eax], ecx
mov ecx, dword [0x4d3368]
mov dword [eax + 4], ecx
mov ecx, dword [0x4d336c]
mov dword [eax + 8], ecx
mov ecx, dword [0x4d3370]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4d3374]
lea edi, [ebp - 0x4cc]
mov dword [eax + 0x10], ecx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40c161
mov eax, dword [ebp - 0x8e4]
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c177
lea edi, [ebp - 0x4cc]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x40c190
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x8e0]
push edx
lea eax, [ebp - 0x8d4]
push eax
push ebx
push 0xf003f
push ebx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [ebp - 0x4cc]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40c21a
lea eax, [ebp - 0xcc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c1e2
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
mov edx, dword [ebp - 0x8d4]
lea eax, [ebp - 0xcc]
push eax
push 1
push ebx
lea ecx, [ebp - 0x8cc]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40c21a
mov bl, 1
mov eax, dword [ebp - 0x8d8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x8dc]
push ecx
call esi
mov edx, dword [ebp - 0x8d4]
push edx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 8