Function at 0x10012b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057de0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x10074068]
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 dword [ebp - 0x68], edx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
mov dword [ebp - 4], ecx
mov byte [ebp - 0x59], cl
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], ecx
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.10012980
mov ebx, dword [ebp - 0x74]
add esp, 4
test ebx, ebx
je 0x10012d07
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
push eax
push 0
lea eax, [ebp - 0x60]
push eax
push 0
push str.ExternalDirs
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10012d07
cmp dword [ebp - 0x60], 7
jne 0x10012d07
mov eax, dword [ebp - 0x64]
shr eax, 1
mov dword [ebp - 0x64], eax
cmp eax, 2
jbe 0x10012d07
push ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.1000cb20
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x1c]
push eax
push esi
push ecx
lea ecx, [ebp - 0x74]
call fcn.100148a0
test eax, eax
jne 0x10012ccd
mov eax, dword [ebp - 0x64]
xor ecx, ecx
add eax, 0xfffffffe
mov word [ebp - 0x58], cx
push eax
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
call fcn.1000b7d0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.10007a70
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x10012cc9
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10012cbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012e56
push edx
push ecx
call fcn.10036da6
add esp, 8
mov byte [ebp - 0x59], 1
mov byte [ebp - 4], 1
test esi, esi
je 0x10012d07
mov eax, dword [ebp - 0x14]
sub eax, esi
sar eax, 1
lea ecx, [eax + eax]
mov eax, esi
cmp ecx, 0x1000
jb 0x10012cfd
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012e5b
push ecx
push esi
call fcn.10036da6
add esp, 8
cmp dword [ebp - 0x30], 0
je 0x10012df6
push 1
xor eax, eax
mov dword [ebp - 0x18], 0
push eax
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.1000b130
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
sub esp, 0x14
mov dword [ebp - 0x60], esp
mov edi, esp
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
lea esi, [ecx + eax*2]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
lea ecx, [edi + 0x10]
sub esi, eax
mov dword [ebp - 0x64], eax
mov eax, esi
mov dword [ebp - 0x60], ecx
sar eax, 1
mov dword [edi], 0
mov dword [ecx], eax
cmp eax, 8
jbe 0x10012d8f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003719c
mov dword [edi], eax
add esp, 4
mov edi, eax
push esi
push dword [ebp - 0x64]
push edi
call fcn.10038950
mov eax, dword [ebp - 0x60]
add esp, 0xc
mov ecx, edi
mov eax, dword [eax]
push dword [ebp - 0x68]
push eax
lea edx, [edi + eax*2]
call fcn.10013dd0
mov ecx, dword [ebp - 0x68]
lea edx, [ebp - 0x40]
add esp, 8
call fcn.10013040
mov edx, dword [ebp - 0x14]
add esp, 0x18
cmp edx, 8
jb 0x10012df6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10012dec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012e60
push edx
push ecx
call fcn.10036da6
add esp, 8
test ebx, ebx
je 0x10012e01
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10012e37
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10012e2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012e65
push edx
push ecx
call fcn.10036da6
add esp, 8
mov al, byte [ebp - 0x59]
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.10036d72
mov esp, ebp
pop ebp
ret
call fcn.1003be19
call fcn.1003be19
call fcn.1003be19
call fcn.1003be19
int3