Function at 0x1001b5f7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b4
mov eax, dword [0x101fe1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x3ac], edi
mov edx, dword [edi + 0x20]
test edx, edx
je 0x1001b843
cmp dword [ebx + 0x14], 7
mov eax, ebx
mov dword [ebp - 0x3a8], 1
mov dword [ebp - 0x3a0], 0
jbe 0x1001b644
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push 0
lea ecx, [ebp - 0x3a8]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
jne 0x1001b67a
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10033218
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x3a8]
cmp eax, 1
jne 0x1001b868
test ecx, ecx
jne 0x1001b876
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x1001b69b
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
mov eax, dword [ebp - 0x3a0]
cmp eax, 2
jbe 0x1001b741
mov edx, dword [esi + 0x14]
shr eax, 1
lea ecx, [eax - 1]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x3a4], eax
cmp ecx, eax
ja 0x1001b756
mov eax, esi
cmp edx, 7
jbe 0x1001b6d8
mov eax, dword [esi]
xor edx, edx
mov dword [esi + 0x10], ecx
mov word [eax + ecx*2], dx
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x1001b6eb
mov eax, dword [esi]
cmp dword [ebx + 0x14], 7
mov ecx, ebx
jbe 0x1001b6f5
mov ecx, dword [ebx]
lea edx, [ebp - 0x3a0]
push edx
push eax
lea eax, [ebp - 0x3a8]
push eax
push 0
push ecx
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001b87f
mov ecx, dword [ebp - 0x3a0]
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
shr ecx, 1
dec ecx
cmp ecx, edx
ja 0x1001b7d9
mov eax, esi
cmp edi, 7
jbe 0x1001b738
mov eax, dword [esi]
xor edx, edx
mov dword [esi + 0x10], ecx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10033218
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x39c], ecx
sub dword [ebp - 0x39c], eax
mov eax, edx
sub eax, dword [ebp - 0x3a4]
cmp dword [ebp - 0x39c], eax
ja 0x1001b811
mov dword [esi + 0x10], ecx
mov eax, esi
mov dword [ebp - 0x3b0], esi
cmp edx, 7
jbe 0x1001b78e
mov eax, dword [esi]
mov dword [ebp - 0x3b0], eax
mov edx, dword [ebp - 0x3a4]
lea eax, [eax + edx*2]
mov dword [ebp - 0x3a4], eax
mov eax, dword [ebp - 0x39c]
test eax, eax
je 0x1001b7c6
mov edi, dword [ebp - 0x3a4]
mov ecx, eax
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x3ac]
mov eax, dword [ebp - 0x39c]
mov ecx, dword [ebp - 0x3b0]
add eax, edx
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x1001b6e1
mov ebx, ecx
mov eax, edi
sub ebx, edx
sub eax, edx
cmp ebx, eax
ja 0x1001b82d
mov dword [esi + 0x10], ecx
cmp edi, 7
jbe 0x1001b7ef
mov esi, dword [esi]
lea edi, [esi + edx*2]
test ebx, ebx
je 0x1001b803
xor eax, eax
mov ecx, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
lea eax, [edx + ebx]
xor ecx, ecx
mov word [esi + eax*2], cx
jmp 0x1001b741
mov eax, dword [ebp - 0x39c]
mov ecx, esi
push 0
push eax
push dword [ebp - 0x3ac]
push eax
call fcn.1001a3d3
jmp 0x1001b6e1
push 0
push ebx
push dword [ebp - 0x3ac]
mov ecx, esi
push ebx
call fcn.1001a3d3
jmp 0x1001b741
push ebx
sub esp, 8
lea ecx, [ebp - 0x398]
push 0x30303030
call fcn.100626d9
push 0x101ebb90
lea eax, [ebp - 0x398]
push eax
call fcn.100357e4
cmp eax, 2
jne 0x1001b665
jmp 0x1001b689
push ebx
lea eax, [edi + 8]
push eax
push ecx
push ecx
jmp 0x1001b886
push ebx
lea ecx, [edi + 8]
push ecx
push ecx
push eax
push ecx
lea ecx, [ebp - 0x398]
call fcn.100626b7
push 0x101ebb90
lea eax, [ebp - 0x398]
push eax
call fcn.100357e4
int3