Function at 0x42c070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
mov ecx, dword [0x44a4f0]
mov edx, 0x44a4f4
test ecx, ecx
jne 0x42c0ac
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x42c0a2
push 0x449270
call fcn.0042d070
mov ecx, dword [0x44a4f0]
test ecx, ecx
je 0x42c0df
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x42c0df
test byte [ecx + 8], 8
je 0x42c0df
cmp byte [ecx + 0xf], 0xc
jb 0x42c0df
push 0
push 0xf
push str.GetAppOverride
push 0xa
push 0x4412f4
push 0x2b
push edx
push esi
call fcn.0042d0e0
add esp, 0x20
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xc]
push ebx
push eax
push 1
xor ebx, ebx
push ebx
push str.SoftwarePoliciesCitrixICA_clientBidirectional_Content_Redirection
push ParseURLW
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
jne 0x42c56a
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.VDAAppOverridesEnabled
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42c141
cmp dword [ebp - 0x14], 4
jne 0x42c141
cmp dword [ebp - 0x10], 4
jne 0x42c141
cmp dword [ebp - 8], ebx
setne bl
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x42c56a
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
push 1
push 0
push str.SoftwarePoliciesCitrixICA_clientBidirectional_Content_RedirectionVDAAppOverrides
push ParseURLW
call esi
test eax, eax
jne 0x42c5d1
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 0x14], edi
push eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 8], edi
push eax
push 0x44a538
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x4000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x42c39f
cmp eax, 0xea
jne 0x42c223
mov ecx, dword [0x44a4f0]
test ecx, ecx
jne 0x42c1f0
mov ecx, 1
xor eax, eax
mov edx, 0x44a4f4
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x42c1e2
push 0x449270
call fcn.0042d070
mov ecx, dword [0x44a4f0]
test ecx, ecx
je 0x42c356
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x42c356
test byte [ecx + 8], 1
je 0x42c356
cmp byte [ecx + 0xf], 9
jb 0x42c356
push 0
push 0xf
push str.GetAppOverride
push 0xe
jmp 0x42c2b7
test eax, eax
jne 0x42c356
cmp dword [ebp - 8], 1
jne 0x42c356
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x42c356
test ebx, ebx
je 0x42c2cd
shr eax, 1
cmp word [ebx + eax*2 - 2], 0
je 0x42c2cd
mov ecx, dword [0x44a4f0]
test ecx, ecx
jne 0x42c289
mov ecx, 1
xor eax, eax
mov edx, 0x44a4f4
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x42c27b
push 0x449270
call fcn.0042d070
mov ecx, dword [0x44a4f0]
test ecx, ecx
je 0x42c356
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x42c356
test byte [ecx + 8], 1
je 0x42c356
cmp byte [ecx + 0xf], 9
jb 0x42c356
push 0
push 0xf
push str.GetAppOverride
push 0xf
push 0x4412f4
push 0x2b
push edx
push esi
call fcn.0042d0e0
add esp, 0x20
jmp 0x42c356
mov esi, dword [ebp + 8]
mov edi, 0x44a538
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42c2e0
sub esi, ecx
push 0x3b
push 0x44a538
sar esi, 1
call sub.VCRUNTIME140.dll_wcschr
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x42c339
mov eax, ebx
sub eax, edi
sar eax, 1
cmp eax, esi
jne 0x42c325
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
sete cl
test eax, eax
je 0x42c34b
lea edi, [ebx + 2]
push 0x3b
push edi
call sub.VCRUNTIME140.dll_wcschr
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x42c304
push edi
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
sete cl
test cl, cl
jne 0x42c43b
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], eax
lea ecx, [edx + edx]
mov dword [ebp - 0x10], 0x4000
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0x44a538
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x42c1b3
xor edi, edi
mov ecx, dword [0x44a4f0]
test ecx, ecx
jne 0x42c3d5
mov ecx, 1
xor eax, eax
mov edx, 0x44a4f4
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x42c3c7
push 0x449270
call fcn.0042d070
mov ecx, dword [0x44a4f0]
test ecx, ecx
je 0x42c55f
mov edx, dword [ecx]
mov eax, edx
mov esi, dword [ecx + 4]
or eax, esi
je 0x42c55f
test byte [ecx + 8], 2
je 0x42c55f
cmp byte [ecx + 0xf], 9
jb 0x42c55f
mov eax, dword [ebp + 8]
test eax, eax
je 0x42c535
movzx edi, word [eax]
test di, di
je 0x42c522
mov ecx, eax
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c414
sub ecx, ebx
mov eax, str._NULL_
sar ecx, 1
test di, di
cmovne eax, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
jmp 0x42c53f
mov ecx, dword [0x44a4f0]
test ecx, ecx
jne 0x42c471
mov ecx, 1
xor eax, eax
mov edx, 0x44a4f4
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x42c463
push 0x449270
call fcn.0042d070
mov ecx, dword [0x44a4f0]
test ecx, ecx
je 0x42c50f
mov esi, dword [ecx]
mov eax, esi
mov edi, dword [ecx + 4]
or eax, edi
je 0x42c50f
test byte [ecx + 8], 2
je 0x42c50f
cmp byte [ecx + 0xf], 9
jb 0x42c50f
mov eax, dword [ebp + 0xc]
mov edx, str._not_retrieved_
test eax, eax
cmovne edx, eax
test edx, edx
je 0x42c4e7
movzx ebx, word [edx]
test bx, bx
je 0x42c4d5
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c4b1
sub ecx, dword [ebp + 8]
mov eax, str._NULL_
sar ecx, 1
test bx, bx
cmovne eax, edx
lea ecx, [ecx*2 + 2]
jmp 0x42c4f1
test bx, bx
mov eax, str._NULL_
mov ecx, 0xe
cmovne eax, edx
jmp 0x42c4f1
mov ecx, 0xa
mov eax, str.NULL
push 0
push ecx
push eax
push 0xf
push str.GetAppOverride
push 0x10
push 0x4412f4
push 0x2b
push edi
push esi
call fcn.0042d0e0
add esp, 0x28
push dword [ebp - 0xc]
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42c5d1
test di, di
mov eax, str._NULL_
mov ecx, 0xe
cmovne eax, dword [ebp + 8]
jmp 0x42c53f
mov ecx, 0xa
mov eax, str.NULL
push 0
push ecx
push eax
push 0xf
push str.GetAppOverride
push 0xd
push 0x4412f4
push 0x2b
push esi
push edx
call fcn.0042d0e0
add esp, 0x28
xor edi, edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42c5d1
mov edx, dword [0x44a4f0]
test edx, edx
jne 0x42c59e
mov esi, 1
xor eax, eax
mov ecx, esi
mov edx, 0x44a4f4
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x42c594
push 0x449270
call fcn.0042d070
mov edx, dword [0x44a4f0]
test edx, edx
je 0x42c5dc
mov esi, dword [edx]
mov eax, esi
mov ecx, dword [edx + 4]
or eax, ecx
je 0x42c5d7
test byte [edx + 8], 1
je 0x42c5d7
cmp byte [edx + 0xf], 9
jb 0x42c5d7
push 0
push 0xf
push str.GetAppOverride
push 0xb
push 0x4412f4
push 0x2b
push ecx
push esi
call fcn.0042d0e0
add esp, 0x20
mov edx, dword [0x44a4f0]
mov esi, 1
mov eax, dword [ebp + 0xc]
pop ebx
test eax, eax
je 0x42c5f9
cmp dword [ebp + 0x10], 0
je 0x42c5f9
test edi, edi
jne 0x42c5f9
xor ecx, ecx
mov word [eax], cx
mov edx, dword [0x44a4f0]
test edx, edx
je 0x42c61a
mov ecx, dword [edx]
or ecx, dword [edx + 4]
je 0x42c678
test byte [edx + 8], 8
je 0x42c678
cmp byte [edx + 0xf], 0xc
jae 0x42c650
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov ecx, 0x44a4f4
lock cmpxchg dword [ecx], esi
test eax, eax
jne 0x42c633
push 0x449270
call fcn.0042d070
mov edx, dword [0x44a4f0]
test edx, edx
je 0x42c678
mov eax, dword [edx]
or eax, dword [edx + 4]
je 0x42c678
test byte [edx + 8], 8
je 0x42c678
cmp byte [edx + 0xf], 0xc
jb 0x42c678
push 0
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push 0xf
push str.GetAppOverride
push 0x11
push 0x4412f4
push 0x2b
push dword [edx + 4]
push dword [edx]
call fcn.0042d0e0
add esp, 0x28
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc