Function at 0x413a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4692d9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x4c700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], esi
xor edi, edi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
push 0xa
mov dword [ebp - 0x30], edi
push str.MachineKey
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.0040bf30
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x413b51
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x413e37
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
push ecx
cmovae eax, dword [ebx + 8]
push eax
push 1
push 0x4bd89c
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x60]
call fcn.00418d10
mov edi, 2
mov dword [ebp - 0x3c], edi
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x30]
call fcn.0040c0e0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x413b51
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413b47
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413e3c
push edx
push ecx
call fcn.00449563
add esp, 8
push 0
mov dword [esi], 0
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push 0x473322
mov byte [esi], 0
call fcn.0040bf30
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x20219
push 0
push str.SoftwareTwitch_Desktop
or edi, 1
push 0x80000001
mov dword [ebp - 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x413bca
lea eax, [ebp - 0x34]
push eax
push 0x20019
push ecx
push str.SoftwareTwitch_Desktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x413c77
cmp dword [ebp - 0x1c], 0x10
lea edx, [ebp - 0x38]
push edx
push 0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push edx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x38], 0
cmovae eax, dword [ebp - 0x30]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x413c6e
xor eax, eax
add ecx, 2
setb al
neg eax
or eax, ecx
push eax
push 1
call fcn.0044c620
add esp, 8
lea edx, [ebp - 0x38]
cmp dword [ebp - 0x1c], 0x10
mov ecx, eax
mov dword [ebp - 0x40], ecx
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push edx
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x38], 0
je 0x413c63
mov edx, dword [ebp - 0x40]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x44], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413c50
sub ecx, dword [ebp - 0x44]
push ecx
push edx
mov ecx, esi
call fcn.0040bf30
push dword [ebp - 0x40]
call fcn.00458837
add esp, 4
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x10], 0
jne 0x413da1
lea ecx, [ebp - 0x78]
call fcn.00415270
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x413c95
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.0040eba0
or edi, 4
lea eax, [ebp - 0x60]
mov dword [ebp - 0x3c], edi
cmp esi, eax
je 0x413d03
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x413cdf
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x413cd5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413e41
mov eax, edx
push ecx
push eax
call fcn.00449563
add esp, 8
movups xmm0, xmmword [ebp - 0x60]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x50]
movq qword [esi + 0x10], xmm0
jmp 0x413d37
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x413d37
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413d2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413e41
push edx
push ecx
call fcn.00449563
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x413d75
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413d6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413e41
push edx
push ecx
call fcn.00449563
add esp, 8
sub esp, 0x18
lea eax, [ebx + 8]
mov ecx, esp
mov dword [ebp - 0x44], esp
push eax
call fcn.0040bc10
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push esi
call fcn.0040bc10
mov byte [ebp - 4], 2
call fcn.00413e50
add esp, 0x30
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x413dd5
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413dcb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413e46
push edx
push ecx
call fcn.00449563
add esp, 8
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x413e17
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413e0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413e46
push edx
push ecx
call fcn.00449563
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004490d7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004013e0
call fcn.00458a87
call fcn.00458a87
call fcn.00458a87
int3