Function at 0x1026fd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x1039004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x42c], 0x105
mov dword [ebp - 0x424], 0x20a
je 0x10272ef
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call sub.instapi.dll_GetVerSpecificRootRegPath
test eax, eax
je 0x10270aa
push esi
lea eax, [ebp - 0x420]
push eax
push 0x20019
push edi
lea ecx, [ebp - 0x41c]
push ecx
push reloc.WS2_32.dll_bind
mov word [ebp - 0x214], di
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
je 0x10270fc
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test byte [0x103a4fc], 2
je 0x102708b
mov edx, dword [0x103b3b0]
test edx, edx
je 0x102708b
mov eax, dword [0x103b3b0]
mov ecx, dword [0x103b19c]
push esi
push eax
push 0x18000
push ecx
call fcn.01024ec0
add esp, 0x10
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01029f27
mov esp, ebp
pop ebp
ret
test byte [0x103a4fc], 2
je 0x10270de
mov edx, dword [0x103b3ac]
test edx, edx
je 0x10270de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x103b3ac]
mov ecx, dword [0x103b198]
push eax
push 0x13c00
push ecx
call fcn.01024ec0
add esp, 0x10
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01029f27
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
test eax, eax
mov esi, 2
je 0x102712b
cmp dword [ebp - 0x424], esi
jae 0x1027125
push 0xea
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xea
jmp 0x102719d
sub dword [ebp - 0x424], esi
lea ecx, [ebp - 0x424]
push ecx
mov ecx, dword [ebp - 0x420]
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x428]
push eax
push edi
push 0x101c124
push ecx
mov dword [ebp - 0x428], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x1027164
cmp eax, 0xea
jne 0x1027199
cmp dword [ebp - 0x428], 1
je 0x102717f
push 0x70c
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x70c
jmp 0x102719d
cmp eax, edi
jne 0x1027193
mov edx, dword [ebp - 0x424]
shr edx, 1
mov word [ebp + edx*2 - 0x210], di
add dword [ebp - 0x424], esi
cmp eax, edi
je 0x10271df
test byte [0x103a4fc], 2
je 0x10272c1
mov ecx, dword [0x103b3b4]
test ecx, ecx
je 0x10272c1
mov edx, dword [0x103b3b4]
push eax
mov eax, dword [0x103b1a0]
push edx
push 0x1bc00
push eax
call fcn.01024ec0
mov ecx, dword [ebp - 0x420]
add esp, 0x10
push ecx
jmp 0x1027092
mov ecx, 0x105
lea eax, [ebp - 0x210]
xor esi, esi
lea esp, [esp]
cmp word [eax], di
je 0x10271ff
add eax, 2
sub ecx, 1
jne 0x10271f0
jmp 0x1027203
cmp ecx, edi
jne 0x102726a
mov esi, 0x80070057
xor edx, edx
cmp esi, edi
mov eax, esi
jl 0x102722a
push 0x101c13c
mov eax, 0x105
sub eax, edx
push eax
lea ecx, [ebp + edx*2 - 0x210]
push ecx
call fcn.0101ed00
cmp eax, edi
je 0x1027273
movzx esi, ax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test byte [0x103a4fc], 2
je 0x102708b
mov edx, dword [0x103b3b8]
test edx, edx
je 0x102708b
mov eax, dword [0x103b3b8]
mov ecx, dword [0x103b1a4]
push esi
push eax
push 0x1ec00
jmp 0x1027082
mov edx, 0x105
sub edx, ecx
jmp 0x102720a
lea eax, [ebp - 0x210]
push eax
push 0x105
push ebx
call fcn.0101ebe0
cmp eax, edi
je 0x10272cd
movzx esi, ax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test byte [0x103a4fc], 2
je 0x10272c1
mov ecx, dword [0x103b3bc]
test ecx, ecx
je 0x10272c1
mov edx, dword [0x103b3bc]
mov eax, dword [0x103b1a8]
push esi
push edx
push 0x21c00
push eax
call fcn.01024ec0
add esp, 0x10
mov ecx, dword [ebp - 0x420]
push ecx
jmp 0x1027092
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01029f27
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.01029f27
mov esp, ebp
pop ebp
ret