Function at 0x1009222
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
push 0x1009360
call fcn.010015a0
mov dword [ebp - 0x1c], 0x57
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
call fcn.010136e5
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x102197d
mov edi, 0x1002538
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x7c]
lea ecx, [ebp - 0x24]
push ecx
push 1
push 0
push 0x1005760
push eax
mov ebx, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
call ebx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10219bf
cmp dword [ebp - 0x1c], 2
jne 0x1021b5e
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10092bb
test dword [eax + 0x1c], 0x40000
je 0x10092bb
cmp byte [eax + 0x19], 4
jb 0x10092bb
push edi
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
lea eax, [ebp - 0x20]
push eax
push 0xf003f
mov ecx, dword [esi + 8]
call fcn.0100250b
push eax
push 0
call fcn.01005a3a
mov dword [ebp - 0x1c], eax
cmp eax, 2
jne 0x1021a04
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x100931c
test dword [eax + 0x1c], 0x40000
je 0x100931c
cmp byte [eax + 0x19], 4
jb 0x100931c
mov ecx, dword [esi + 8]
call fcn.0100250b
push eax
push edi
push 0x2b
mov eax, dword [0x1040184]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
mov eax, dword [0x1040184]
and dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
call fcn.01009381
cmp eax, 0x1040184
je 0x1009353
test dword [eax + 0x1c], 0x40000
je 0x1009353
cmp byte [eax + 0x19], 4
jb 0x1009353
push dword [ebp - 0x1c]
push edi
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
mov eax, dword [ebp - 0x1c]
call fcn.01001580
ret 4
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x100925c
test dword [eax + 0x1c], 0x40000
je 0x100925c
mov edi, 0x1002538
cmp byte [eax + 0x19], 2
jb 0x1009261
push dword [ebp - 0x1c]
push edi
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x1009261
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10219e8
test dword [eax + 0x1c], 0x40000
je 0x10219e8
cmp byte [eax + 0x19], 4
jb 0x10219e8
push edi
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
xor eax, eax
push eax
push eax
push eax
push eax
push 0x101034c
push dword [ebp - 0x24]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
jmp 0x1009288
cmp dword [ebp - 0x1c], 0
je 0x1021a3c
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1009320
test dword [eax + 0x1c], 0x40000
je 0x1009320
cmp byte [eax + 0x19], 2
jb 0x1009320
push dword [ebp - 0x1c]
push edi
push 0x2c
jmp 0x1021cca
lea eax, [ebp - 0x28]
push eax
push 1
push 0
push 0x1005760
push 0x80000002
call ebx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1021a89
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1009320
test dword [eax + 0x1c], 0x40000
je 0x1009320
cmp byte [eax + 0x19], 2
jb 0x1009320
push dword [ebp - 0x1c]
push edi
push 0x2d
jmp 0x1021cca
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call fcn.01030b91
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1021b20
mov eax, dword [0x1040184]
mov ebx, 0x1040184
cmp eax, ebx
je 0x1021ad8
test dword [eax + 0x1c], 0x40000
je 0x1021ad8
cmp byte [eax + 0x19], 4
jb 0x1021ad8
mov ecx, dword [esi + 8]
call fcn.0100250b
push eax
push edi
push 0x2e
mov eax, dword [0x1040184]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
mov ecx, dword [esi + 8]
call fcn.0100250b
push eax
call fcn.01017d54
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1021cd5
mov eax, dword [0x1040184]
cmp eax, ebx
je 0x1009320
test dword [eax + 0x1c], 0x40000
je 0x1009320
cmp byte [eax + 0x19], 2
jb 0x1009320
push dword [ebp - 0x1c]
push edi
push 0x2f
jmp 0x1021cca
mov eax, dword [0x1040184]
mov ebx, 0x1040184
cmp eax, ebx
je 0x1021b74
test dword [eax + 0x1c], 0x40000
je 0x1021b74
cmp byte [eax + 0x19], 4
jb 0x1021b74
mov ecx, dword [esi + 8]
call fcn.0100250b
push eax
push dword [ebp - 0x1c]
push edi
push 0x30
mov eax, dword [0x1040184]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002a94
jmp 0x1021b74
cmp dword [ebp - 0x1c], 0
jne 0x1021c9d
mov dword [ebp - 0x2c], 1
mov ebx, 0x1040184
cmp dword [ebp - 0x20], 0
jne 0x1021bc9
lea eax, [ebp - 0x20]
push eax
push 0xf003f
mov ecx, dword [esi + 8]
call fcn.0100250b
push eax
push 1
call fcn.01005a3a
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1021bc9
mov eax, dword [0x1040184]
cmp eax, ebx
je 0x1009320
test dword [eax + 0x1c], 0x40000
je 0x1009320
cmp byte [eax + 0x19], 2
jb 0x1009320
push dword [ebp - 0x1c]
push edi
push 0x32
jmp 0x1021cca
mov ecx, dword [esi + 0xc]
call fcn.01002917
push eax
push dword [ebp - 0x20]
call fcn.010308ee
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1021c10
mov eax, dword [0x1040184]
cmp eax, ebx
je 0x1009320
test dword [eax + 0x1c], 0x40000
je 0x1009320
cmp byte [eax + 0x19], 2
jb 0x1009320
push dword [ebp - 0x1c]
push edi
push 0x33
jmp 0x1021cca
cmp dword [ebp - 0x2c], 0
je 0x1021c54
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.01030a21
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1021c54
mov eax, dword [0x1040184]
cmp eax, ebx
je 0x1009320
test dword [eax + 0x1c], 0x40000
je 0x1009320
cmp byte [eax + 0x19], 2
jb 0x1009320
push dword [ebp - 0x1c]
push edi
push 0x34
jmp 0x1021cca
xor eax, eax
push eax
push eax
push eax
push 0x1025f7c
push esi
call fcn.01030e15
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1021c97
mov eax, dword [0x1040184]
cmp eax, ebx
je 0x1009320
test dword [eax + 0x1c], 0x40000
je 0x1009320
cmp byte [eax + 0x19], 2
jb 0x1009320
push dword [ebp - 0x1c]
push edi
push 0x35
jmp 0x1021cca
and dword [ebp - 0x1c], 0
jmp 0x1021cd5
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1009320
test dword [eax + 0x1c], 0x40000
je 0x1009320
cmp byte [eax + 0x19], 2
jb 0x1009320
push dword [ebp - 0x1c]
push edi
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
mov eax, dword [0x1040184]
jmp 0x1009320