Function at 0x414520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4396ab
mov eax, dword fs:[0]
push eax
sub esp, 0xc38
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 edi, dword [ebp + 8]
lea eax, [ebp - 0xc10]
push 0x800
push 0
push eax
mov ebx, 0xa
call sub.VCRUNTIME140.dll_memset
push 0x1fe
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0xc1c], 0xff
mov dword [ebp - 0xc44], 0
mov dword [ebp - 0xc18], 0
mov dword [ebp - 0xc14], 0
mov dword [ebp - 0xc20], 0
mov dword [ebp - 0xc24], 0
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x4145f1
mov edx, dword [ecx]
mov eax, edx
mov esi, dword [ecx + 4]
or eax, esi
je 0x4145f1
test byte [ecx + 8], 2
je 0x4145f1
cmp byte [ecx + 0xf], 9
jb 0x4145f1
push 0
push 0x5f
push 0x43d7ec
push 0x2b
push esi
push edx
call fcn.0041bd20
add esp, 0x18
call fcn.004100b0
test al, al
jne 0x414645
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x414c68
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x414c29
test byte [ecx + 8], 2
je 0x414c29
cmp byte [ecx + 0xf], 9
jb 0x414c29
push 0
push 0x60
push 0x43d7ec
push 0x2b
push edx
push esi
call fcn.0041bd20
add esp, 0x18
jmp 0x414c23
lea eax, [ebp - 0xc28]
mov dword [ebp - 0xc28], 0x800
push eax
lea eax, [ebp - 0xc10]
push eax
push 0
push 2
push str.InstallFolder
push str.SOFTWARECitrixInstallICA_Client
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [ebp - 0xc28], 0
jne 0x4146b9
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x414c68
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x414c29
test byte [ecx + 8], 2
je 0x414c29
cmp byte [ecx + 0xf], 9
jb 0x414c29
push 0
push 0x61
jmp 0x41462f
lea eax, [ebp - 0xc20]
push eax
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0xc14]
push eax
call fcn.00411d30
cmp dword [ebp - 0xc20], 0
jne 0x414737
cmp dword [ebp - 0xc24], 0
jne 0x414737
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x414bf7
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x414bf7
test byte [ecx + 8], 2
je 0x414bf7
cmp byte [ecx + 0xf], 9
jb 0x414bf7
push 0
push 0x62
push 0x43d7ec
push 0x2b
push edx
push esi
call fcn.0041bd20
add esp, 0x18
jmp 0x414bf1
push 0x3b
push dword [ebp - 0xc14]
lea eax, [ebp - 0xc40]
push eax
call fcn.0041ac60
push 0x3b
push dword [ebp - 0xc18]
lea eax, [ebp - 0xc34]
mov dword [ebp - 4], 0
push eax
call fcn.0041ac60
lea eax, [ebp - 0xc40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0xc14]
push eax
call fcn.0040d5c0
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0xc20]
push eax
lea eax, [ebp - 0xc18]
push eax
call fcn.0040d5c0
cmp dword [ebp - 0xc20], 0
jne 0x414801
cmp dword [ebp - 0xc24], 0
jne 0x414801
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x4147e6
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x4147e6
test byte [ecx + 8], 2
je 0x4147e6
cmp byte [ecx + 0xf], 9
jb 0x4147e6
push 0
push 0x63
push 0x43d7ec
push 0x2b
push edx
push esi
call fcn.0041bd20
add esp, 0x18
lea ecx, [ebp - 0xc34]
call fcn.004030e0
lea ecx, [ebp - 0xc40]
call fcn.004030e0
jmp 0x414bf1
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00412390
test eax, eax
jne 0x414869
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x41484e
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x41484e
test byte [ecx + 8], 2
je 0x41484e
cmp byte [ecx + 0xf], 9
jb 0x41484e
push 0
push 0x64
push 0x43d7ec
push 0x2b
push edx
push esi
call fcn.0041bd20
add esp, 0x18
lea ecx, [ebp - 0xc34]
call fcn.004030e0
lea ecx, [ebp - 0xc40]
call fcn.004030e0
jmp 0x414bf1
lea eax, [ebp - 0xc44]
push eax
push edi
call fcn.0042d360
cmp dword [ebp - 0xc44], 1
je 0x4148d0
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x4148b5
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x4148b5
test byte [ecx + 8], 2
je 0x4148b5
cmp byte [ecx + 0xf], 9
jb 0x4148b5
push 0
push 0x65
push 0x43d7ec
push 0x2b
push edx
push esi
call fcn.0041bd20
add esp, 0x18
lea ecx, [ebp - 0xc34]
call fcn.004030e0
lea ecx, [ebp - 0xc40]
call fcn.004030e0
jmp 0x414bf1
movzx esi, word [edi]
lea eax, [ebp - 0x410]
push 0x1fe
push 0
push eax
add esi, edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x1fe
push eax
push dword [ebp - 0xc18]
push dword [ebp - 0xc14]
push esi
call fcn.0042cb80
test eax, eax
jne 0x41499a
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x41494d
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x41494d
test byte [ecx + 8], 2
je 0x41494d
cmp byte [ecx + 0xf], 9
jb 0x41494d
push 0
push 0x66
push 0x43d7ec
push 0x2b
push edx
push esi
call fcn.0041bd20
mov ecx, dword [0x449ff8]
add esp, 0x18
cmp dword [edi + 0xc], 0
jne 0x4147e6
test ecx, ecx
je 0x414982
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x414982
test byte [ecx + 8], 2
je 0x414982
cmp byte [ecx + 0xf], 9
jb 0x414982
push 0
push 0x43d7ec
push 0x67
push edx
push esi
call fcn.0041c0e0
push 4
push 4
push str.C2H_TotalNonRedirectCount
push str.SoftwareCitrixICA_ClientCEIPDataBidirectionalContentRedirection
call fcn.00429300
jmp 0x4147e6
call fcn.004125c0
xor ebx, ebx
mov edx, str.C2H_AppRedirectCount
test eax, eax
mov ecx, str.C2H_DesktopRedirectCount
push 4
setne bl
test eax, eax
push 4
cmove ecx, edx
push ecx
push str.SoftwareCitrixICA_ClientCEIPDataBidirectionalContentRedirection
call fcn.00429300
push 4
push 4
push str.C2H_TotalRedirectCount
push str.SoftwareCitrixICA_ClientCEIPDataBidirectionalContentRedirection
call fcn.00429300
test ebx, ebx
je 0x414a2c
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x414a11
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x414a11
test byte [ecx + 8], 2
je 0x414a11
cmp byte [ecx + 0xf], 9
jb 0x414a11
push 0
push 0x68
push 0x43d7ec
push 0x2b
push edx
push esi
call fcn.0041bd20
add esp, 0x18
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.0040e560
mov ebx, eax
jmp 0x414aef
cmp word [ebp - 0x410], 0
lea esi, [ebp - 0x410]
lea eax, [ebp - 0x210]
cmove esi, eax
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x414ac8
mov ebx, dword [ecx]
mov eax, ebx
mov edx, dword [ecx + 4]
or eax, edx
mov dword [ebp - 0xc28], edx
je 0x414ac8
test byte [ecx + 8], 2
je 0x414ac8
cmp byte [ecx + 0xf], 9
jb 0x414ac8
movzx edx, word [esi]
test dx, dx
je 0x414a9c
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp - 0xc1c], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414a80
sub ecx, dword [ebp - 0xc1c]
sar ecx, 1
lea ecx, [ecx*2 + 2]
jmp 0x414aa1
mov ecx, 0xe
push 0
push ecx
test dx, dx
mov eax, str._NULL_
cmovne eax, esi
push eax
push 0x69
push 0x43d7ec
push 0x2b
push dword [ebp - 0xc28]
push ebx
call fcn.0041bd20
add esp, 0x20
lea eax, [ebp - 0xc10]
push eax
push esi
push edi
call fcn.0040def0
mov ebx, eax
test ebx, ebx
jne 0x414aef
push 4
push 4
push str.C2H_AppRedirectSuccessCount
push str.SoftwareCitrixICA_ClientCEIPDataBidirectionalContentRedirection
call fcn.00429300
mov esi, dword [ebp - 0xc34]
test esi, esi
je 0x414b80
mov edi, dword [ebp - 0xc30]
cmp esi, edi
je 0x414b1b
mov ecx, esi
call fcn.00403ca0
add esi, 0x18
cmp esi, edi
jne 0x414b07
mov esi, dword [ebp - 0xc34]
mov ecx, dword [ebp - 0xc2c]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x414b58
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414be1
push ecx
push esi
call fcn.00435eb6
add esp, 8
mov dword [ebp - 0xc34], 0
mov dword [ebp - 0xc30], 0
mov dword [ebp - 0xc2c], 0
mov esi, dword [ebp - 0xc40]
test esi, esi
je 0x414bf1
mov edi, dword [ebp - 0xc3c]
cmp esi, edi
je 0x414ba8
mov ecx, esi
call fcn.00403ca0
add esi, 0x18
cmp esi, edi
jne 0x414b94
mov esi, dword [ebp - 0xc40]
mov ecx, dword [ebp - 0xc38]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x414be7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x414be7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.00435eb6
add esp, 8
mov ecx, dword [0x449ff8]
mov eax, dword [ebp - 0xc14]
test eax, eax
je 0x414c10
push eax
call fcn.004362be
mov ecx, dword [0x449ff8]
add esp, 4
mov eax, dword [ebp - 0xc18]
test eax, eax
je 0x414c29
push eax
call fcn.004362be
add esp, 4
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x414c68
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x414c68
test byte [ecx + 8], 2
je 0x414c68
cmp byte [ecx + 0xf], 9
jb 0x414c68
push 0
push 4
lea eax, [ebp - 0xc1c]
mov dword [ebp - 0xc1c], ebx
push eax
push 0x6a
push 0x43d7ec
push 0x2b
push edx
push esi
call fcn.0041bd20
add esp, 0x20
mov eax, ebx
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