Function at 0x413e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469325
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4c700c]
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.0040bf30
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x413f28
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x41409b
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push ecx
cmovae eax, dword [ebp + 0x20]
push eax
push 1
push 0x4bd89c
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
call fcn.00418d10
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040c0e0
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x413f28
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413f1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4140a0
push edx
push ecx
call fcn.00449563
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 0x413f8e
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 0x413f8e
xor bl, bl
jmp 0x413fc6
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 0x413ffa
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413ff0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4140a0
push edx
push ecx
call fcn.00449563
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 0x41403c
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x414032
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4140a0
push edx
push ecx
call fcn.00449563
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 0x41407e
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x414074
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4140a0
push edx
push ecx
call fcn.00449563
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.004490d7
mov esp, ebp
pop ebp
ret
call fcn.004013e0
call fcn.00458a87
int3