Function at 0x40b0b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
cmp word [ecx], 0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x38], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x3c], eax
je 0x40b7bc
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40b0e0
mov edi, dword [esp + 0x58]
sub eax, edi
add eax, 0xe
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x50], eax
call eax
mov ebx, eax
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40b108
mov edx, dword [esp + 0x58]
sub eax, edx
sar eax, 1
add eax, 7
mov edx, dword [esp + 0x58]
mov dword [esp + 8], 0x411c50
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0xc], edx
call fcn.0040ab00
mov ecx, dword [esp + 0x3c]
mov edx, ebx
mov eax, dword [esp + 0x40]
call fcn.0040b030
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
mov dword [esp + 0x54], eax
call eax
mov edi, dword [esp + 0x50]
mov dword [esp], 0x200
call edi
mov dword [esp], 0x800
mov dword [esp + 0x28], eax
call edi
mov dword [esp + 0x44], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x800
mov dword [esp + 0x34], 0x100
lea esi, [esi]
nop
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], 0
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
je 0x40b228
cmp eax, 0xea
jne 0x40b538
mov ebx, dword [esp + 0x70]
cmp dword [esp + 0x30], ebx
jae 0x40b440
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], eax
jmp 0x40b190
mov ecx, dword [esp + 0x28]
mov eax, 0x411cd0
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x78]
mov edx, dword [esp + 0x6c]
test ecx, ecx
je 0x40b250
cmp word [ecx], 0
jne 0x40b4c8
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40b250
sub eax, 0x411cd0
mov ecx, dword [esp + 0x3c]
mov edx, 0x411cd0
sar eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
call fcn.0040b030
cmp esi, 1
je 0x40b3b0
cmp esi, 4
je 0x40b470
cmp esi, 3
jne 0x40b478
mov eax, 0x411cc4
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40b2a0
sub eax, 0x411cc4
mov ecx, dword [esp + 0x3c]
mov edx, 0x411cc4
sar eax, 1
mov ebp, eax
mov eax, dword [esp + 0x40]
call fcn.0040b030
test ebx, ebx
je 0x40b41b
mov edx, dword [esp + 0x3c]
test edx, edx
jne 0x40b2e6
cmp esi, 2
je 0x40b6d6
cmp esi, 7
je 0x40b6d6
lea eax, [ebx - 1]
mov dword [esp + 0x4c], eax
lea eax, [ebx + ebx*2]
add eax, eax
mov dword [esp], eax
mov eax, dword [esp + 0x50]
call eax
mov edx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
add eax, edx
mov dword [esp + 0x48], eax
lea eax, [edx + ebx]
add edi, ebp
mov ebp, edx
mov dword [esp + 0x4c], eax
xor eax, eax
mov ebx, edi
mov edi, eax
jmp 0x40b337
mov eax, dword [esp + 0x4c]
add ebp, 1
cmp ebp, eax
je 0x40b403
movzx eax, byte [ebp]
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.0040ab00
mov ecx, dword [esp + 0x48]
add eax, edi
cmp ebp, ecx
je 0x40b403
mov edx, dword [0x411e4c]
lea edi, [eax + 1]
add ebx, 3
mov dword [esi + eax*2], edx
cmp ebx, 0x4c
jbe 0x40b328
mov ebx, dword [esp + 0x3c]
mov edx, esi
mov edi, dword [esp + 0x40]
mov ecx, ebx
mov eax, edi
call fcn.0040b030
mov ecx, ebx
mov eax, edi
mov edx, str._r_n
call fcn.0040b030
xor edi, edi
mov ebx, 2
jmp 0x40b328
lea ecx, [esp + 0x7c]
mov eax, ebx
shr eax, 1
sub eax, 1
test ebx, ebx
cmovne ebx, eax
mov eax, dword [esp + 0x2c]
mov edx, ebx
call fcn.0040a050
mov ebx, eax
mov eax, dword [esp + 0x7c]
lea edi, [eax + 3]
lea eax, [edi + edi]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
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.0040ab00
mov eax, dword [esp + 0x54]
mov dword [esp], ebx
call eax
mov eax, dword [esp + 0x40]
mov edx, esi
mov ecx, dword [esp + 0x3c]
call fcn.0040b030
mov eax, dword [esp + 0x54]
mov dword [esp], esi
call eax
mov ecx, dword [esp + 0x3c]
mov edx, 0x411c22
mov eax, dword [esp + 0x40]
call fcn.0040b030
add dword [esp + 0x44], 1
jmp 0x40b190
mov eax, dword [esp + 0x34]
lea ebx, [eax + eax]
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], eax
jmp 0x40b190
test ebx, ebx
jne 0x40b6a0
mov eax, dword [esp + 0x50]
mov dword [esp], 0x1e
call eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.hex__x_:
mov edi, eax
mov dword [esp + 4], 0xf
mov dword [esp], eax
call fcn.0040ab00
mov ecx, dword [esp + 0x3c]
mov edx, edi
mov ebp, eax
mov eax, dword [esp + 0x40]
call fcn.0040b030
mov eax, dword [esp + 0x54]
mov dword [esp], edi
call eax
jmp 0x40b2c4
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x7c]
call fcn.0040a050
mov ebp, eax
mov eax, dword [esp + 0x7c]
lea edx, [eax + 4]
lea eax, [edx + edx]
mov dword [esp + 0x48], edx
mov dword [esp], eax
mov eax, dword [esp + 0x50]
call eax
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x411c62
mov edi, eax
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040ab00
mov ecx, dword [esp + 0x3c]
mov edx, edi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
call fcn.0040b030
mov dword [esp], edi
mov edi, dword [esp + 0x54]
call edi
mov dword [esp], ebp
call edi
jmp 0x40b276
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x54]
mov dword [esp], eax
call esi
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call esi
mov eax, dword [esp + 0x50]
mov dword [esp], 0x202
call eax
mov ebx, eax
mov eax, dword [esp + 0x58]
cmp word [eax], 0
je 0x40b7af
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40b570
mov edx, dword [esp + 0x58]
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
xor esi, esi
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0x101
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
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 0x40b650
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x28]
lea edi, [edx + eax + 2]
mov edx, dword [esp + 0x50]
lea eax, [edi + edi]
mov dword [esp], eax
call edx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], str._s_s
mov ebp, eax
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call fcn.0040ab00
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x7c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x40b670
mov eax, dword [esp + 0x54]
mov dword [esp], ebp
add esi, 1
call eax
jmp 0x40b587
mov dword [esp + 0xa0], ebx
mov eax, dword [esp + 0x54]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
jmp eax
mov eax, dword [esp + 0x3c]
mov ecx, ebp
mov edx, dword [esp + 0x7c]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
call fcn.0040b0b0
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40b63d
mov eax, dword [esp + 0x50]
mov dword [esp], 0x1e
call eax
mov esi, eax
mov eax, dword [esp + 0x2c]
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.0040ab00
jmp 0x40b403
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40b79b
mov eax, dword [esp + 0x2c]
mov edi, ebx
mov dword [esp + 0x1c], 0
shr edi, 1
mov esi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0x20
mov ebx, eax
mov edx, dword [esp + 0x50]
mov dword [esp], eax
call edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
lea eax, [ebx - 1]
sub esp, 0x20
mov dword [esp + 0x4c], eax
lea eax, [ebx + ebx*2]
mov edx, dword [esp + 0x50]
add eax, eax
mov dword [esp], eax
call edx
test ebx, ebx
mov edx, dword [esp + 0x5c]
mov esi, eax
jne 0x40b301
jmp 0x40b403
mov eax, dword [esp + 0x50]
mov dword [esp], 0
call eax
mov esi, eax
jmp 0x40b403
mov dword [esp + 0x28], 0
jmp 0x40b585
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0xe
mov dword [esp + 0x50], eax
call eax
mov ebx, eax
mov eax, 7
jmp 0x40b11c