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

Disassembly:
jmp 0x1000a850
push 0xffffffffffffffff
push 0x1007cef2
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x100a0000]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100a0000]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x468]
mov ebp, dword [esp + 0x46c]
mov esi, ebx
xor edi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1000a8a0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x268]
push eax
push 0
sub esi, ecx
push 0x80000003
sar esi, 1
mov dword [esp + 0x3c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1000ab62
test eax, eax
jne 0x1000ab2d
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], eax
mov word [esp + 0x3c], ax
mov dword [esp + 0x460], eax
mov dword [esp + 0x14], eax
cmp word [esp + 0x254], ax
jne 0x1000a916
xor ecx, ecx
jmp 0x1000a92f
lea ecx, [esp + 0x254]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000a920
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x44]
call fcn.10003adf
push 0x15
push str.Volatile_Environment
lea ecx, [esp + 0x44]
call fcn.10002987
cmp dword [esp + 0x50], 8
lea ecx, [esp + 0x14]
push ecx
push 0x20019
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push 0
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000ab0f
push 0x1fe
push eax
mov word [esp + 0x5c], ax
lea eax, [esp + 0x5e]
push eax
call fcn.100535f0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push str.APPDATA
push dword [esp + 0x28]
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000aa54
push esi
lea eax, [esp + 0x58]
push eax
push ebx
call fcn.1006895a
add esp, 0xc
test eax, eax
je 0x1000aa54
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
cmp word [esp + 0x54], ax
jne 0x1000aa00
xor ecx, ecx
jmp 0x1000aa16
lea ecx, [esp + 0x54]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000aa07
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x2c]
call fcn.10003adf
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
mov byte [esp + 0x464], 1
call fcn.10003053
cmp dword [esp + 0x38], 8
mov byte [esp + 0x460], 0
jb 0x1000aa54
push dword [esp + 0x24]
call fcn.10052462
add esp, 4
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push str.LOCALAPPDATA
push dword [esp + 0x28]
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000ab05
push esi
lea eax, [esp + 0x58]
push eax
push ebx
call fcn.1006895a
add esp, 0xc
test eax, eax
je 0x1000ab05
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
cmp word [esp + 0x54], ax
je 0x1000aacf
lea eax, [esp + 0x54]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000aac0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x2c]
call fcn.10003adf
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
mov byte [esp + 0x464], 2
call fcn.10003053
cmp dword [esp + 0x38], 8
jb 0x1000ab05
push dword [esp + 0x24]
call fcn.10052462
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x50], 8
mov dword [esp + 0x460], 0xffffffff
jb 0x1000ab2d
push dword [esp + 0x3c]
call fcn.10052462
add esp, 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x268]
push eax
inc edi
push edi
push 0x80000003
mov dword [esp + 0x3c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x1000a8e4
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.10052ab4
add esp, 0x450
ret