Function at 0x10021580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a04]
mov eax, 0x1a04
call fcn.100c8100
push 0xffffffffffffffff
push 0x100e6420
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x1a00], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x1a0c]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0x1a10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], edx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x10021625
cmp eax, ebx
je 0x10021625
cmp ecx, ebx
je 0x10021625
mov eax, str.InstallingWSPString
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10021600
sub eax, edx
sar eax, 1
je 0x1002164a
lea eax, [ebp - 0x14]
push eax
push str.InstallingWSPString
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1002164d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1a00]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x1a04
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], esi
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10021625
xor esi, esi
mov dword [ebp - 0x34], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp esi, dword [ebp - 0x24]
jge 0x1002177a
push 0x1000
push ebx
lea eax, [ebp]
push eax
call fcn.100c7d20
push 0x200
push ebx
lea ecx, [ebp + 0x1800]
push ecx
call fcn.100c7d20
add esp, 0x18
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0x200
mov dword [ebp - 0x28], 0x1000
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x30]
push ecx
push ebx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp + 0x1800]
push eax
push esi
mov ecx, dword [ebp - 0x14]
push ecx
call edi
test eax, eax
jne 0x1002176f
push 0x800
push ebx
lea edx, [ebp + 0x1000]
push edx
call fcn.100c7d20
push 1
push 0x800
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp + 0x1800]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov edx, 0x10108140
call fcn.10044220
add esp, 0x20
test eax, eax
jne 0x1002176f
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x1000]
push ecx
call fcn.100c629b
add esp, 8
test eax, eax
jne 0x1002176f
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x10021747
push eax
lea edx, [ebp + 0x1800]
push edx
call fcn.100c629b
add esp, 8
test eax, eax
je 0x1002176f
mov eax, dword [ebp - 0x20]
push eax
mov eax, str.InstallingWSPSetting
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp + 0x1800]
call fcn.1000c7d0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x10021625
add esi, 1
mov dword [ebp - 0x34], esi
jmp 0x10021674
xor al, al
cmp al, bl
jne 0x10021799
mov edx, dword [ebp - 0x20]
push edx
mov eax, str.InstallingWSPSetting
push eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.1000c7d0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x10021625