Function at 0x40c5e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa28
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 - 0x402]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0xa24], eax
mov word [ebp - 0x404], cx
call fcn.0049eae0
push 0x3fe
lea ecx, [ebp - 0xa0a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0xa0c], ax
call fcn.0049eae0
push 0x206
lea eax, [ebp - 0x60a]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0xa18], ebx
mov dword [ebp - 0xa1c], ebx
mov dword [ebp - 0xa14], ebx
mov dword [ebp - 0xa20], ebx
mov word [ebp - 0x60c], 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 0x40c677
sub eax, edx
sar eax, 1
je 0x40c8fb
lea edx, [ebp - 0x60c]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x40c696
xor eax, eax
jmp 0x40c6b0
movzx ecx, word [eax + str.TargetFolder]
mov word [ebp + eax - 0xa0c], cx
add eax, 2
cmp cx, bx
jne 0x40c6b0
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x4d337c]
mov word [ebp + eax - 0x404], cx
add eax, 2
cmp cx, bx
jne 0x40c6d0
lea ecx, [ebp - 0xa18]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0x404]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea esi, [edi + 0x1008]
lea edx, [ebp - 0x404]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x40c716
lea eax, [ebp - 0xa20]
push eax
mov eax, dword [ebp - 0xa18]
lea ecx, [ebp - 0xa1c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea edx, [ebp - 0x404]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor eax, eax
jmp 0x40c760
movzx ecx, word [eax + 0x4d337c]
mov word [ebp + eax - 0x404], cx
add eax, 2
cmp cx, bx
jne 0x40c760
mov eax, esi
mov edx, esi
jmp 0x40c780
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c780
lea edi, [ebp - 0x404]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x40c796
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 - 0x404]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40c7c0
mov edx, dword [0x4d3378]
lea eax, [ebp - 0x404]
mov dword [edi], edx
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x40c7e0
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 - 0x404]
mov dword [eax + 0x10], ecx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40c821
mov eax, dword [ebp - 0xa24]
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c837
lea edi, [ebp - 0x404]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x40c850
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0xa20]
push edx
lea eax, [ebp - 0xa14]
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 - 0x404]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40c8da
lea eax, [ebp - 0x60c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c8a2
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
mov edx, dword [ebp - 0xa14]
lea eax, [ebp - 0x60c]
push eax
push 1
push ebx
lea ecx, [ebp - 0xa0c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40c8da
mov bl, 1
mov eax, dword [ebp - 0xa18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0xa1c]
push ecx
call esi
mov edx, dword [ebp - 0xa14]
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