Function at 0x101778b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x838], eax
mov eax, dword [ebp + 0x18]
or eax, 0x20019
mov dword [ebp - 0x874], ecx
push eax
push edx
push ecx
lea ecx, [ebp - 0x850]
mov dword [ebp - 0x870], edx
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x84c], 0
mov dword [ebp - 0x848], 0xffffffff
mov dword [ebp + 0x18], eax
call fcn.10058810
test eax, eax
jne 0x1017823c
push ebx
push esi
push edi
mov ebx, dword [ebp - 0x848]
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x820], 0x400
cmp ebx, 0xffffffff
je 0x101779ca
cmp eax, ebx
jb 0x101779ca
cmp dword [ebp - 0x850], 0
je 0x101779ca
mov edi, eax
sub edi, ebx
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1017796a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
test eax, eax
je 0x101779a2
lea ecx, [ebp - 0x858]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x820]
push ecx
lea ecx, [ebp - 0x804]
push ecx
mov ecx, dword [ebp - 0x850]
push edi
push ecx
call eax
jmp 0x10177aff
mov ecx, dword [ebp - 0x850]
lea eax, [ebp - 0x858]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x804]
push eax
push edi
push ecx
jmp 0x10177af9
or ebx, 0xffffffff
mov edi, 0x103
mov dword [ebp - 0x848], ebx
mov ebx, dword [ebp - 0x84c]
test ebx, ebx
je 0x10177a77
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101779fc
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
test eax, eax
je 0x10177a30
lea ecx, [ebp - 0x858]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x820]
push ecx
lea ecx, [ebp - 0x804]
push ecx
push dword [ebp - 0x830]
push ebx
call eax
jmp 0x10177a58
lea eax, [ebp - 0x858]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x830]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test esi, esi
je 0x10177a65
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 0x103
jne 0x10177b0c
mov eax, dword [ebp - 0x830]
mov ebx, dword [ebp - 0x850]
test ebx, ebx
je 0x10177b0c
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x820], 0x400
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10177aab
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
test eax, eax
je 0x10177adb
lea ecx, [ebp - 0x858]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x820]
push ecx
lea ecx, [ebp - 0x804]
push ecx
push 0
push ebx
call eax
jmp 0x10177aff
lea eax, [ebp - 0x858]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test esi, esi
je 0x10177b0c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x10178239
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x804]
test eax, 0xffff0000
jne 0x10177c30
push edi
mov ecx, 0x1025bea0
movzx ebx, ax
call fcn.101beff4
mov esi, eax
mov edi, 1
test esi, esi
je 0x10177c62
mov eax, ebx
shr eax, 4
inc eax
mov dword [ebp - 0x828], eax
push 0
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x10177b82
push ebx
push eax
push esi
call fcn.10003980
add esp, 0xc
test eax, eax
jne 0x10177ba0
push edi
mov ecx, 0x1025bea0
call fcn.101beff4
mov esi, eax
inc edi
test esi, esi
je 0x10177c62
mov eax, dword [ebp - 0x828]
jmp 0x10177b63
test esi, esi
je 0x10177c62
push 6
push dword [ebp - 0x828]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10177c62
push ebx
push eax
push esi
call fcn.10003980
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10177c62
mov ecx, dword [ebp - 0x818]
movzx edx, word [esi]
mov edi, edx
mov ebx, edx
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, edi
or edx, eax
jge 0x10177c07
push edi
lea ecx, [ebp - 0x818]
call fcn.10003310
movzx ebx, word [esi]
mov ecx, dword [ebp - 0x818]
movzx edx, bx
lea eax, [esi + 2]
push edx
push eax
push edi
push ecx
call fcn.101eb860
mov eax, dword [ebp - 0x818]
add esp, 0x10
xor ecx, ecx
mov dword [eax - 0xc], edi
mov eax, dword [ebp - 0x818]
mov word [eax + edi*2], cx
jmp 0x10177c62
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10177c40
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x818]
call fcn.10003740
mov eax, dword [ebp - 0x818]
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 0x10177c8e
push esi
lea ecx, [ebp - 0x818]
call fcn.10003310
mov eax, dword [ebp - 0x818]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.101ef780
mov eax, dword [ebp - 0x818]
xor ecx, ecx
add esp, 8
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x818]
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x818]
cmp dword [eax - 0xc], ecx
je 0x1017820f
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
push dword [ebp - 0x818]
add eax, 0x10
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x840], eax
call fcn.10002490
mov esi, dword [ebp - 0x824]
cmp dword [esi - 0xc], 0
jge 0x10177cf6
or edi, 0xffffffff
jmp 0x10177d13
push 0x1020abd4
push esi
call sub.msvcrt.dll_wcsstr
mov edi, eax
add esp, 8
test edi, edi
jne 0x10177d0f
or edi, 0xffffffff
jmp 0x10177d13
sub edi, esi
sar edi, 1
cmp dword [esi - 0xc], 0
jge 0x10177d1e
or eax, 0xffffffff
jmp 0x10177d39
push 0x1020abd8
push esi
call sub.msvcrt.dll_wcsstr
add esp, 8
test eax, eax
jne 0x10177d35
or eax, 0xffffffff
jmp 0x10177d39
sub eax, esi
sar eax, 1
cmp edi, 0xffffffff
je 0x10177d8a
cmp eax, 0xffffffff
je 0x10177d8a
sub eax, edi
lea ecx, [ebp - 0x824]
inc eax
push eax
push edi
lea eax, [ebp - 0x86c]
push eax
call fcn.10006530
push eax
lea ecx, [ebp - 0x824]
call fcn.10002790
mov edx, dword [ebp - 0x86c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10177d84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x824]
lea eax, [ebp - 0x814]
push eax
push esi
call dword [sym.imp.ole32.dll_IIDFromString]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x10177db5
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x840]
call fcn.10002790
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10177dcd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x10177e3f
mov eax, dword [ebp - 0x818]
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 0x10177dfd
push esi
lea ecx, [ebp - 0x818]
call fcn.10003310
mov eax, dword [ebp - 0x818]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.101ef780
mov eax, dword [ebp - 0x818]
xor ecx, ecx
add esp, 8
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x818]
mov word [eax + esi*2], cx
lea eax, [ebp - 0x840]
mov ecx, dword [ebp - 0x838]
push eax
call fcn.1007d4f0
push 0
push 0x10202940
mov ecx, eax
call fcn.10003740
push dword [ebp - 0x870]
lea ecx, [ebp - 0x834]
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x860], 0xffffffff
call fcn.10002490
mov eax, dword [ebp - 0x818]
lea ecx, [ebp - 0x834]
push dword [eax - 0xc]
push eax
call fcn.10002970
lea ecx, [ebp - 0x868]
call fcn.10008220
mov eax, dword [ebp - 0x874]
cmp eax, 0x80000000
jne 0x10177ff7
push str.SOFTWAREClasses
lea ecx, [ebp - 0x82c]
call fcn.10002490
mov edi, dword [ebp - 0x834]
test edi, edi
je 0x10177f81
cmp word [edi], 0x5c
je 0x10177f60
mov esi, dword [ebp - 0x82c]
mov ebx, 0x10202944
push 1
sub ebx, esi
mov dword [ebp - 0x878], 0x10202944
push 0x10202944
mov eax, dword [esi - 0xc]
sar ebx, 1
mov dword [ebp - 0x828], eax
call fcn.101e6fd0
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
add esp, 8
mov dword [ebp - 0x87c], eax
add eax, dword [ebp - 0x828]
sub ecx, eax
or edx, ecx
jge 0x10177f27
push eax
lea ecx, [ebp - 0x82c]
call fcn.10003310
mov esi, dword [ebp - 0x82c]
mov eax, dword [ebp - 0x828]
lea ecx, [esi + ebx*2]
cmp ebx, eax
jbe 0x10177f3a
mov ecx, dword [ebp - 0x878]
mov ebx, dword [ebp - 0x87c]
lea eax, [esi + eax*2]
push ebx
push ecx
push ebx
push eax
call fcn.10008010
mov eax, dword [ebp - 0x828]
add esp, 0x10
add eax, ebx
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10177f65
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x82c]
call fcn.10002970
push dword [ebp + 0x18]
mov esi, dword [ebp - 0x82c]
lea eax, [ebp - 0x868]
push esi
push reloc.OLEAUT32.dll_SysReAllocString
push eax
mov ecx, eax
call fcn.1000a260
push dword [ebp + 0x18]
mov ebx, eax
lea ecx, [ebp - 0x868]
push esi
push SysReAllocString
lea eax, [ebp - 0x864]
push eax
call fcn.1000a260
test ebx, ebx
je 0x10177fdd
test eax, eax
je 0x10177fdd
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10178012
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10178012
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1017801a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1017801a
push dword [ebp + 0x18]
mov edi, dword [ebp - 0x834]
push edi
push eax
lea eax, [ebp - 0x868]
push eax
mov ecx, eax
call fcn.1000a260
mov ebx, eax
test ebx, ebx
jne 0x101781ce
push 0x10202940
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x81c]
push eax
call fcn.10060900
mov esi, dword [ebp - 0x81c]
mov ecx, 1
add esp, 0xc
mov eax, dword [esi - 8]
mov ebx, dword [esi - 0xc]
sub eax, ebx
sub ecx, dword [esi - 4]
or ecx, eax
jge 0x10178061
push ebx
lea ecx, [ebp - 0x81c]
call fcn.10003310
mov esi, dword [ebp - 0x81c]
lea eax, [ebx + 1]
push eax
push esi
call fcn.101ef780
xor eax, eax
mov dword [esi - 0xc], ebx
add esp, 8
mov word [esi + ebx*2], ax
lea eax, [ebp - 0x81c]
mov ecx, eax
push eax
call fcn.10002790
cmp dword [ebp + 0x14], 0
je 0x101780b6
mov ecx, dword [ebp - 0x838]
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x818]
push eax
call fcn.1007d4f0
mov ecx, eax
call fcn.10002790
mov esi, dword [ebp - 0x81c]
jmp 0x101781b6
mov esi, dword [ebp - 0x81c]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x101781b6
jns 0x101780ce
or ebx, 0xffffffff
jmp 0x101780eb
push 0x1020abd4
push esi
call sub.msvcrt.dll_wcsstr
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x101780e7
or ebx, 0xffffffff
jmp 0x101780eb
sub ebx, esi
sar ebx, 1
cmp dword [esi - 0xc], 0
jge 0x101780f6
or eax, 0xffffffff
jmp 0x10178111
push 0x1020abd8
push esi
call sub.msvcrt.dll_wcsstr
add esp, 8
test eax, eax
jne 0x1017810d
or eax, 0xffffffff
jmp 0x10178111
sub eax, esi
sar eax, 1
cmp ebx, 0xffffffff
je 0x1017814f
cmp eax, 0xffffffff
je 0x1017814f
sub eax, ebx
lea ecx, [ebp - 0x81c]
inc eax
push eax
push ebx
lea eax, [ebp - 0x880]
push eax
call fcn.10006530
push eax
lea ecx, [ebp - 0x81c]
call fcn.10002790
lea ecx, [ebp - 0x880]
call fcn.10007e10
mov esi, dword [ebp - 0x81c]
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x83c]
push eax
push esi
call fcn.1007f9a0
add esp, 8
test eax, eax
je 0x10178198
mov ecx, dword [ebp - 0x838]
lea eax, [ebp - 0x83c]
push eax
call fcn.1007d4f0
push 0
push 0x10202940
mov ecx, eax
call fcn.10003740
mov edx, dword [ebp - 0x83c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101781b6
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 0x101781ce
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 0x101781e6
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x868]
call fcn.10008220
mov edx, dword [ebp - 0x840]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017820f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x818]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017822d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x830]
inc eax
jmp 0x10177920
pop edi
pop esi
pop ebx
lea ecx, [ebp - 0x850]
call fcn.10008220
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret