Function at 0x1007098
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 8]
push ecx
xor eax, eax
push 0x20019
push eax
mov esi, 0x10019b0
xor edi, edi
push esi
inc edi
push 0x80000002
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
je 0x1007106
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x10070fe
test byte [eax + 0x1c], 1
je 0x10070fe
push ebx
push esi
push 0x10017ac
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090ed
mov dword [ebp - 0x10], edi
jmp 0x10072a1
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov edi, 0x1001894
push edi
push dword [ebp - 8]
call esi
mov ebx, eax
test ebx, ebx
je 0x1007150
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x100724e
test byte [eax + 0x1c], 1
je 0x100724e
push ebx
push 0x10017ac
push 0x30
jmp 0x1007243
mov ecx, dword [ebp - 4]
cmp ecx, 0x402
jbe 0x1007195
push 0xd
pop ebx
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x10072a1
test byte [eax + 0x1c], 1
je 0x10072a1
push ebx
push 0x200
push 0x10017ac
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010060b6
jmp 0x10072a1
cmp ecx, 2
ja 0x10071c4
push 0xd
pop ebx
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x10072a1
test byte [eax + 0x1c], 1
je 0x10072a1
push ecx
push 0x10017ac
push 0x32
jmp 0x100727c
push ecx
push 8
push dword [0x100f098]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x54], eax
test eax, eax
jne 0x1007212
push 0xe
pop ebx
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x10072a1
test byte [eax + 0x1c], 1
je 0x10072a1
push ebx
push 0x10017ac
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003f79
jmp 0x10072a1
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push dword [ebp - 8]
call esi
mov ebx, eax
test ebx, ebx
je 0x1007257
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x100724e
test byte [eax + 0x1c], 1
je 0x100724e
push ebx
push 0x10017ac
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003f79
mov dword [ebp - 0x10], 1
jmp 0x10072a1
mov ecx, dword [ebp - 4]
cmp ecx, 2
ja 0x1007289
push 0xd
pop ebx
mov eax, dword [0x100f004]
cmp eax, 0x100f004
je 0x10072a1
test byte [eax + 0x1c], 1
je 0x10072a1
push ecx
push 0x10017ac
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003f79
jmp 0x10072a1
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x54]
shr ecx, 1
xor esi, esi
mov word [edx + ecx*2 - 2], si
mov ecx, dword [ebp - 4]
add ecx, 0xfffffffe
mov dword [eax + 0x58], ecx
cmp dword [ebp - 8], 0
je 0x10072b0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
test ebx, ebx
je 0x10072d5
mov eax, dword [esi + 0x54]
test eax, eax
je 0x10072d1
push eax
push 0
push dword [0x100f098]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi + 0x54], 0
and dword [esi + 0x58], 0
cmp dword [ebp - 0x10], 0
je 0x10072e4
mov ecx, esi
call fcn.01006a50
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret