Function at 0x10021b20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x100512b1
mov eax, dword fs:[0]
push eax
mov eax, 0x107c
call fcn.10038740
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0x1078], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100638a4]
xor eax, esp
push eax
lea eax, [esp + 0x1090]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10ac]
mov esi, dword [esp + 0x10a0]
mov edi, dword [esp + 0x10a4]
mov ebp, dword [esp + 0x10a8]
push 0x7fe
xor ebx, ebx
lea edx, [esp + 0x892]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0x400
mov word [esp + 0x898], cx
call fcn.10038ae0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x890]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push edi
push esi
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10021d09
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], ax
lea eax, [esp + 0x88c]
mov dword [esp + 0x1098], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10021bf6
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x890]
push ecx
lea ecx, [esp + 0x48]
call fcn.10009330
mov edx, dword [esp + 0x54]
push ebx
push 0x1005b784
push edx
push ebx
lea ecx, [esp + 0x50]
call fcn.1000f680
test eax, eax
je 0x10021cf5
push 1
push ebx
push 0x100553fc
lea ecx, [esp + 0x4c]
xor edi, edi
call fcn.10021280
cmp eax, 0xffffffff
je 0x10021c5d
inc eax
push eax
push ebx
lea ecx, [esp + 0x48]
call fcn.10008f70
mov edi, 1
push 1
push ebx
push 0x100553fc
lea ecx, [esp + 0x4c]
call fcn.10021280
cmp eax, 0xffffffff
je 0x10021c80
inc eax
push eax
push ebx
lea ecx, [esp + 0x48]
call fcn.10008f70
inc edi
push 1
push ebx
push 0x100553fc
lea ecx, [esp + 0x4c]
call fcn.10021280
mov esi, eax
cmp esi, 0xffffffff
je 0x10021cd8
push esi
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
call fcn.100219c0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
mov byte [esp + 0x10a4], 1
call fcn.10009230
lea ecx, [esp + 0x24]
mov byte [esp + 0x1098], bl
call fcn.10010e30
inc esi
push esi
push ebx
lea ecx, [esp + 0x48]
call fcn.10008f70
inc edi
push 1
push ebx
push 0x100553fc
lea ecx, [esp + 0x4c]
call fcn.10021280
mov esi, eax
cmp esi, 0xffffffff
jne 0x10021d33
cmp edi, 3
je 0x10021d38
cmp dword [esp + 0x58], 8
jb 0x10021d09
mov edx, dword [esp + 0x44]
push edx
call fcn.100386ec
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1090]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1078]
xor ecx, esp
call fcn.10038723
add esp, 0x1088
ret
cmp edi, 3
jne 0x10021d4d
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call fcn.10009230
jmp 0x10021d92
push esi
push ebx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
call fcn.100219c0
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
push eax
mov byte [esp + 0x10a4], 2
call fcn.10009230
lea ecx, [esp + 0x24]
mov byte [esp + 0x1098], bl
call fcn.10010e30
inc esi
push esi
push ebx
lea ecx, [esp + 0x48]
call fcn.10008f70
mov esi, dword [esp + 0x14]
push 0x417
lea eax, [esp + 0x479]
push ebx
push eax
mov byte [esp + 0x480], bl
call fcn.10038ae0
push 0x417
lea ecx, [esp + 0x6d]
push ebx
push ecx
mov byte [esp + 0x74], bl
call fcn.10038ae0
add esp, 0x18
mov dword [esp + 0x18], 0x418
mov edi, 8
cmp dword [esp + 0x1c], ebx
jbe 0x10021e83
cmp dword [esi + 0x18], edi
jb 0x10021de4
mov eax, dword [esi + 4]
jmp 0x10021de7
lea eax, [esi + 4]
push ebx
push ebx
push 0x400
lea edx, [esp + 0x480]
push edx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x474]
lea edx, [eax + 1]
jmp 0x10021e10
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10021e10
sub eax, edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x60]
push edx
push eax
lea eax, [esp + 0x480]
push eax
call fcn.1002f070
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.1002f480
add esp, 0x18
cmp eax, ebx
jl 0x10021e4d
mov byte [esp + eax + 0x5c], bl
jmp 0x10021e51
mov byte [esp + 0x5c], bl
push 0x800
lea eax, [esp + 0x890]
push ebx
push eax
call fcn.10038ae0
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x890]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x68]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x88c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10021e90
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x890]
push eax
mov ecx, esi
call fcn.10009330
cmp dword [esp + 0x58], edi
jb 0x10021ec2
mov ecx, dword [esp + 0x44]
push ecx
call fcn.100386ec
add esp, 4
mov eax, 1
jmp 0x10021d0b