Function at 0x1017a7a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x444], ebx
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1017a7e4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x2f
call fcn.10003680
add esp, 4
test eax, eax
je 0x1017a7ff
lea ecx, [ebp - 0x428]
push ecx
push ebx
push edi
call eax
jmp 0x1017a80e
lea eax, [ebp - 0x428]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edi, eax
test esi, esi
je 0x1017a81b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x1017ac3b
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x420], ebx
mov edi, dword [ebp - 0x428]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1017a85c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3b
call fcn.10003680
add esp, 4
push 0x103
test eax, eax
je 0x1017a87c
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push edi
call eax
jmp 0x1017a88b
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, eax
test esi, esi
je 0x1017a898
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x1017abfb
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x444]
lea eax, [ebp - 0x418]
push 0x102040c0
push eax
call fcn.10002cb0
push 0x208
lea eax, [ebp - 0x414]
push edi
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp - 0x430]
lea eax, [ebp - 0x448]
add esp, 0x1c
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x448], 0x208
push 0x20219
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x10202940
push dword [ebp - 0x418]
push esi
call fcn.100585c0
test eax, eax
jne 0x1017abcd
mov eax, dword [ebp - 0x42c]
cmp eax, 1
je 0x1017a94e
cmp eax, 2
je 0x1017a94e
cmp eax, 7
jne 0x1017abcd
lea eax, [ebp - 0x450]
push esi
push eax
call fcn.100dbb30
mov edi, eax
add esp, 8
mov ecx, dword [edi]
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x1017a972
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jne 0x1017a97e
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, 1
sub ecx, dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x41c], esi
mov edi, dword [eax - 0xc]
mov eax, dword [esi - 8]
lea ebx, [edi + 1]
sub eax, ebx
or ecx, eax
jge 0x1017a9bf
push ebx
lea ecx, [ebp - 0x41c]
call fcn.10003310
mov esi, dword [ebp - 0x41c]
add edi, edi
push edi
push dword [ebp - 0x424]
push edi
push esi
call fcn.10004510
lea ecx, [edi + esi]
add esp, 0x10
test ecx, ecx
jne 0x1017a9eb
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.101e6c20
jmp 0x1017a9f4
mov ax, word [0x10202944]
mov word [ecx], ax
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x1017aa0d
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x1017aa19
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ebx, dword [esi - 0xc]
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x44c], ebx
lea edi, [eax + 0x10]
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], edi
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x424], eax
lea edx, [ebx + eax]
mov eax, dword [edi - 8]
sub eax, edx
or ecx, eax
jge 0x1017aa67
push edx
lea ecx, [ebp - 0x41c]
call fcn.10003310
mov edi, dword [ebp - 0x41c]
add ebx, ebx
push ebx
push esi
push ebx
push edi
call fcn.10004510
mov eax, dword [ebp - 0x424]
add eax, eax
push eax
push dword [ebp - 0x418]
push eax
lea eax, [ebx + edi]
push eax
call fcn.10004510
mov eax, dword [ebp - 0x44c]
add esp, 0x20
add eax, dword [ebp - 0x424]
xor ecx, ecx
mov dword [edi - 0xc], eax
push edi
mov word [edi + eax*2], cx
mov ecx, dword [ebp - 0x434]
call fcn.100d06f0
test eax, eax
sete bl
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1017aacc
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or eax, 0xffffffff
lea edx, [esi - 0x10]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017aae4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x450]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017ab02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x1017abc7
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x43c], eax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov edi, dword [ebp - 0x430]
add eax, 0x10
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x440], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1017ab50
sub eax, edx
lea ecx, [ebp - 0x43c]
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10003740
mov ecx, dword [ebp - 0x434]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.1017b190
mov edx, dword [ebp - 0x438]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017aba9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x43c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017abc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x420]
mov edx, dword [ebp - 0x418]
inc ebx
mov dword [ebp - 0x420], ebx
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1017a840
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1017a840
mov edi, dword [ebp - 0x428]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1017ac17
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x44
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x1017ac2a
call eax
jmp 0x1017ac30
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1017ac3b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8