Function at 0x10262d2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4c
mov eax, dword [0x102c22c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.UPDSPAPI.dll_UpdSpGetStringFieldW]
lea ecx, [ebp - 0xa34]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x20c]
push ecx
mov dword [ebp - 0xa30], eax
mov eax, dword [ebp + 0x10]
push 2
xor ebx, ebx
push eax
mov dword [ebp - 0xa40], eax
inc ebx
call edi
test eax, eax
je 0x10263c6
lea eax, [ebp - 0x20c]
push 0x100a9a4
push eax
call sub.msvcrt.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
jne 0x102634a
mov dword [ebp - 0xa3c], 0x80000002
jmp 0x10263db
jmp 0x109e260
push dword [ebp - 0xa30]
or ebx, 0xffffffff
push 0x100a94c
call fcn.01015c5a
pop ecx
pop ecx
lea eax, [ebp - 0xa34]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
push 3
push dword [ebp - 0xa40]
call edi
test eax, eax
jne 0x1026412
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xa30]
push 0x100a924
jmp 0x10267d1
lea eax, [ebp - 0xa34]
push eax
push esi
lea eax, [ebp - 0x61c]
push eax
push 4
push dword [ebp - 0xa40]
call edi
test eax, eax
jne 0x10264c2
cmp dword [ebp + 0x14], 1
je 0x1026453
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xa30]
push 0x100a8fc
jmp 0x10267d1
and word [ebp - 0x61c], 0
lea eax, [ebp - 0xa38]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xa3c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp + 0x14], 1
jne 0x10265b9
xor ebx, ebx
cmp eax, ebx
jne 0x10265a1
cmp word [ebp - 0x61c], bx
jne 0x10265d6
lea eax, [ebp - 0x414]
push eax
push 0x100a8e8
inc ebx
call fcn.01015c5a
pop ecx
pop ecx
push dword [ebp - 0xa38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1026a30
lea eax, [ebp - 0xa34]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 5
push dword [ebp - 0xa40]
call edi
test eax, eax
jne 0x10264f9
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xa30]
push 0x100a8c0
jmp 0x10267d1
push 0
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_wcstoul
add esp, 0xc
test al, 1
je 0x1026540
test eax, 0x10001
je 0x1026526
mov dword [ebp - 0xa48], 4
jmp 0x102645b
and eax, 0x20001
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
mov dword [ebp - 0xa48], eax
jmp 0x102645b
test eax, 0x10000
je 0x1026556
mov dword [ebp - 0xa48], 7
jmp 0x102645b
test eax, 0x20000
je 0x102656c
mov dword [ebp - 0xa48], 2
jmp 0x102645b
test eax, eax
jne 0x102657f
mov dword [ebp - 0xa48], 1
jmp 0x102645b
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0xa30]
push 0x100a894
call fcn.01015c5a
add esp, 0xc
or ebx, 0xffffffff
jmp 0x1026a30
lea eax, [ebp - 0x414]
push eax
push 0x100a87c
call fcn.01015c5a
pop ecx
pop ecx
jmp 0x1026a30
test eax, eax
je 0x10265d6
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xa30]
xor ebx, ebx
push 0x100a854
jmp 0x10267d1
lea eax, [ebp - 0xa34]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xa4c]
push eax
push 0
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0xa38]
mov dword [ebp - 0xa34], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], 1
mov ecx, dword [ebp - 0xa34]
mov byte [ebp + ecx - 0x825], 0
jne 0x102664c
test eax, eax
lea eax, [ebp - 0x61c]
push eax
jne 0x102663b
push 0x100a844
call fcn.01015c5a
xor ebx, ebx
inc ebx
jmp 0x10264af
push 0x100a830
call fcn.01015c5a
xor ebx, ebx
jmp 0x10264af
test eax, eax
je 0x102667c
push dword [ebp - 0xa38]
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0xa30]
push 0x100a7f8
jmp 0x1026a28
lea eax, [ebp - 0xa34]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 6
push dword [ebp - 0xa40]
call edi
mov eax, dword [ebp + 0x14]
lea eax, [eax + eax*2]
shl eax, 5
lea eax, [eax + 0x102c28c]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
je 0x10266e0
push dword [ebp - 0xa38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xa30]
or ebx, 0xffffffff
push 0x100a7cc
call fcn.01015c5a
add esp, 0xc
mov eax, dword [ebp - 0xa4c]
cmp dword [ebp - 0xa48], eax
je 0x1026711
push dword [ebp - 0xa38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xa30]
push 0x100a7a4
jmp 0x10267ce
cmp eax, 1
je 0x102671b
cmp eax, 2
jne 0x1026776
lea eax, [ebp - 0xa34]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 7
push dword [ebp - 0xa40]
call edi
test eax, eax
je 0x10267b0
and dword [ebp - 0xa3c], 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
call sub.msvcrt.dll_wcscmp
pop ecx
pop ecx
push 1
mov dword [ebp - 0xa44], eax
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 0xa44]
push eax
push 1
push dword [ebp + 0x14]
call fcn.01025374
mov ebx, eax
cmp dword [ebp - 0xa4c], 7
jne 0x102686a
cmp dword [ebp + 0x14], 9
lea eax, [ebp - 0xa34]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 7
push dword [ebp - 0xa40]
jne 0x10267a4
call edi
jmp 0x10267aa
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetMultiSzFieldW]
xor ecx, ecx
cmp eax, ecx
jne 0x10267de
push dword [ebp - 0xa38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xa30]
push 0x100a768
or ebx, 0xffffffff
call fcn.01015c5a
add esp, 0xc
jmp 0x1026a30
xor ebx, ebx
cmp dword [ebp + 0x14], 9
lea esi, [ebp - 0x824]
lea edi, [ebp - 0x20c]
mov dword [ebp - 0xa3c], ecx
jne 0x10268c0
cmp word [ebp - 0x20c], cx
je 0x10268c0
cmp word [ebp - 0x824], cx
je 0x102686a
push 3
pop edi
mov dword [ebp + 0x14], edi
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.msvcrt.dll_wcscmp
pop ecx
pop ecx
push 1
mov dword [ebp - 0xa44], eax
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 0xa44]
push eax
push 1
push edi
call fcn.01025374
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10264b1
cmp ebx, 1
je 0x10264b1
push esi
call sub.ntdll.dll_wcslen
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
pop ecx
jne 0x1026818
cmp dword [ebp - 0xa48], 4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x100a734
jne 0x102694b
lea eax, [ebp - 0xa44]
push eax
push 7
push dword [ebp - 0xa40]
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetIntField]
test eax, eax
je 0x102692f
push 1
lea eax, [ebp - 0xa44]
push eax
lea eax, [ebp - 0x824]
push eax
push 1
push dword [ebp + 0x14]
call fcn.01025374
mov ebx, eax
jmp 0x10269b4
cmp word [ebp - 0x824], cx
je 0x102686a
jmp 0x10268cd
xor ecx, ecx
cmp word [edi], cx
je 0x102686a
push edi
push esi
call sub.msvcrt.dll_wcscmp
pop ecx
pop ecx
push 1
mov dword [ebp - 0xa44], eax
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 0xa44]
push eax
push 1
push dword [ebp + 0x14]
call fcn.01025374
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10264b1
test ebx, ebx
je 0x10264b1
push esi
call sub.ntdll.dll_wcslen
push edi
lea esi, [esi + eax*2 + 2]
call sub.ntdll.dll_wcslen
cmp word [esi], 0
pop ecx
pop ecx
lea edi, [edi + eax*2 + 2]
jne 0x10268cb
jmp 0x102686a
or ebx, 0xffffffff
call esi
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xa30]
push edi
call fcn.01015c5a
add esp, 0x10
cmp dword [ebp - 0xa48], 3
jne 0x10269b4
lea eax, [ebp - 0xa34]
push eax
push 0x208
lea eax, [ebp - 0xa2c]
push eax
push 7
push dword [ebp - 0xa40]
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetBinaryField]
test eax, eax
je 0x1026998
mov eax, dword [ebp - 0xa34]
shr eax, 2
push eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x824]
push eax
push 2
jmp 0x10268b1
or ebx, 0xffffffff
call esi
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xa30]
push edi
call fcn.01015c5a
add esp, 0x10
push dword [ebp - 0xa38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 1
jne 0x10269e2
mov eax, dword [ebp + 0x14]
cmp eax, 9
jne 0x10269d4
push 0x102c5f6
jmp 0x10269f3
lea eax, [eax + eax*2]
shl eax, 5
lea eax, [eax + 0x102c296]
jmp 0x1026a14
test ebx, ebx
jne 0x1026a30
mov eax, dword [ebp + 0x14]
cmp eax, 9
jne 0x1026a08
push 0x102c61e
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x100a714
jmp 0x1026a28
lea eax, [eax + eax*2]
shl eax, 5
lea eax, [eax + 0x102c2be]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x100a6f4
call fcn.01015c5a
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.0101439a
leave
ret 0x10