Function at 0x40fdf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4391d0
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x449314]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x1fe
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea eax, [ebp - 0x234]
add esp, 0xc
mov dword [ebp - 0x234], 0xff
mov byte [ebp - 0x229], 0
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 2
push esi
push str.SOFTWAREPoliciesCitrixICA_clientEngineLockdown_ProfilesAll_RegionsLockdownVirtual_ChannelsControl
push reloc.SHLWAPI.dll_ParseURLW
call ebx
mov edi, eax
test edi, edi
je 0x40fe94
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 2
push esi
push str.SOFTWAREPoliciesCitrixICA_clientEngineLockdown_ProfilesAll_RegionsLockdownVirtual_ChannelsControl
push ParseURLW
call ebx
mov edi, eax
mov dword [ebp - 0x230], 0xffffffff
test edi, edi
je 0x40ff70
call fcn.00401a40
test al, al
je 0x40ff70
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
push 2
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
call fcn.00401650
mov edx, dword [ebp - 0x214]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x40ff32
mov ecx, dword [ebp - 0x228]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ff28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ff28
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00435eb6
add esp, 8
push 1
push 0xff
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], 0
push ecx
push esi
mov dword [ebp - 0x214], 0xf
mov ecx, ebx
mov byte [ebp - 0x228], 0
mov eax, dword [ebx]
push str.ICA_Clientenginelockdown_profiles_all_regionslockdown_virtual_channelscontrol
push 1
call dword [eax + 0xc]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x210]
push 0x43f58c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
movzx ebx, byte [ebp - 0x229]
add esp, 8
test eax, eax
mov ecx, 1
cmove ebx, ecx
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x410082
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x244], eax
or eax, edx
mov dword [ebp - 0x238], edx
je 0x410082
test byte [ecx + 8], 2
je 0x410082
cmp byte [ecx + 0xf], 9
jb 0x410082
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x230], eax
movzx eax, bl
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], eax
test esi, esi
je 0x410041
movzx edx, word [esi]
test dx, dx
je 0x410029
mov ecx, esi
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410000
sub ecx, edi
mov eax, str._NULL_
sar ecx, 1
test dx, dx
mov edx, dword [ebp - 0x238]
cmovne eax, esi
lea ecx, [ecx*2 + 2]
jmp 0x41004b
test dx, dx
mov eax, str._NULL_
mov edx, dword [ebp - 0x238]
mov ecx, 0xe
cmovne eax, esi
jmp 0x41004b
mov ecx, 0xa
mov eax, str.NULL
push 0
push 4
lea esi, [ebp - 0x230]
push esi
push 4
lea esi, [ebp - 0x23c]
push esi
push 4
lea esi, [ebp - 0x240]
push esi
push ecx
push eax
push 0x35
push 0x43d7ec
push 0x2b
push edx
push dword [ebp - 0x244]
call fcn.0041bd20
add esp, 0x38
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret 4