Function at 0x10002ae4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [eax + 4], 1
mov edi, ecx
mov dword [ebp - 0x40], edi
jbe 0x10002e62
mov eax, dword [eax]
xor ebx, ebx
mov dword [ebp - 0x18], eax
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], ebx
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 8]
push eax
call fcn.1000a650
push ecx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000a650
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x28]
je 0x10002e62
lea eax, [esi + 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.1000291c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0x20019
push 4
push dword [ebp - 0x30]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10002e4b
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
mov byte [ebp - 5], bl
push eax
lea eax, [ebp - 0x45c]
mov dword [ebp - 0xc], 0x208
push eax
push ebx
push dword [ebp - 0x14]
mov edi, ebx
mov dword [ebp - 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10002e4b
cmp word [ebp - 0x45c], 0x63
jne 0x10002db5
push 0x21
pop eax
cmp word [ebp - 0x45a], ax
jne 0x10002db5
lea eax, [ebp - 0x10]
mov byte [ebp - 5], 1
push eax
push 0x20019
push 4
lea eax, [ebp - 0x458]
mov dword [ebp - 0x10], ebx
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10002e43
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x210
push eax
lea eax, [ebp - 0x66c]
mov byte [ebp + 0xb], bl
push eax
push ebx
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x34], ebx
push eax
lea eax, [ebp - 0x45c]
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10002e43
push 0x21
pop eax
cmp word [ebp - 0x45a], ax
jne 0x10002d62
cmp word [ebp - 0x45c], 0x70
jne 0x10002d62
mov edx, dword [ebp - 0x66c]
test edx, edx
je 0x10002e43
mov byte [ebp + 0xb], 1
mov ecx, ebx
movsx ax, byte [ebp + ecx - 0x664]
mov word [ebp + ecx*2 - 0x45c], ax
inc ecx
cmp ecx, edx
jne 0x10002c49
lea eax, [ebp - 0x45c]
xor ecx, ecx
lea eax, [eax + edx*2]
push 0x2e
push eax
mov word [eax], cx
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
test edi, edi
je 0x10002e43
push 8
push 0x10016d24
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x20], ebx
push eax
add edi, 2
call fcn.100037d8
test eax, eax
js 0x10002e36
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], ebx
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x10002e25
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x10002e25
push str._LDR
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov ecx, dword [ebp - 0x3c]
neg eax
sbb eax, eax
add eax, 2
cmp ecx, 0xffffffed
je 0x10002e29
cmp ecx, 0xffffffef
je 0x10002e29
cmp ecx, 1
je 0x10002e29
cmp ecx, 3
je 0x10002e29
cmp ecx, 6
je 0x10002e29
jle 0x10002d45
cmp ecx, 8
jle 0x10002e16
or dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10002d55
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10002d62
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x66c]
mov dword [ebp - 0x24], 0x210
push ecx
push ebx
push ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x208
push ecx
lea ecx, [ebp - 0x45c]
inc eax
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x10002c17
cmp byte [ebp + 0xb], bl
je 0x10002e43
lea ecx, [ebp - 0x10]
call fcn.100108d9
mov edi, dword [ebp - 0x38]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x208
push eax
lea eax, [ebp - 0x45c]
inc edi
push eax
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x10002b98
cmp byte [ebp - 5], bl
je 0x10002e4b
lea ecx, [ebp - 0x14]
call fcn.100108d9
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.100110af
push ecx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000a650
mov esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x28]
je 0x10002e62
mov edi, dword [ebp - 0x40]
jmp 0x10002b37
test dword [ebp - 0x2c], eax
jne 0x10002e25
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
inc eax
jmp 0x10002e27
mov eax, ebx
mov ebx, eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10002e36
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10002e43
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x10]
call fcn.100108d9
lea ecx, [ebp - 0x14]
call fcn.100108d9
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.100110af
mov eax, ebx
jmp 0x10002e64
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14