Function at 0x40ae20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [ebp - 0x58], eax
cmp word [ecx], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x54], eax
je 0x40b4a8
mov eax, ecx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40ae50
mov edi, dword [ebp - 0x70]
sub eax, edi
add eax, 0xe
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x68], eax
call eax
mov ebx, eax
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40ae78
mov edx, dword [ebp - 0x70]
sub eax, edx
sar eax, 1
add eax, 7
mov edi, dword [ebp - 0x70]
mov dword [esp + 8], 0x411c50
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0xc], edi
call fcn.0040a850
mov ecx, dword [ebp - 0x54]
mov edx, ebx
mov eax, dword [ebp - 0x58]
call fcn.0040ad90
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
mov dword [ebp - 0x6c], eax
call eax
mov dword [esp], 0x200
mov edi, dword [ebp - 0x68]
call edi
mov dword [ebp - 0x40], eax
mov dword [esp], 0x800
call edi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0x800
mov dword [ebp - 0x4c], 0x100
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
je 0x40af70
cmp eax, 0xea
jne 0x40b250
mov ebx, dword [ebp - 0x28]
cmp dword [ebp - 0x48], ebx
jae 0x40b118
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], eax
jmp 0x40aef0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov eax, 0x411cd0
test ecx, ecx
je 0x40af98
cmp word [ecx], 0
jne 0x40b1f0
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40af98
sub eax, 0x411cd0
mov ecx, dword [ebp - 0x54]
mov edx, 0x411cd0
sar eax, 1
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x58]
call fcn.0040ad90
cmp ebx, 1
je 0x40b198
cmp ebx, 4
je 0x40b140
cmp ebx, 3
jne 0x40b14a
mov eax, 0x411cc4
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40afe0
sub eax, 0x411cc4
mov ecx, dword [ebp - 0x54]
mov edx, 0x411cc4
sar eax, 1
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x58]
call fcn.0040ad90
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x40b0f8
mov ecx, dword [ebp - 0x54]
test ecx, ecx
jne 0x40b027
cmp ebx, 2
je 0x40b3c8
cmp ebx, 7
je 0x40b3c8
mov eax, dword [ebp - 0x3c]
lea edi, [eax - 1]
lea eax, [eax + eax*2]
add eax, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
mov ebx, dword [ebp - 0x44]
mov esi, eax
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x64]
add edx, eax
lea eax, [ebx + edi]
xor edi, edi
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
mov esi, edi
mov edi, edx
add eax, ebx
mov dword [ebp - 0x64], eax
jmp 0x40b06a
mov eax, dword [ebp - 0x64]
add ebx, 1
cmp ebx, eax
je 0x40b0e0
movzx eax, byte [ebx]
mov dword [esp + 8], str._02x
mov dword [esp + 4], 3
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3c]
lea eax, [eax + esi*2]
mov dword [esp], eax
call fcn.0040a850
mov edx, dword [ebp - 0x60]
add eax, esi
cmp ebx, edx
je 0x40b0e0
mov esi, dword [0x411e4c]
add edi, 3
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + eax*2], esi
lea esi, [eax + 1]
cmp edi, 0x4c
jbe 0x40b060
mov esi, dword [ebp - 0x54]
add ebx, 1
mov edi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x3c]
mov ecx, esi
mov eax, edi
call fcn.0040ad90
mov eax, edi
mov ecx, esi
mov edx, str._r_n
call fcn.0040ad90
mov eax, dword [ebp - 0x64]
xor esi, esi
mov edi, 2
cmp ebx, eax
jne 0x40b06a
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x58]
mov edx, esi
mov ecx, dword [ebp - 0x54]
call fcn.0040ad90
mov dword [esp], esi
mov eax, dword [ebp - 0x6c]
call eax
mov ecx, dword [ebp - 0x54]
mov edx, 0x411c22
mov eax, dword [ebp - 0x58]
call fcn.0040ad90
add dword [ebp - 0x5c], 1
jmp 0x40aef0
mov eax, dword [ebp - 0x4c]
lea ebx, [eax + eax]
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], eax
jmp 0x40aef0
cmp dword [ebp - 0x3c], 4
je 0x40b394
mov dword [esp], 0x1e
mov eax, dword [ebp - 0x68]
call eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.hex__x_:
mov esi, eax
mov dword [esp + 4], 0xf
mov dword [esp], eax
call fcn.0040a850
mov ecx, dword [ebp - 0x54]
mov edx, esi
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x58]
call fcn.0040ad90
mov dword [esp], esi
mov eax, dword [ebp - 0x6c]
call eax
jmp 0x40b003
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
mov eax, edi
shr eax, 1
sub eax, 1
test edi, edi
cmove eax, edi
mov edx, eax
mov eax, dword [ebp - 0x44]
call fcn.00409e00
mov ebx, eax
mov eax, dword [ebp - 0x1c]
lea edi, [eax + 3]
lea eax, [edi + edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.__s_
mov esi, eax
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0040a850
mov dword [esp], ebx
mov eax, dword [ebp - 0x6c]
call eax
jmp 0x40b0e3
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x1c]
call fcn.00409e00
mov edi, eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 4]
lea eax, [edx + edx]
mov dword [ebp - 0x60], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x411c62
mov edx, dword [ebp - 0x60]
mov esi, eax
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040a850
mov ecx, dword [ebp - 0x54]
mov edx, esi
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x58]
call fcn.0040ad90
mov dword [esp], esi
mov esi, dword [ebp - 0x6c]
call esi
mov dword [esp], edi
call esi
jmp 0x40afbb
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov edi, dword [ebp - 0x6c]
call edi
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call edi
mov dword [esp], 0x202
mov eax, dword [ebp - 0x68]
call eax
mov ebx, eax
mov eax, dword [ebp - 0x70]
cmp word [eax], 0
je 0x40b49c
nop
add eax, 2
cmp word [eax], 0
jne 0x40b280
mov ecx, dword [ebp - 0x70]
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x40], eax
xor esi, esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x101
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x40b360
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x40]
lea edx, [ecx + eax + 2]
lea eax, [edx + edx]
mov dword [ebp - 0x3c], edx
mov dword [esp], eax
mov edx, dword [ebp - 0x68]
call edx
mov dword [esp + 0x10], ebx
mov ecx, dword [ebp - 0x70]
mov dword [esp + 8], str._s_s
mov edi, eax
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040a850
lea edx, [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x40b370
mov dword [esp], edi
add esi, 1
mov eax, dword [ebp - 0x6c]
call eax
jmp 0x40b295
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 0x6c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp eax
mov eax, dword [ebp - 0x54]
mov ecx, edi
mov dword [esp], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x58]
call fcn.0040ae20
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40b34c
mov dword [esp], 0x1e
mov eax, dword [ebp - 0x68]
call eax
mov esi, eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov dword [esp + 8], str.dword:_08x
mov dword [esp + 4], 0xf
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.0040a850
jmp 0x40b0e3
mov edx, dword [ebp - 0x44]
test edx, edx
je 0x40b489
mov edi, dword [ebp - 0x3c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov esi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
shr edi, 1
mov dword [esp + 0xc], edi
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
call esi
sub esp, 0x20
mov dword [ebp - 0x3c], eax
mov dword [esp], eax
mov edx, dword [ebp - 0x68]
call edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov ebx, eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x44]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], ecx
call esi
mov eax, dword [ebp - 0x3c]
sub esp, 0x20
lea edi, [eax - 1]
lea eax, [eax + eax*2]
add eax, eax
mov dword [esp], eax
mov edx, dword [ebp - 0x68]
call edx
mov esi, eax
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x40b03f
jmp 0x40b0e3
mov dword [esp], 0
mov eax, dword [ebp - 0x68]
call eax
mov esi, eax
jmp 0x40b0e3
mov dword [ebp - 0x40], 0
jmp 0x40b293
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0xe
mov dword [ebp - 0x68], eax
call eax
mov ebx, eax
mov eax, 7
jmp 0x40ae8b