Function at 0x100165f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014b6da
mov eax, dword fs:[0]
push eax
sub esp, 0x758
mov eax, dword [0x101fe1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x764], edi
mov edx, dword [edi + 0x20]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test edx, edx
je 0x1001685f
cmp dword [esi + 0x14], 7
mov eax, esi
mov dword [ebp - 0x75c], 3
mov dword [ebp - 0x760], 0
jbe 0x10016655
mov eax, dword [esi]
lea ecx, [ebp - 0x760]
push ecx
push 0
lea ecx, [ebp - 0x75c]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x75c], 3
jne 0x1001672a
cmp eax, 2
je 0x1001672a
test eax, eax
je 0x1001674a
push 0xffffffffffffffff
xor eax, eax
mov dword [ebp - 0x3cc], 0x2b
push str.ORegistryKey.GetValue_failure:_Cannot_get_the_binary_value___s__in_registry_key__s.
mov word [ebp - 0xc4], ax
lea eax, [ebp - 0x1c4]
push 0x80
push eax
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x44], 0x30303030
call fcn.1003c308
add esp, 0x10
lea eax, [edi + 8]
mov edx, str.ORegistryKey.GetValue_failure:_Cannot_get_the_binary_value___s__in_registry_key__s.
lea ecx, [ebp - 0x28]
push eax
push esi
push 0x53
call fcn.100168b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
jbe 0x100166f3
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x3c8]
push 0x100
push eax
call fcn.1003c308
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100093c1
push 0x101ebb90
lea eax, [ebp - 0x3cc]
push eax
call fcn.100357e4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033218
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
sub ecx, eax
mov edx, dword [ebp - 0x760]
cmp edx, ecx
ja 0x10016841
jb 0x10016884
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
sub eax, ecx
mov eax, 0
cmove ecx, eax
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x1001677e
mov eax, dword [esi]
lea edx, [ebp - 0x760]
push edx
push ecx
lea ecx, [ebp - 0x75c]
push ecx
push 0
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10016858
push 0xffffffffffffffff
xor eax, eax
mov dword [ebp - 0x758], 0x2b
push str.ORegistryKey.GetValue_failure:_Cannot_get_the_binary_value___s__in_registry_key__s.
mov word [ebp - 0x450], ax
lea eax, [ebp - 0x550]
push 0x80
push eax
mov dword [ebp - 0x554], 0
mov dword [ebp - 0x3d0], 0x30303030
call fcn.1003c308
add esp, 0x10
lea eax, [edi + 8]
mov edx, str.ORegistryKey.GetValue_failure:_Cannot_get_the_binary_value___s__in_registry_key__s.
lea ecx, [ebp - 0x40]
push eax
push esi
push 0x53
call fcn.100168b0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
jbe 0x1001680a
mov eax, dword [ebp - 0x40]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x754]
push 0x100
push eax
call fcn.1003c308
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.100093c1
push 0x101ebb90
lea eax, [ebp - 0x758]
push eax
call fcn.100357e4
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
cmp edx, eax
jbe 0x1001688e
push ecx
push edx
mov ecx, ebx
call fcn.100169f1
jmp 0x10016765
mov al, 1
jmp 0x1001672c
push esi
sub esp, 8
lea ecx, [ebp - 0x3cc]
push 0x30303030
call fcn.100626d9
push 0x101ebb90
lea eax, [ebp - 0x3cc]
push eax
call fcn.100357e4
add eax, edx
mov dword [ebx + 4], eax
jmp 0x10016765
mov eax, dword [ebx + 4]
sub edx, ecx
push edx
push 0
push eax
lea edi, [edx + eax]
call fcn.10035153
mov dword [ebx + 4], edi
add esp, 0xc
mov edi, dword [ebp - 0x764]
jmp 0x10016765