Function at 0x10124d8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x1018144]
mov edx, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x24]
test eax, eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x428], edx
mov edx, dword [ebp + 0x30]
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], edx
je 0x1012ca7
and dword [eax], 0
test edi, edi
je 0x1012ca7
test ecx, ecx
je 0x1012ca7
cmp dword [ebp + 0xc], 2
je 0x1012558
push 7
jmp 0x1012ca9
push edi
call fcn.010111ae
test eax, eax
jne 0x1012569
push 5
jmp 0x1012ca9
test esi, esi
je 0x1012ca7
cmp dword [ebp - 0x428], 0
je 0x1012ca7
cmp dword [ebp - 0x42c], 0
je 0x1012ca7
lea eax, [ebp - 0x404]
push eax
push 0x200
push edi
call fcn.01014365
xor esi, esi
cmp eax, esi
jne 0x1012caa
lea eax, [ebp - 0x40c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x404]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1012ca3
cmp dword [ebp + 0x20], esi
je 0x1012625
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x40c]
call fcn.010145e8
test eax, eax
jne 0x10125f6
inc esi
jmp 0x1012c8f
push esi
push esi
push esi
push 0x10
push 1
push dword [ebp - 0x424]
push edi
push dword [ebp + 0x20]
call fcn.010110ff
push dword [ebp - 0x424]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, esi
je 0x1012625
mov esi, edi
jmp 0x1012c8f
mov edi, 0x4e20
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov dword [ebp - 0x414], eax
je 0x1012c9f
lea ecx, [ebp - 0x408]
push ecx
push eax
lea eax, [ebp - 0x418]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x1001eb8
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], edi
call esi
test eax, eax
je 0x1012685
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x414]
jmp 0x1012810
mov eax, dword [ebp - 0x408]
add eax, 0x30
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x414]
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001e9c
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], edi
call esi
test eax, eax
jne 0x101266e
mov eax, dword [ebp - 0x408]
add dword [ebp - 0x410], eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x414]
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001e80
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], edi
call esi
test eax, eax
jne 0x101266e
mov eax, dword [ebp - 0x408]
add dword [ebp - 0x410], eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x414]
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001e60
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], edi
call esi
test eax, eax
jne 0x101266e
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 0x410]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x414]
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001e4c
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], edi
call esi
test eax, eax
jne 0x101266e
mov eax, dword [ebp - 0x408]
add dword [ebp - 0x410], eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x414]
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001da4
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], edi
call esi
test eax, eax
jne 0x101266e
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 0x410]
lea eax, [ecx + eax + 3]
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x408]
push eax
mov dword [ebp - 0x408], edi
mov edi, dword [ebp - 0x414]
push edi
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001d90
push dword [ebp - 0x40c]
call esi
test eax, eax
je 0x101281d
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x17
jmp 0x1012ca9
mov eax, dword [edi]
mov edi, dword [ebp - 0x410]
add edi, dword [ebp - 0x408]
push dword [ebp - 0x414]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x410], edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, dword [ebp + 0x14]
mov eax, dword [ebp - 0x420]
mov cx, word [ebp - 0x41c]
mov dword [eax], edi
mov eax, dword [ebp - 0x434]
mov word [eax], cx
ja 0x1012c8c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1012c8c
mov eax, dword [ebp - 0x410]
cmp eax, 0x30
lea edi, [ebx + 0x30]
jb 0x1012c10
add eax, 0xffffffd0
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001eb8
push dword [ebp - 0x40c]
call esi
test eax, eax
jne 0x1012c10
push dword [ebp - 0x440]
mov dword [ebx + 4], edi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1012c1c
mov eax, dword [ebp - 0x408]
sub dword [ebp - 0x410], eax
add edi, eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001e9c
push dword [ebp - 0x40c]
call esi
test eax, eax
jne 0x1012c10
mov eax, dword [ebp - 0x408]
sub dword [ebp - 0x410], eax
mov dword [ebx + 0xc], edi
add edi, eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001e80
push dword [ebp - 0x40c]
call esi
test eax, eax
jne 0x1012c10
mov eax, dword [ebp - 0x408]
sub dword [ebp - 0x410], eax
add edi, eax
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001e60
push dword [ebp - 0x40c]
call esi
test eax, eax
jne 0x1012c10
mov eax, dword [ebp - 0x408]
add edi, eax
sub dword [ebp - 0x410], eax
je 0x1012c10
and word [edi], 0
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x444]
push ecx
lea ecx, [ebp - 0x448]
push ecx
lea ecx, [ebp - 0x454]
push ecx
inc edi
lea ecx, [ebp - 0x450]
push ecx
inc edi
mov ecx, edi
sub ecx, eax
sar ecx, 1
push ecx
push eax
call fcn.010147a5
test eax, eax
je 0x1012c1c
mov eax, dword [ebp - 0x410]
dec eax
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x408]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001e4c
push dword [ebp - 0x40c]
call esi
test eax, eax
jne 0x1012c10
mov dword [ebx + 0x2c], edi
add edi, dword [ebp - 0x408]
mov eax, dword [ebx + 0x2c]
lea ecx, [ebp - 0x44c]
push ecx
push dword [ebp - 0x41c]
sub edi, eax
sar edi, 1
push edi
push eax
call fcn.01014923
test eax, eax
je 0x1012c1c
push 4
pop edi
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001e38
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], edi
call esi
test eax, eax
jne 0x1012c10
mov eax, dword [ebp - 0x414]
cmp eax, 1
mov dword [ebx], eax
jne 0x1012c1c
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001e24
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], edi
call esi
test eax, eax
jne 0x1012c10
mov eax, dword [ebp - 0x414]
cmp eax, dword [ebp - 0x444]
mov dword [ebx + 8], eax
jne 0x1012c1c
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001e0c
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], edi
call esi
test eax, eax
jne 0x1012c10
mov eax, dword [ebp - 0x414]
cmp eax, 1
mov dword [ebx + 0x10], eax
jg 0x1012c1c
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001dfc
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], edi
call esi
test eax, eax
jne 0x1012c10
mov eax, dword [ebp - 0x414]
cmp eax, 1
mov dword [ebx + 0x14], eax
jg 0x1012c1c
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001de0
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], edi
call esi
test eax, eax
jne 0x1012c10
mov eax, dword [ebp - 0x414]
cmp eax, 1
mov dword [ebx + 0x18], eax
jg 0x1012c1c
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001dcc
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], edi
call esi
test eax, eax
jne 0x1012c10
cmp dword [ebp - 0x408], edi
jne 0x1012c1c
mov eax, dword [ebp - 0x414]
push 8
pop esi
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0x1001f30
push dword [ebp - 0x40c]
mov dword [ebp - 0x408], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1012c14
push 0x17
jmp 0x1012c8e
cmp dword [ebp - 0x408], esi
je 0x1012c20
push 0x16
jmp 0x1012c8e
mov eax, dword [ebp - 0x41c]
push dword [ebp - 0x40c]
lea esi, [ebp - 0x438]
lea edi, [ebx + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x30
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x1012c51
push 2
jmp 0x1012ca9
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x430]
sub eax, ebx
mov dword [ecx], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x428]
sub eax, ebx
mov dword [ecx], eax
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp - 0x42c]
sub eax, ebx
mov dword [ecx], eax
mov eax, dword [ebp - 0x420]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x43c]
mov dword [ecx], eax
xor eax, eax
jmp 0x1012caa
push 2
pop esi
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1012caa
push 0xc
jmp 0x1012c8e
push 0x10
jmp 0x1012ca9
push 6
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100abd2
leave
ret 0x2c