Function at 0x4014b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x5a0
mov eax, dword [0x40c004]
xor eax, esp
mov dword [esp + 0x59c], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 2
xor eax, eax
jmp 0x4014e0
movzx ecx, word [eax + 0x40a3a8]
mov word [esp + eax + 0x19c], cx
add eax, 2
test cx, cx
jne 0x4014e0
mov eax, 0x431d90
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401500
push ebx
push esi
push edi
lea edi, [esp + 0x1a8]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401520
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
push 0x18e
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.004058e0
add esp, 0xc
xor eax, eax
jmp 0x401560
movzx ecx, word [eax + str.SYSTEMCurrentControlSetServices_]
mov word [esp + eax + 0x18], cx
add eax, 2
test cx, cx
jne 0x401560
lea eax, [esp + 0x18]
add eax, 0xfffffffe
jmp 0x401580
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401580
mov edx, dword [0x40a6d4]
mov ecx, dword [0x40a6d8]
mov dword [eax], edx
mov edx, dword [0x40a6dc]
mov dword [eax + 4], ecx
mov cx, word [0x40a6e0]
mov dword [eax + 8], edx
mov word [eax + 0xc], cx
lea eax, [esp + 0x1a8]
lea edx, [eax + 2]
jmp 0x4015c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4015c0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0
sub eax, edx
lea edx, [esp + 0x10]
push edx
push 0
push 0x20006
push 0
sar eax, 1
push 0
mov edi, eax
push 0
lea eax, [esp + 0x34]
push eax
push 0x80000002
call esi
mov eax, dword [esp + 0xc]
lea ecx, [edi + edi + 2]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ecx
lea edx, [esp + 0x1ac]
push edx
push 2
push 0
push 0x40a400
push eax
call edi
mov eax, 0x40a6d4
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x401622
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
sar eax, 1
push 0x80000002
mov ebx, eax
call esi
mov ecx, dword [esp + 0xc]
lea eax, [ebx + ebx + 2]
push eax
push 0x40a6d4
push 1
push 0
push 0x40a414
push ecx
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0x80000002
call esi
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push 0x40a42c
push edx
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push 0x80000002
call esi
mov eax, dword [esp + 0xc]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push 0x40a448
push eax
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
push 0x80000002
call esi
push 0xa
push 0x40a454
push 1
mov eax, dword [esp + 0x18]
push 0
push 0x40a460
push eax
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
push 0x80000002
call esi
mov ecx, dword [esp + 0xc]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push 0x40a46c
push ecx
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0x80000002
call esi
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push 0x40a474
push edx
call edi
mov ecx, dword [esp + 0x5a8]
pop edi
test eax, eax
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.0040247a
add esp, 0x5a0
ret