Function at 0x4087e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0xac
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x5c], 0
test ecx, ecx
je 0x4088c2
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb
mov dword [esp], eax
mov eax, dword [0x4156fc]
mov dword [esp + 0x38], eax
call eax
sub esp, 0x10
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x4088d0
xor ebp, ebp
xor ebx, ebx
xor edi, edi
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebp
call esi
mov dword [esp], ebx
call esi
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xb
mov dword [esp], eax
mov eax, dword [esp + 0x38]
call eax
sub esp, 0x10
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4088c2
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
add esp, 0xac
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc], 0
mov dword [0x410158], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1009
mov dword [esp], eax
mov eax, dword [esp + 0x38]
call eax
sub esp, 0x10
lea eax, [esp + 0x4c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
sub esp, 0x30
mov edi, eax
test eax, eax
jne 0x40886d
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.ucrtbase.dll_malloc]
add eax, 1
lea esi, [ecx + 1]
mov dword [esp + 0x44], eax
add eax, eax
mov dword [esp + 0x4c], esi
mov dword [esp], eax
call ebp
mov dword [esp], esi
mov ebx, eax
call ebp
mov dword [esp + 0x50], esi
mov ebp, eax
mov dword [esp + 8], 0
lea eax, [esp + 0x50]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
lea eax, [esp + 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
cmp eax, 2
je 0x408b30
mov eax, dword [esp + 0x54]
test eax, eax
je 0x408aa8
mov dword [esp + 0x3c], edi
xor esi, esi
mov edi, dword [esp + 0xc0]
jmp 0x408a3d
mov edx, dword [esp + 0x50]
cmp word [ebx], 0
mov byte [ebp + edx], 0
cmovne eax, ebx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x58]
add esi, 1
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], edi
call fcn.004080b0
cmp esi, dword [esp + 0x54]
jae 0x408aa8
mov eax, dword [esp + 0x44]
mov dword [esp + 0x58], 0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], esi
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
je 0x408a00
mov edi, dword [esp + 0x3c]
jmp 0x408873
mov edx, dword [esp + 0xcc]
lea esi, [esp + 0x60]
mov ecx, 0xf
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
test edx, edx
je 0x408b6c
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc], 0x407ba0
mov edi, 1
mov dword [esp + 4], 0x1030
mov dword [esp + 8], eax
mov dword [esp], eax
mov eax, dword [esp + 0x38]
call eax
sub esp, 0x10
mov eax, dword [esp + 0xc4]
mov dword [0x4149e0], eax
mov eax, dword [esp + 0xc8]
cmp dword [0x4149e4], eax
je 0x408873
mov dword [esp], eax
call fcn.00407e00
test eax, eax
setne al
movzx eax, al
mov edi, eax
jmp 0x408873
mov eax, dword [esp + 0xc0]
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], eax
call fcn.004080b0
jmp 0x4089e4
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc], esi
movq xmm0, qword [0x4118d0]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x102b
movq qword [esp + 0x6c], xmm0
mov dword [esp], eax
mov eax, dword [esp + 0x38]
call eax
sub esp, 0x10
jmp 0x408ac6