Function at 0x4086a0
Capabilities:
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xb0
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x54], 0
mov edi, dword [ecx + 8]
mov dword [ebp - 0x74], 0
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x8c], eax
test esi, esi
je 0x408796
mov eax, dword [0x4166fc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb
mov dword [esp], esi
mov dword [ebp - 0x78], eax
call eax
lea eax, [ebp - 0x54]
sub esp, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x4087a8
mov edi, dword [sym.imp.ucrtbase.dll_free]
xor ebx, ebx
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x74], 0
mov dword [esp], ebx
call edi
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xb
mov dword [esp], esi
mov eax, dword [ebp - 0x78]
call eax
mov eax, dword [ebp - 0x54]
sub esp, 0x10
test eax, eax
je 0x408796
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x74]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [0x410158], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1009
mov dword [esp], esi
mov eax, dword [ebp - 0x78]
call eax
lea eax, [ebp - 0x64]
sub esp, 0x10
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x6c]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x70]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
sub esp, 0x30
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x40873d
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x64]
mov ebx, dword [sym.imp.ucrtbase.dll_malloc]
add eax, 1
lea edi, [edx + 1]
mov dword [ebp - 0x6c], eax
add eax, eax
mov dword [ebp - 0x64], edi
mov dword [esp], eax
call ebx
mov dword [ebp - 0x80], eax
mov dword [esp], edi
call ebx
mov dword [ebp - 0x60], edi
mov ebx, eax
mov dword [esp + 8], 0
lea eax, [ebp - 0x60]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x58]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
cmp eax, 2
je 0x4089f0
mov edx, dword [ebp - 0x5c]
test edx, edx
je 0x408963
mov dword [ebp - 0x7c], esi
xor edi, edi
mov esi, dword [ebp - 0x80]
jmp 0x4088fc
mov edx, dword [ebp - 0x60]
cmp word [esi], 0
mov byte [ebx + edx], 0
cmovne eax, esi
mov dword [esp + 0x14], 0xffffffff
add edi, 1
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebx
mov edx, dword [ebp - 0x58]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call fcn.00407fc0
cmp edi, dword [ebp - 0x5c]
jae 0x408960
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x58]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x68]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
je 0x4088c0
mov esi, dword [ebp - 0x7c]
mov edi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x408753
mov esi, dword [ebp - 0x7c]
lea edx, [ebp - 0x50]
xor eax, eax
mov ecx, 0xf
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x408a25
mov dword [esp + 0xc], 0x407ae0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1030
mov dword [esp], esi
mov eax, dword [ebp - 0x78]
call eax
mov eax, dword [ebp - 0x88]
sub esp, 0x10
mov edx, dword [ebp - 0x84]
mov dword [0x4159e0], eax
mov eax, dword [0x4159e4]
cmp eax, edx
je 0x4089e8
mov dword [esp], eax
mov edi, dword [sym.imp.ucrtbase.dll_free]
call edi
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [0x4159e4], eax
mov dword [ebp - 0x74], 1
jmp 0x408753
mov edi, dword [sym.imp.ucrtbase.dll_free]
jmp 0x4089d7
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00407fc0
jmp 0x4088a9
movq xmm0, qword [0x4128c0]
movq qword [ebp - 0x44], xmm0
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x102b
mov dword [esp], esi
mov eax, dword [ebp - 0x78]
call eax
sub esp, 0x10
jmp 0x40897f