Function at 0x1001d150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043845
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10059084]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1001d193
lock inc dword [eax]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001d1a9
lock inc dword [eax]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.1001c0a0
mov esi, dword [ebp - 0x14]
test al, al
jne 0x1001d1cb
or edi, 0xffffffff
jmp 0x1001d294
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push 0
push ecx
mov ecx, edi
call dword [eax + 8]
or edi, 0xffffffff
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1001d294
xor edi, edi
mov dword [ebp - 0x14], edi
test ebx, ebx
je 0x1001d1fe
push ebx
push edi
call fcn.1002c458
add esp, 8
mov dword [ebp - 0x14], eax
mov edi, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], ebx
test esi, esi
je 0x1001d25a
mov eax, dword [esi + 8]
test eax, eax
je 0x1001d219
cmp word [eax], 0
jne 0x1001d25f
test esi, esi
je 0x1001d25a
mov eax, dword [esi + 4]
test eax, eax
je 0x1001d25a
cmp byte [eax], 0
je 0x1001d25a
cmp dword [esi + 8], 0
jne 0x1001d24e
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002c463
add esp, 4
mov dword [esi + 8], eax
mov ecx, esi
call fcn.1001e290
mov eax, dword [esi + 8]
jmp 0x1001d25f
mov eax, 0x10052714
lea ecx, [ebp - 0x1c]
push ecx
push edi
lea ecx, [ebp - 0x20]
push ecx
push 0
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1001d32e
or edi, 0xffffffff
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.1002ba5e
add esp, 4
or ebx, 0xffffffff
test esi, esi
je 0x1001d2ce
mov eax, ebx
lock xadd dword [esi], eax
jne 0x1001d2ce
mov eax, dword [esi + 4]
test eax, eax
je 0x1001d2b3
push eax
call fcn.1002ba5e
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x1001d2c3
push eax
call fcn.1002ba5e
add esp, 4
push 0x14
push esi
call fcn.10025ac5
add esp, 8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001d30e
lock xadd dword [eax], ebx
dec ebx
jne 0x1001d30e
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x1001d30e
mov eax, dword [esi + 4]
test eax, eax
je 0x1001d2f3
push eax
call fcn.1002ba5e
add esp, 4
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1001d303
push ecx
call fcn.1002ba5e
add esp, 4
push 0x14
push esi
call fcn.10025ac5
add esp, 8
mov eax, edi
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.10025a94
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp - 0x1c]
test edi, edi
jle 0x1001d27f
cmp edi, ebx
cmovl ebx, edi
push ebx
mov ebx, dword [ebp - 0x14]
push ebx
push dword [ebp - 0x28]
call fcn.10027920
add esp, 0xc
jmp 0x1001d282