Function at 0x1007671
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
push 1
call dword [sym.imp.ntdll.dll_RtlCreateEnvironment]
test eax, eax
jl 0x101bdf6
pop ebp
nop
nop
nop
nop
nop
push 0x44
push 0x10077d8
call fcn.010015a0
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x30]
push eax
push 1
push esi
push 0x1007758
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x101bcb7
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
push eax
push eax
push esi
push esi
push esi
push dword [ebp - 0x30]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x101bcf2
push dword [ebp - 0x3c]
call fcn.01001fd2
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x101bd3b
cmp dword [ebp - 0x2c], 0x1000
ja 0x101bd47
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
add eax, eax
push eax
call fcn.01001fd2
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x101bd3b
mov dword [ebp - 0x24], esi
mov ebx, 0x1007168
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumValueW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10077f4
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x48]
jae 0x100785d
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
push ecx
push 0
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x30]
call esi
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x1007b9f
cmp dword [ebp - 0x34], 0x2000
jae 0x101bd53
mov eax, dword [ebp - 0x44]
dec eax
jne 0x1007858
push 1
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.010074d4
test eax, eax
je 0x101bd62
inc dword [ebp - 0x24]
jmp 0x10077f4
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x48]
jae 0x1007b9f
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x44]
push ecx
push 0
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x30]
call esi
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x1007b9f
cmp dword [ebp - 0x34], 0x2000
jae 0x101bda1
mov eax, dword [ebp - 0x44]
dec eax
dec eax
je 0x10078b7
inc dword [ebp - 0x24]
jmp 0x1007861
push dword [ebp - 0x1c]
call fcn.010078e8
mov dword [ebp - 0x4c], eax
push 1
push eax
push dword [ebp - 0x28]
push dword [ebp + 8]
call fcn.010074d4
test eax, eax
je 0x101bdb0
lea eax, [ebp - 0x4c]
push eax
call fcn.01001fac
jmp 0x10078b2
xor esi, esi
mov dword [ebp - 4], 0xfffffffe
call fcn.01007bbd
mov eax, dword [ebp - 0x20]
call fcn.01001580
ret 4
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1007ba1
test byte [eax + 0x1c], 0x20
je 0x1007ba1
cmp byte [eax + 0x19], 2
jb 0x1007ba1
push 0x1007168
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
jmp 0x1007ba1
cmp eax, 0xea
je 0x10076ff
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1007ba1
test byte [eax + 0x1c], 0x20
je 0x1007ba1
cmp byte [eax + 0x19], 2
jb 0x1007ba1
push dword [ebp - 0x20]
push 0x1007168
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x1007ba1
mov dword [ebp - 0x20], 0xe
jmp 0x1007ba1
mov dword [ebp - 0x20], 0x18
jmp 0x1007ba1
mov ecx, dword [ebp - 0x1c]
mov word [ecx + 0x1ffe], ax
jmp 0x100783a
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1007858
test byte [eax + 0x1c], 0x20
je 0x1007858
cmp byte [eax + 0x19], 2
jb 0x1007858
call edi
push eax
push ebx
push 0x10
mov eax, dword [0x1040184]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x1007858
mov ecx, dword [ebp - 0x1c]
mov word [ecx + 0x1ffe], ax
jmp 0x10078ab
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10078d8
test byte [eax + 0x1c], 0x20
je 0x10078d8
cmp byte [eax + 0x19], 2
jb 0x10078d8
call edi
push eax
push ebx
push 0x11
mov eax, dword [0x1040184]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x10078d8
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop ebp
ret 4