Function at 0x10176d80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x884
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x820], eax
mov eax, esi
push edi
mov edi, dword [ebp + 0x20]
or eax, 0x2001f
push eax
push ebx
mov dword [ebp - 0x858], ecx
push ecx
lea ecx, [ebp - 0x850]
mov dword [ebp - 0x840], ebx
mov dword [ebp - 0x86c], edi
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x84c], 0
mov dword [ebp - 0x848], 0xffffffff
mov dword [ebp - 0x854], eax
call fcn.10058810
test eax, eax
jne 0x10177892
cmp dword [ebp + 0x18], 1
jne 0x10176e35
test edi, edi
je 0x10176e1d
mov eax, dword [edi]
lea ecx, [ebp - 0x850]
push 0
push dword [ebp - 0x820]
push ecx
push edi
call dword [eax + 0x28]
push dword [ebp - 0x820]
lea ecx, [ebp - 0x850]
call fcn.100588d0
mov edi, eax
jmp 0x10176ece
lea ecx, [ebp - 0x83c]
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x838], 0
or esi, 0x20019
mov dword [ebp - 0x834], 0xffffffff
call fcn.10008220
mov eax, dword [ebp - 0x850]
mov edi, 2
mov ebx, edi
test eax, eax
je 0x10176e8d
push esi
push dword [ebp - 0x820]
push eax
lea eax, [ebp - 0x83c]
push eax
mov ecx, eax
call fcn.1000a260
mov edi, eax
mov eax, dword [ebp - 0x84c]
test eax, eax
je 0x10176eb3
push esi
push dword [ebp - 0x820]
lea ecx, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x838]
push eax
call fcn.1000a260
mov ebx, eax
test edi, edi
je 0x10176ebb
test ebx, ebx
jne 0x10176ebd
xor edi, edi
lea ecx, [ebp - 0x83c]
call fcn.10008220
mov ebx, dword [ebp - 0x840]
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
cmp dword [ebp - 0x858], 0x80000002
mov dword [ebp - 0x828], eax
mov eax, str.HKLM_
je 0x10176ef9
mov eax, str.HKCU_
push 5
push eax
lea ecx, [ebp - 0x828]
call fcn.10003740
or esi, 0xffffffff
test edi, edi
jne 0x10176fba
push dword [ebp - 0x820]
lea ecx, [ebp - 0x81c]
push ebx
call fcn.10002490
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.10007e90
add esp, 0xc
push eax
lea eax, [ebp - 0x82c]
push eax
call fcn.10007f40
add esp, 0xc
push 0x10204674
push edi
push edi
push dword [eax]
push dword [ebp + 0x1c]
call fcn.10026170
mov ecx, eax
call fcn.1002b410
mov edx, dword [ebp - 0x82c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10176f80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x808]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10176f9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x81c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10176fba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov dword [ebp - 0x814], esi
mov ecx, dword [ebp - 0x848]
mov ebx, dword [ebp - 0x850]
mov dword [ebp - 0x818], 0x400
cmp ecx, 0xffffffff
je 0x10177012
cmp esi, ecx
jb 0x10177012
test ebx, ebx
je 0x10177012
lea eax, [ebp - 0x860]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x804]
push eax
mov eax, esi
sub eax, ecx
push eax
push ebx
call fcn.10023d70
mov edi, eax
jmp 0x10177176
mov eax, dword [ebp - 0x84c]
mov edi, 0x103
mov dword [ebp - 0x848], 0xffffffff
mov dword [ebp - 0x808], eax
test eax, eax
je 0x101770e1
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1017704b
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
test eax, eax
je 0x10177085
lea ecx, [ebp - 0x860]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x818]
push ecx
lea ecx, [ebp - 0x804]
push ecx
mov ecx, dword [ebp - 0x814]
push ecx
push dword [ebp - 0x808]
call eax
jmp 0x101770b3
mov ecx, dword [ebp - 0x814]
lea eax, [ebp - 0x860]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x804]
push eax
push ecx
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test esi, esi
je 0x101770c0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x84c], 0
je 0x101770d5
cmp edi, 0x103
jne 0x10177170
mov ebx, dword [ebp - 0x850]
mov esi, dword [ebp - 0x814]
test ebx, ebx
je 0x10177170
mov dword [ebp - 0x848], esi
mov dword [ebp - 0x818], 0x400
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1017710f
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
test eax, eax
je 0x1017713f
lea ecx, [ebp - 0x860]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x818]
push ecx
lea ecx, [ebp - 0x804]
push ecx
push 0
push ebx
call eax
jmp 0x10177163
lea eax, [ebp - 0x860]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x818]
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 0x10177170
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x814]
test edi, edi
jne 0x10177874
cmp esi, 0x3e8
jge 0x10177874
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
lea esi, [eax + 0x10]
lea eax, [ebp - 0x804]
mov dword [ebp - 0x80c], esi
test eax, 0xffff0000
jne 0x101772ab
push edi
mov ecx, 0x1025bea0
call fcn.101beff4
mov edi, eax
mov ebx, 1
test edi, edi
je 0x101772dc
lea ecx, [ebp - 0x804]
movzx eax, cx
shr eax, 4
inc eax
mov dword [ebp - 0x808], eax
lea ecx, [ecx]
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x10177208
lea edx, [ebp - 0x804]
movzx ecx, dx
push ecx
push eax
push edi
call fcn.10003980
add esp, 0xc
test eax, eax
jne 0x10177226
push ebx
mov ecx, 0x1025bea0
call fcn.101beff4
mov edi, eax
inc ebx
test edi, edi
je 0x101772dc
mov eax, dword [ebp - 0x808]
jmp 0x101771e0
test edi, edi
je 0x101772dc
push 6
push dword [ebp - 0x808]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, eax
test ecx, ecx
je 0x101772dc
lea edx, [ebp - 0x804]
movzx eax, dx
push eax
push ecx
push edi
call fcn.10003980
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x101772dc
movzx ecx, word [ebx]
mov eax, dword [esi - 8]
mov edi, ecx
mov edx, ecx
sub eax, edi
mov ecx, 1
sub ecx, dword [esi - 4]
or ecx, eax
jge 0x1017728e
push edi
lea ecx, [ebp - 0x80c]
call fcn.10003310
movzx edx, word [ebx]
mov esi, dword [ebp - 0x80c]
movzx ecx, dx
lea eax, [ebx + 2]
push ecx
push eax
push edi
push esi
call fcn.101eb860
add esp, 0x10
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x101772dc
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101772b4
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x80c]
call fcn.10003740
mov esi, dword [ebp - 0x80c]
push dword [ebp - 0x840]
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0xffffffff
call fcn.10002490
push dword [esi - 0xc]
lea ecx, [ebp - 0x824]
push esi
call fcn.10002970
lea ecx, [ebp - 0x83c]
call fcn.10008220
mov eax, dword [ebp - 0x858]
cmp eax, 0x80000000
jne 0x1017749a
push str.SOFTWAREClasses
lea ecx, [ebp - 0x81c]
call fcn.10002490
mov eax, dword [ebp - 0x824]
test eax, eax
je 0x1017741e
cmp word [eax], 0x5c
je 0x101773fd
mov edi, dword [ebp - 0x81c]
mov ebx, 0x10202944
push 1
sub ebx, edi
mov dword [ebp - 0x864], 0x10202944
push 0x10202944
mov eax, dword [edi - 0xc]
sar ebx, 1
mov dword [ebp - 0x808], eax
call fcn.101e6fd0
mov ecx, dword [edi - 8]
mov edx, 1
sub edx, dword [edi - 4]
add esp, 8
mov dword [ebp - 0x868], eax
add eax, dword [ebp - 0x808]
sub ecx, eax
or edx, ecx
jge 0x101773be
push eax
lea ecx, [ebp - 0x81c]
call fcn.10003310
mov edi, dword [ebp - 0x81c]
mov eax, dword [ebp - 0x808]
lea ecx, [edi + ebx*2]
cmp ebx, eax
jbe 0x101773d1
mov ecx, dword [ebp - 0x864]
mov ebx, dword [ebp - 0x868]
lea eax, [edi + eax*2]
push ebx
push ecx
push ebx
push eax
call fcn.10008010
mov eax, dword [ebp - 0x808]
add esp, 0x10
add eax, ebx
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x824]
mov edx, eax
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10177402
sub edx, edi
lea ecx, [ebp - 0x81c]
sar edx, 1
push edx
push eax
call fcn.10002970
push dword [ebp - 0x854]
mov edi, dword [ebp - 0x81c]
lea eax, [ebp - 0x83c]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
push eax
mov ecx, eax
call fcn.1000a260
push dword [ebp - 0x854]
mov ebx, eax
lea ecx, [ebp - 0x83c]
push edi
push SysReAllocString
lea eax, [ebp - 0x838]
push eax
call fcn.1000a260
test ebx, ebx
je 0x10177480
test eax, eax
je 0x10177480
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x101774b7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x101774b7
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x101774bf
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x101774bf
push dword [ebp - 0x854]
push dword [ebp - 0x824]
push eax
lea eax, [ebp - 0x83c]
push eax
mov ecx, eax
call fcn.1000a260
mov ebx, eax
test ebx, ebx
jne 0x10177821
push 0x10202940
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x82c]
push eax
call fcn.10060900
mov edi, dword [ebp - 0x82c]
mov ecx, 1
add esp, 0xc
mov eax, dword [edi - 8]
mov ebx, dword [edi - 0xc]
sub eax, ebx
sub ecx, dword [edi - 4]
or ecx, eax
jge 0x10177506
push ebx
lea ecx, [ebp - 0x82c]
call fcn.10003310
mov edi, dword [ebp - 0x82c]
lea eax, [ebx + 1]
push eax
push edi
call fcn.101e7180
add esp, 8
mov dword [edi - 0xc], ebx
xor eax, eax
lea ecx, [ebp - 0x810]
mov word [edi + ebx*2], ax
push dword [ebp - 0x820]
call fcn.10002490
mov eax, dword [ebp - 0x810]
mov edx, 1
mov ecx, dword [eax - 8]
mov ebx, dword [eax - 0xc]
sub ecx, ebx
sub edx, dword [eax - 4]
or edx, ecx
jge 0x10177559
push ebx
lea ecx, [ebp - 0x810]
call fcn.10003310
mov eax, dword [ebp - 0x810]
lea ecx, [ebx + 1]
push ecx
push eax
call fcn.101e7180
mov eax, dword [ebp - 0x810]
xor ecx, ecx
add esp, 8
mov dword [eax - 0xc], ebx
mov word [eax + ebx*2], cx
mov ecx, 1
mov eax, dword [esi - 8]
mov ebx, dword [esi - 0xc]
sub eax, ebx
sub ecx, dword [esi - 4]
or ecx, eax
jge 0x1017759b
push ebx
lea ecx, [ebp - 0x80c]
call fcn.10003310
mov esi, dword [ebp - 0x80c]
lea eax, [ebx + 1]
push eax
push esi
call fcn.101e7180
xor eax, eax
mov dword [esi - 0xc], ebx
add esp, 8
mov word [esi + ebx*2], ax
cmp dword [edi - 0xc], eax
jl 0x101775d2
push dword [ebp - 0x810]
push edi
call sub.msvcrt.dll_wcsstr
add esp, 8
test eax, eax
je 0x101775d2
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x10177600
cmp dword [esi - 0xc], 0
jl 0x101777e8
push dword [ebp - 0x810]
push esi
call sub.msvcrt.dll_wcsstr
add esp, 8
test eax, eax
je 0x101777e8
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x101777e8
lea ecx, [ebp - 0x83c]
call fcn.10008220
cmp dword [ebp + 0x18], 1
jne 0x10177733
mov ecx, dword [ebp - 0x86c]
test ecx, ecx
je 0x1017762f
mov eax, dword [ecx]
lea edx, [ebp - 0x850]
push 0
push esi
push edx
push ecx
call dword [eax + 0x28]
push esi
lea ecx, [ebp - 0x850]
call fcn.100588d0
test eax, eax
jne 0x10177733
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 0x840]
lea ecx, [ebp - 0x878]
call fcn.10002490
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x874]
push eax
call fcn.10007e90
add esp, 0xc
push eax
lea eax, [ebp - 0x870]
push eax
call fcn.10007e90
add esp, 0xc
push 0x10204674
push 0
push 0
push dword [eax]
push dword [ebp + 0x1c]
call fcn.10026170
mov ecx, eax
call fcn.1002b410
mov edx, dword [ebp - 0x870]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101776bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x874]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101776d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x878]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101776f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x810]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10177713
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1017782a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1017782a
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 0x840]
lea ecx, [ebp - 0x884]
call fcn.10002490
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x880]
push eax
call fcn.10007e90
add esp, 0xc
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.10007e90
add esp, 0xc
push 0x10204674
push 0
push 0
push dword [eax]
push dword [ebp + 0x1c]
call fcn.10026170
mov ecx, eax
call fcn.1002b410
mov edx, dword [ebp - 0x87c]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101777ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x880]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101777c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x884]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101777eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x101777eb
or ebx, 0xffffffff
mov edx, dword [ebp - 0x810]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10177808
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10177824
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10177824
or ebx, 0xffffffff
inc dword [ebp - 0x814]
mov edx, dword [ebp - 0x824]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10177847
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x83c]
call fcn.10008220
mov eax, ebx
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10177869
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x814]
jmp 0x10176fc2
mov edx, dword [ebp - 0x828]
or esi, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10177892
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x850]
call fcn.10008220
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret