Function at 0x100e64d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101959e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x101e40b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
mov eax, edi
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x100e650c
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
test ebx, ebx
jne 0x100e652e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
lea eax, [ebp + 0x13]
push eax
push 0x200
lea ecx, [ebp - 0x20]
mov byte [ebp + 0x13], 0
call fcn.10039b80
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
mov dword [ebp - 0x10], eax
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14], 0
jb 0x100e6572
mov eax, dword [esi]
lea edx, [ebp - 0x10]
push edx
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov eax, dword [ebp - 0x14]
test ebx, ebx
jne 0x100e6599
test eax, eax
jne 0x100e6599
mov bl, 1
jmp 0x100e666d
cmp eax, 1
je 0x100e65b1
cmp eax, 2
je 0x100e65b1
test eax, eax
je 0x100e65b1
mov ebx, 0x490
jmp 0x100e6668
cmp ebx, 0xea
jne 0x100e6600
mov ecx, dword [ebp - 0x10]
cmp ecx, 1
jbe 0x100e6668
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x13]
push eax
lea eax, [ecx + 8]
mov byte [ebp + 0x13], 0
push eax
lea ecx, [ebp - 0x20]
call fcn.10039b80
cmp dword [esi + 0x14], 8
jb 0x100e65e7
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x100e666a
mov eax, dword [ebp - 0x1c]
mov byte [ebp + 0xb], bl
cmp dword [ebp - 0x18], eax
je 0x100e661a
mov byte [eax], bl
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x100e662a
lea ecx, [ebp + 0xb]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1003aad0
mov eax, dword [ebp - 0x1c]
mov byte [ebp + 0xb], 0
cmp dword [ebp - 0x18], eax
je 0x100e663b
mov byte [eax], 0
inc dword [ebp - 0x1c]
jmp 0x100e6648
lea ecx, [ebp + 0xb]
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1003aad0
mov ecx, dword [ebp - 0x20]
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100e6650
sub edx, esi
sar edx, 1
push edx
push ecx
mov ecx, edi
call fcn.100056d0
test ebx, ebx
sete bl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x100e66bf
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100e66a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100e66a0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10177d58
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc