Function at 0x40ade0
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, 0x70
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
cmp word [ecx], 0
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x34], eax
je 0x40b47a
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40ae08
mov edi, dword [ebp - 0x5c]
mov esi, dword [sym.imp.ucrtbase.dll_malloc]
sub eax, edi
mov dword [ebp - 0x54], esi
add eax, 0xe
mov dword [esp], eax
call esi
mov ebx, eax
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40ae30
sub eax, dword [ebp - 0x5c]
sar eax, 1
add eax, 7
mov edi, dword [ebp - 0x5c]
mov dword [esp + 8], 0x411c10
mov dword [esp + 4], eax
mov dword [esp + 0xc], edi
mov dword [esp], ebx
call fcn.0040a800
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x44]
mov edx, ebx
call fcn.0040ad50
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
mov dword [ebp - 0x58], eax
call eax
mov esi, dword [ebp - 0x54]
mov dword [esp], 0x200
call esi
mov dword [esp], 0x800
mov dword [ebp - 0x28], eax
call esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], 0x800
mov dword [ebp - 0x3c], 0x100
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x10], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
je 0x40af30
cmp eax, 0xea
jne 0x40b2d8
mov ebx, dword [ebp - 0x1c]
cmp ebx, dword [ebp - 0x38]
jbe 0x40b110
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], eax
jmp 0x40aeb0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, 0x411c90
test ecx, ecx
je 0x40af50
cmp word [ecx], 0
jne 0x40b270
nop
add eax, 2
cmp word [eax], 0
jne 0x40af50
sub eax, 0x411c90
mov ecx, dword [ebp - 0x34]
mov edx, 0x411c90
sar eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x44]
call fcn.0040ad50
mov edi, dword [ebp - 0x10]
cmp esi, 1
je 0x40b090
cmp esi, 4
je 0x40b138
cmp esi, 3
jne 0x40b142
mov ebx, 0x411c84
lea esi, [esi]
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x40afa0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
mov edx, 0x411c84
call fcn.0040ad50
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40b0f6
sub ebx, 0x411c84
sar ebx, 1
add edi, ebx
mov eax, dword [ebp - 0x30]
lea esi, [eax - 1]
lea eax, [eax + eax*2]
add eax, eax
mov dword [ebp - 0x4c], esi
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
mov esi, eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
xor ecx, ecx
mov edx, edi
xor ebx, ebx
mov edi, ecx
jmp 0x40b00c
add ebx, 1
cmp ebx, dword [ebp - 0x30]
jae 0x40b0e1
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], edx
movzx eax, byte [eax + ebx]
mov dword [esp + 8], str._02x
mov dword [esp + 4], 3
mov dword [esp + 0xc], eax
lea eax, [esi + edi*2]
mov dword [esp], eax
call fcn.0040a800
add eax, edi
cmp ebx, dword [ebp - 0x4c]
je 0x40b0e1
mov edx, 0x2c
xor ecx, ecx
lea edi, [eax + 1]
mov word [esi + eax*2], dx
mov edx, dword [ebp - 0x24]
mov word [esi + eax*2 + 2], cx
add edx, 3
cmp edx, 0x4c
jbe 0x40b000
mov edi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
mov edx, esi
mov eax, edi
call fcn.0040ad50
mov ecx, dword [ebp - 0x34]
mov edx, str._r_n
mov eax, edi
xor edi, edi
call fcn.0040ad50
mov edx, 2
jmp 0x40b000
mov ecx, dword [ebp - 0x30]
mov eax, ecx
shr eax, 1
sub eax, 1
test ecx, ecx
cmove eax, ecx
lea ecx, [ebp - 0x10]
mov edx, eax
mov eax, dword [ebp - 0x2c]
call fcn.00409d10
mov ebx, eax
mov eax, dword [ebp - 0x10]
lea edi, [eax + 3]
lea eax, [edi + edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
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.0040a800
mov dword [esp], ebx
mov eax, dword [ebp - 0x58]
call eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
mov edx, esi
call fcn.0040ad50
mov dword [esp], esi
mov eax, dword [ebp - 0x58]
call eax
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x44]
mov edx, 0x411be2
call fcn.0040ad50
add dword [ebp - 0x48], 1
jmp 0x40aeb0
mov eax, dword [ebp - 0x3c]
lea ebx, [eax + eax]
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x28], eax
jmp 0x40aeb0
cmp dword [ebp - 0x30], 4
je 0x40b427
mov dword [esp], 0x1e
mov eax, dword [ebp - 0x54]
call eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.hex__x_:
mov ebx, eax
mov dword [esp + 4], 0xf
mov dword [esp], eax
call fcn.0040a800
mov ecx, dword [ebp - 0x34]
mov edx, ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x44]
call fcn.0040ad50
mov dword [esp], ebx
mov edx, dword [ebp - 0x58]
call edx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40b0f6
mov eax, dword [ebp - 0x34]
add edi, dword [ebp - 0x24]
test eax, eax
jne 0x40afce
cmp esi, 2
je 0x40b1ab
cmp esi, 7
jne 0x40afce
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40b45b
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x1c], 0
mov ebx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
shr esi, 1
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
mov edx, dword [ebp - 0x54]
sub esp, 0x20
mov dword [ebp - 0x30], eax
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0xc], esi
mov dword [ebp - 0x50], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
mov ebx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x54]
sub esp, 0x20
lea eax, [ebx - 1]
mov dword [ebp - 0x4c], eax
lea eax, [ebx + ebx*2]
add eax, eax
mov dword [esp], eax
call edx
mov esi, eax
test ebx, ebx
jne 0x40afec
jmp 0x40b0e1
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x10]
call fcn.00409d10
mov ebx, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 4]
lea eax, [edx + edx]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
mov edx, dword [ebp - 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x411c22
mov edi, eax
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040a800
mov ecx, dword [ebp - 0x34]
mov edx, edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x44]
call fcn.0040ad50
mov dword [esp], edi
mov edi, dword [ebp - 0x58]
call edi
mov dword [esp], ebx
call edi
jmp 0x40af73
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x58]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call edi
mov dword [esp], 0x202
mov eax, dword [ebp - 0x54]
call eax
mov ebx, eax
mov eax, dword [ebp - 0x5c]
cmp word [eax], 0
je 0x40b46e
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40b310
sub eax, dword [ebp - 0x5c]
sar eax, 1
mov dword [ebp - 0x28], eax
xor esi, esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x101
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x40b418
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x54]
lea edx, [edi + eax + 2]
lea eax, [edx + edx]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call ecx
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], str._s_s
mov edi, eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.0040a800
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x40b3f0
mov dword [esp], edi
mov eax, dword [ebp - 0x58]
add esi, 1
call eax
jmp 0x40b323
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x10]
mov ecx, edi
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
call fcn.0040ade0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40b3da
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 0x58]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp eax
mov dword [esp], 0x1e
mov eax, dword [ebp - 0x54]
call eax
mov esi, eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [esp + 8], str.dword:_08x
mov dword [esp + 4], 0xf
mov dword [esp + 0xc], eax
mov dword [esp], esi
call fcn.0040a800
jmp 0x40b0e1
mov dword [esp], 0
mov eax, dword [ebp - 0x54]
call eax
mov esi, eax
jmp 0x40b0e1
mov dword [ebp - 0x28], 0
jmp 0x40b321
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0xe
mov dword [ebp - 0x54], eax
call eax
mov ebx, eax
mov eax, 7
jmp 0x40ae41