Function at 0x10178260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp + 0x14]
or eax, 0x20019
mov dword [ebp - 0x82c], 0
push eax
push ecx
push edx
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0xffffffff
call fcn.10058810
test eax, eax
jne 0x10178730
push ebx
push esi
push edi
mov ebx, dword [ebp - 0x824]
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x80c], 0x400
cmp ebx, 0xffffffff
je 0x10178351
cmp eax, ebx
jb 0x10178351
cmp dword [ebp - 0x82c], 0
je 0x10178351
mov edi, eax
sub edi, ebx
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10178303
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 0x10178336
lea ecx, [ebp - 0x80c]
push ecx
lea ecx, [ebp - 0x804]
push ecx
mov ecx, dword [ebp - 0x82c]
push edi
push ecx
call eax
jmp 0x1017845a
mov ecx, dword [ebp - 0x82c]
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
push edi
push ecx
jmp 0x10178454
or ebx, 0xffffffff
mov edi, 0x103
mov dword [ebp - 0x824], ebx
mov ebx, dword [ebp - 0x828]
test ebx, ebx
je 0x101783e8
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1017837f
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 0x101783ae
lea ecx, [ebp - 0x80c]
push ecx
lea ecx, [ebp - 0x804]
push ecx
push dword [ebp - 0x810]
push ebx
call eax
jmp 0x101783c9
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x810]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test esi, esi
je 0x101783d6
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 0x103
jne 0x10178467
mov eax, dword [ebp - 0x810]
mov ebx, dword [ebp - 0x82c]
test ebx, ebx
je 0x10178467
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x80c], 0x400
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10178418
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 0x10178443
lea ecx, [ebp - 0x80c]
push ecx
lea ecx, [ebp - 0x804]
push ecx
push 0
push ebx
call eax
jmp 0x1017845a
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test esi, esi
je 0x10178467
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x1017872d
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x804]
test eax, 0xffff0000
jne 0x1017858d
push edi
mov ecx, 0x1025bea0
movzx ebx, ax
call fcn.101beff4
mov esi, eax
mov edi, 1
test esi, esi
je 0x101785b8
mov eax, ebx
shr eax, 4
inc eax
mov dword [ebp - 0x814], eax
mov edi, edi
push 0
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x101784df
push ebx
push eax
push esi
call fcn.10003980
add esp, 0xc
test eax, eax
jne 0x101784fd
push edi
mov ecx, 0x1025bea0
call fcn.101beff4
mov esi, eax
inc edi
test esi, esi
je 0x101785b8
mov eax, dword [ebp - 0x814]
jmp 0x101784c0
test esi, esi
je 0x101785b8
push 6
push dword [ebp - 0x814]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x101785b8
push ebx
push eax
push esi
call fcn.10003980
mov esi, eax
add esp, 0xc
test esi, esi
je 0x101785b8
mov ecx, dword [ebp - 0x808]
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 0x10178564
push edi
lea ecx, [ebp - 0x808]
call fcn.10003310
movzx ebx, word [esi]
mov ecx, dword [ebp - 0x808]
movzx edx, bx
lea eax, [esi + 2]
push edx
push eax
push edi
push ecx
call fcn.101eb860
mov eax, dword [ebp - 0x808]
add esp, 0x10
xor ecx, ecx
mov dword [eax - 0xc], edi
mov eax, dword [ebp - 0x808]
mov word [eax + edi*2], cx
jmp 0x101785b8
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10178596
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]
mov esi, dword [eax - 0xc]
test esi, esi
je 0x10178709
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or edx, ecx
jge 0x101785ec
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]
xor ecx, ecx
add esp, 8
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x808]
mov word [eax + esi*2], cx
mov esi, dword [ebp - 0x81c]
mov eax, dword [ebp - 0x808]
mov esi, dword [esi]
mov ecx, esi
mov ebx, dword [esi + 4]
cmp byte [ebx + 0xd], 0
jne 0x10178678
mov edx, dword [ebx + 0x10]
mov ecx, eax
lea esp, [esp]
mov di, word [edx]
cmp di, word [ecx]
jne 0x10178656
test di, di
je 0x10178652
mov di, word [edx + 2]
cmp di, word [ecx + 2]
jne 0x10178656
add edx, 4
add ecx, 4
test di, di
jne 0x10178630
xor ecx, ecx
jmp 0x1017865b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jns 0x10178664
mov ebx, dword [ebx + 8]
jmp 0x10178668
mov esi, ebx
mov ebx, dword [ebx]
cmp byte [ebx + 0xd], 0
je 0x10178627
mov ebx, dword [ebp - 0x81c]
mov ecx, dword [ebx]
jmp 0x1017867e
mov ebx, dword [ebp - 0x81c]
cmp esi, ecx
je 0x101786b4
mov ecx, dword [esi + 0x10]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101786ab
test dx, dx
je 0x101786a7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101786ab
add eax, 4
add ecx, 4
test dx, dx
jne 0x10178685
xor eax, eax
jmp 0x101786b0
sbb eax, eax
or eax, 1
test eax, eax
jns 0x101786f4
lea eax, [ebp - 0x808]
mov ecx, ebx
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x815]
push eax
lea eax, [ebp - 0x814]
push eax
push 0x1021b652
call fcn.10076680
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [ebp - 0x830]
push eax
call fcn.100782e0
mov esi, dword [ebp - 0x830]
push 0
push 0x10202940
lea ecx, [esi + 0x14]
call fcn.10003740
mov eax, dword [ebp - 0x808]
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10178721
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x810]
inc eax
jmp 0x101782c1
pop edi
pop esi
pop ebx
lea ecx, [ebp - 0x82c]
call fcn.10008220
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret