Function at 0x40aff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x4f6cdc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x3fe
xor ebx, ebx
mov esi, ecx
lea edx, [ebp - 0x402]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x818], eax
mov word [ebp - 0x404], cx
call fcn.0049eae0
push 0x3fe
lea ecx, [ebp - 0x802]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x804], ax
call fcn.0049eae0
add esp, 0x18
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 0x810], ebx
mov dword [ebp - 0x808], ebx
mov dword [ebp - 0x814], ebx
xor eax, eax
jmp 0x40b070
movzx ecx, word [eax + str.LangID]
mov word [ebp + eax - 0x804], cx
add eax, 2
cmp cx, bx
jne 0x40b070
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x4d337c]
mov word [ebp + eax - 0x404], cx
add eax, 2
cmp cx, bx
jne 0x40b090
lea edx, [ebp - 0x80c]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x404]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esi, 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 0x40b0d6
lea ecx, [ebp - 0x814]
push ecx
mov ecx, dword [ebp - 0x80c]
lea edx, [ebp - 0x810]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x404]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor eax, eax
jmp 0x40b120
movzx ecx, word [eax + 0x4d337c]
mov word [ebp + eax - 0x404], cx
add eax, 2
cmp cx, bx
jne 0x40b120
mov eax, esi
mov edx, esi
jmp 0x40b140
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b140
push edi
lea edi, [ebp - 0x404]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40b160
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x40b160
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
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40b183
mov edx, dword [0x4d3378]
lea eax, [ebp - 0x404]
mov dword [edi], edx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x40b1a0
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 0x40b1e1
mov eax, dword [ebp - 0x818]
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b1f7
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 0x40b210
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x814]
push edx
lea eax, [ebp - 0x808]
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]
pop edi
test eax, eax
jne 0x40b27d
mov ecx, dword [ebp - 0x808]
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push ebx
lea eax, [ebp - 0x804]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40b27d
mov bl, 1
mov edx, dword [ebp - 0x80c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [ebp - 0x810]
push eax
call esi
mov ecx, dword [ebp - 0x808]
push ecx
call esi
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049f71b
mov esp, ebp
pop ebp
ret 8