Function at 0x40c9c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41fe78
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x427040]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
lea edx, [esp + 0x38]
mov dword [esp + 0x54], ebx
call fcn.00405e00
add esp, 4
lea ecx, [esp + 0x34]
xor esi, esi
call fcn.004019a0
test eax, eax
jbe 0x40ca87
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x38]
mov edi, edi
test ebx, ebx
je 0x40ca51
mov ecx, dword [esp + 0x3c]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x40ca5a
call fcn.00412b4f
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + ebx + 0x14]
lea edx, [edi + ecx*2 + 2]
add eax, 0x1c
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], edx
add esi, 1
mov dword [esp + 0x18], eax
call fcn.004019a0
cmp esi, eax
mov edi, dword [esp + 0x14]
jb 0x40ca30
xor ebx, ebx
add edi, 2
mov dword [esp + 0x14], edi
push edi
jne 0x40caf7
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
push 0x423044
push 7
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x40ccdf
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x40cae0
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
push ecx
call fcn.00406eb0
mov edx, dword [esp + 0x3c]
add esp, 4
push edx
call fcn.004127aa
add esp, 4
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.MemoryControl.0
mov dword [esp + 0x30], ebx
call fcn.0040a6a0
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
call fcn.004019a0
test eax, eax
jbe 0x40cc2b
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test esi, esi
je 0x40cb54
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40cb61
call fcn.00412b4f
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
test esi, esi
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + esi + 0x14]
mov dword [esp + 0x24], eax
je 0x40cb8a
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40cb97
call fcn.00412b4f
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
cmp dword [ecx + esi + 0x18], 8
jb 0x40cba4
mov esi, dword [ecx + esi + 4]
jmp 0x40cba8
lea esi, [ecx + esi + 4]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x1c]
push edx
add eax, ecx
push esi
push eax
call fcn.00414cc0
mov esi, dword [esp + 0x44]
add esp, 0xc
test esi, esi
je 0x40cbeb
mov edi, dword [esp + 0x3c]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40cbf8
call fcn.00412b4f
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov edx, dword [eax + esi + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [ecx + edx*2 + 2]
add eax, 0x1c
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], edx
add ebx, 1
mov dword [esp + 0x10], eax
call fcn.004019a0
cmp ebx, eax
jb 0x40cb35
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x20]
push edi
push eax
mov eax, dword [edx + 4]
push 7
xor ebx, ebx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x40cccc
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40cc68
push eax
call fcn.004133d3
add esp, 4
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x40cae0
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x40ccac
add esi, 0x18
nop
cmp dword [esi], 8
jb 0x40cc91
mov ecx, dword [esi - 0x14]
push ecx
call fcn.004127aa
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], bx
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x40cc80
mov esi, dword [esp + 0x38]
push esi
call fcn.004127aa
add esp, 4
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40ccdd
push eax
call fcn.004133d3
add esp, 4
xor ebx, ebx
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x40cd27
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x40cd1e
add esi, 0x18
cmp dword [esi], 8
jb 0x40cd03
mov eax, dword [esi - 0x14]
push eax
call fcn.004127aa
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], bx
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x40ccf2
mov esi, dword [esp + 0x38]
push esi
call fcn.004127aa
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc