Function at 0x1007dc50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
or eax, 0x20019
mov dword [ebp - 0x840], ecx
push eax
push edx
push ecx
lea ecx, [ebp - 0x820]
mov dword [ebp - 0x83c], edx
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0xffffffff
mov dword [ebp + 0x10], eax
call fcn.10058810
test eax, eax
jne 0x1007e145
push ebx
mov ebx, dword [ebp - 0x818]
push esi
push edi
mov ecx, dword [ebp - 0x820]
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x80c], 0x400
cmp ebx, 0xffffffff
je 0x1007dd5c
cmp eax, ebx
jb 0x1007dd5c
test ecx, ecx
je 0x1007dd5c
mov edi, eax
sub edi, ebx
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1007dd03
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
test eax, eax
je 0x1007dd3b
lea ecx, [ebp - 0x838]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x80c]
push ecx
lea ecx, [ebp - 0x804]
push ecx
mov ecx, dword [ebp - 0x820]
push edi
push ecx
call eax
jmp 0x1007deaa
lea eax, [ebp - 0x838]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
push edi
jmp 0x1007de9d
or ebx, 0xffffffff
mov edi, 0x103
cmp dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], ebx
je 0x1007de1a
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1007dd8d
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
test eax, eax
je 0x1007ddc7
lea ecx, [ebp - 0x838]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x80c]
push ecx
lea ecx, [ebp - 0x804]
push ecx
push dword [ebp - 0x810]
mov ecx, dword [ebp - 0x81c]
push ecx
call eax
jmp 0x1007ddf5
mov ecx, dword [ebp - 0x81c]
lea eax, [ebp - 0x838]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x810]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test esi, esi
je 0x1007de02
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 0x103
jne 0x1007deb7
mov eax, dword [ebp - 0x810]
mov ecx, dword [ebp - 0x820]
test ecx, ecx
je 0x1007deb7
mov ebx, eax
mov dword [ebp - 0x80c], 0x400
mov dword [ebp - 0x818], ebx
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1007de4a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
test eax, eax
je 0x1007de80
lea ecx, [ebp - 0x838]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x80c]
push ecx
lea ecx, [ebp - 0x804]
push ecx
mov ecx, dword [ebp - 0x820]
push 0
push ecx
call eax
jmp 0x1007deaa
lea eax, [ebp - 0x838]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
mov ecx, dword [ebp - 0x820]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test esi, esi
je 0x1007deb7
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x1007e142
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x808]
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x804]
push eax
call fcn.10023e80
test al, al
jne 0x1007df15
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1007def3
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x808]
call fcn.10003740
mov eax, dword [ebp - 0x808]
cmp dword [eax - 0xc], 0
jne 0x1007df29
lea edx, [eax - 0x10]
jmp 0x1007e121
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x828], eax
lea eax, [ebp - 0x828]
push eax
push dword [ebp - 0x808]
call fcn.1007f9a0
add esp, 8
test eax, eax
je 0x1007dfca
mov eax, dword [ebp - 0x808]
mov edx, 1
mov ecx, dword [eax - 8]
mov esi, dword [eax - 0xc]
sub ecx, esi
sub edx, dword [eax - 4]
or edx, ecx
jge 0x1007df83
push esi
lea ecx, [ebp - 0x808]
call fcn.10003310
mov eax, dword [ebp - 0x808]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.101ef780
mov eax, dword [ebp - 0x808]
add esp, 8
xor ecx, ecx
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x808]
mov word [eax + esi*2], cx
lea eax, [ebp - 0x828]
mov ecx, dword [ebp - 0x830]
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.1007d4f0
mov ecx, eax
call fcn.10002790
jmp 0x1007e0fa
push dword [ebp - 0x83c]
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x84c], 0xffffffff
call fcn.10002490
mov eax, dword [ebp - 0x808]
lea ecx, [ebp - 0x82c]
push dword [eax - 0xc]
push eax
call fcn.10002970
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x82c]
lea ecx, [ebp - 0x854]
push edi
push dword [ebp - 0x840]
call fcn.10058810
test eax, eax
jne 0x1007e0d7
push 0x10202940
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x844]
push eax
call fcn.10060900
mov esi, dword [ebp - 0x844]
add esp, 0xc
cmp dword [esi - 0xc], 0
je 0x1007e0bf
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x824], eax
lea eax, [ebp - 0x824]
push eax
push esi
call fcn.1007f9a0
add esp, 8
test eax, eax
je 0x1007e0a1
mov ecx, dword [ebp - 0x830]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.1007d4f0
mov ecx, eax
call fcn.10002790
mov edx, dword [ebp - 0x824]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007e0bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1007e0d7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1007e0ef
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x854]
call fcn.10008220
mov edx, dword [ebp - 0x828]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007e118
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x808]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007e136
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x810]
inc eax
jmp 0x1007dcc6
pop edi
pop esi
pop ebx
lea ecx, [ebp - 0x820]
call fcn.10008220
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x10