Function at 0x41ca80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471605
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4d100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 0xa
mov dword [ebp - 0x2c], 0
push str.MachineKey
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00411c40
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x41cb58
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x41cccb
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push ecx
cmovae eax, dword [ebp + 0x20]
push eax
push 1
push 0x4c8104
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
call fcn.00413e50
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2c]
call fcn.00411de0
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x41cb58
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41cb4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ccd0
push edx
push ecx
call fcn.00451449
add esp, 8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0x2021f
push 0
push 0
push 0
push str.SoftwareTwitch_Desktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x41cbbe
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareTwitch_Desktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x41cbbe
xor bl, bl
jmp 0x41cbf6
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 8]
inc edx
lea eax, [ebp - 0x2c]
cmp dword [ebp + 0x1c], 0x10
push edx
cmovae ecx, dword [ebp + 8]
cmp dword [ebp - 0x18], 0x10
push ecx
cmovae eax, dword [ebp - 0x2c]
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x30]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x41cc2a
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41cc20
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ccd0
push edx
push ecx
call fcn.00451449
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp edx, 0x10
jb 0x41cc6c
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41cc62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ccd0
push edx
push ecx
call fcn.00451449
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x41ccae
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41cca4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ccd0
push edx
push ecx
call fcn.00451449
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450db2
mov esp, ebp
pop ebp
ret
call fcn.00401630
call fcn.00460976
int3