Function at 0x101a7a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push 0x20019
push eax
mov dword [ebp - 0x828], ecx
lea ecx, [ebp - 0x81c]
push edx
mov dword [ebp - 0x820], esi
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0xffffffff
call fcn.10058810
test eax, eax
jne 0x101a7d98
push ebx
push 0x800
push eax
lea eax, [ebp - 0x804]
push eax
call sub.msvcrt.dll_memset
mov ebx, dword [ebp - 0x814]
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x808], 0x400
mov dword [ebp - 0x80c], esi
push edi
mov eax, dword [ebp - 0x81c]
cmp ebx, 0xffffffff
je 0x101a7b34
cmp esi, ebx
jb 0x101a7b34
test eax, eax
je 0x101a7b34
mov edi, esi
sub edi, ebx
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101a7aed
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3f
call fcn.10003680
add esp, 4
push 0
push 0
push 0
push 0
test eax, eax
je 0x101a7b20
lea ecx, [ebp - 0x808]
push ecx
lea ecx, [ebp - 0x804]
push ecx
mov ecx, dword [ebp - 0x81c]
push edi
push ecx
call eax
jmp 0x101a7c5e
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
push edi
jmp 0x101a7c51
or ebx, 0xffffffff
mov edi, 0x103
cmp dword [ebp - 0x818], 0
mov dword [ebp - 0x814], ebx
je 0x101a7be0
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101a7b65
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3f
call fcn.10003680
add esp, 4
push 0
push 0
push 0
push 0
test eax, eax
je 0x101a7b9a
lea ecx, [ebp - 0x808]
push ecx
lea ecx, [ebp - 0x804]
push ecx
push dword [ebp - 0x80c]
mov ecx, dword [ebp - 0x818]
push ecx
call eax
jmp 0x101a7bbb
mov ecx, dword [ebp - 0x818]
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x80c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test esi, esi
je 0x101a7bc8
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 0x103
jne 0x101a7c6b
mov esi, dword [ebp - 0x80c]
mov eax, dword [ebp - 0x81c]
test eax, eax
je 0x101a7c6b
mov ebx, esi
mov dword [ebp - 0x808], 0x400
mov dword [ebp - 0x814], ebx
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101a7c10
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3f
call fcn.10003680
add esp, 4
push 0
push 0
push 0
push 0
test eax, eax
je 0x101a7c41
lea ecx, [ebp - 0x808]
push ecx
lea ecx, [ebp - 0x804]
push ecx
mov ecx, dword [ebp - 0x81c]
push 0
push ecx
call eax
jmp 0x101a7c5e
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
mov ecx, dword [ebp - 0x81c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test esi, esi
je 0x101a7c6b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x101a7d96
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x101a7d64
mov ecx, dword [ebp - 0x828]
lea eax, [ebp - 0x804]
push eax
call fcn.101a8220
test al, al
je 0x101a7d64
mov eax, dword [ebp - 0x820]
mov edi, dword [eax + 4]
mov esi, dword [eax]
cmp esi, edi
je 0x101a7cfa
mov ecx, dword [esi]
lea eax, [ebp - 0x804]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x101a7ce6
test dx, dx
je 0x101a7ce2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x101a7ce6
add ecx, 4
add eax, 4
test dx, dx
jne 0x101a7cc0
xor eax, eax
jmp 0x101a7ceb
sbb eax, eax
or eax, 1
test eax, eax
je 0x101a7cf6
add esi, 4
cmp esi, edi
jne 0x101a7cb1
cmp esi, edi
jne 0x101a7d64
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x824]
call fcn.10002490
mov eax, dword [ebp - 0x820]
mov esi, dword [ebp - 0x824]
mov edi, dword [eax + 4]
cmp dword [eax + 8], edi
je 0x101a7d3d
lea eax, [esi - 0x10]
push eax
call fcn.10002a60
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov eax, dword [ebp - 0x820]
add dword [eax + 4], 4
jmp 0x101a7d4c
lea ecx, [ebp - 0x824]
push ecx
push edi
mov ecx, eax
call fcn.1001ddd0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x101a7d64
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x80c]
lea eax, [ebp - 0x804]
push 0x800
push 0
inc esi
mov dword [ebp - 0x808], 0x400
push eax
mov dword [ebp - 0x80c], esi
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x101a7ac0
pop edi
pop ebx
lea ecx, [ebp - 0x81c]
call fcn.10008220
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0xc