Function at 0x435250
Capabilities:
Check if file exists
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43abcb
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x449314]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24c], edi
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x350], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
push eax
push 0x43d38c
mov word [ebp - 0x230], ax
call fcn.00403d70
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4354f7
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x238], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x234], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435327
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00403d70
lea ecx, [ebp - 0x230]
call fcn.00403ca0
movups xmm1, xmmword [ebp - 0x248]
lea edi, [ebp - 0x230]
movq xmm0, qword [ebp - 0x238]
movq qword [ebp - 0x220], xmm0
cmp dword [ebp - 0x21c], 8
mov esi, dword [ebp - 0x220]
movd eax, xmm1
movups xmmword [ebp - 0x230], xmm1
cmovae edi, eax
mov dword [ebp - 0x354], eax
test esi, esi
je 0x43545d
push 0x100
lea eax, [ebp - 0x34c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, 0x43d7d8
mov edx, 0x100
nop word [eax + eax]
movzx eax, word [ecx]
cmp ax, dx
jae 0x435411
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x34c], 1
cmp ecx, 0x43d7da
jne 0x4353c0
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
nop dword [eax]
movzx eax, word [ecx]
cmp ax, dx
jae 0x435402
cmp byte [ebp + eax - 0x34c], 0
jne 0x43540b
cmp ecx, edi
je 0x43545d
sub ecx, 2
jmp 0x4353f0
sub ecx, edi
sar ecx, 1
jmp 0x435460
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
nop
movzx esi, word [ecx]
mov edx, 1
mov eax, 0x43d7d8
nop dword [eax]
cmp word [eax], si
je 0x435451
add eax, 2
sub edx, 1
jne 0x435430
cmp ecx, edi
je 0x435446
sub ecx, 2
jmp 0x435420
mov esi, dword [ebp - 0x220]
or ecx, 0xffffffff
jmp 0x435460
mov esi, dword [ebp - 0x220]
sub ecx, edi
sar ecx, 1
jmp 0x435460
or ecx, 0xffffffff
cmp esi, ecx
mov dword [ebp - 0x248], 0
lea eax, [ebp - 0x230]
mov dword [ebp - 0x238], 0
cmovb ecx, esi
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x21c], 8
push ecx
cmovae eax, dword [ebp - 0x354]
lea ecx, [ebp - 0x248]
push eax
call fcn.00403d70
lea ecx, [ebp - 0x230]
call fcn.00403ca0
movups xmm0, xmmword [ebp - 0x248]
push 1
push 0x43d7d8
movups xmmword [ebp - 0x230], xmm0
lea ecx, [ebp - 0x230]
movq xmm0, qword [ebp - 0x238]
movq qword [ebp - 0x220], xmm0
call fcn.00405d10
push 0x18
push str.CitrixBrandingHelper.dll
lea ecx, [ebp - 0x230]
call fcn.00405d10
mov edi, dword [ebp - 0x24c]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x435651
push eax
push 0x43d38c
lea ecx, [ebp - 0x230]
mov word [ebp - 0x218], ax
call fcn.00403d70
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x350]
push eax
push 0x20019
push 0
push str.SoftwareCitrixInstallICA_Client
push reloc.SHLWAPI.dll_ParseURLW
call esi
mov ecx, dword [ebp - 0x350]
test ecx, ecx
jne 0x435583
test eax, eax
je 0x4355bb
lea eax, [ebp - 0x350]
push eax
push 0x20019
push ecx
push str.SoftwareCitrixInstallICA_Client
push ParseURLW
call esi
mov ecx, dword [ebp - 0x350]
test ecx, ecx
je 0x4355bb
test eax, eax
jne 0x4355bb
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.InstallFolder
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x350]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x238], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x234], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4355e2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00403d70
lea ecx, [ebp - 0x230]
call fcn.00403ca0
movups xmm0, xmmword [ebp - 0x248]
push 9
push str.Receiver_
movups xmmword [ebp - 0x230], xmm0
lea ecx, [ebp - 0x230]
movq xmm0, qword [ebp - 0x238]
movq qword [ebp - 0x220], xmm0
call fcn.00405d10
push 0x18
push str.CitrixBrandingHelper.dll
lea ecx, [ebp - 0x230]
call fcn.00405d10
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
mov dword [edi], eax
test eax, eax
jne 0x435769
push 3
mov dword [ebp - 0x248], eax
lea ecx, [ebp - 0x248]
push 0x441c0c
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.00403d70
push 9
push str.Receiver_
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00405d10
push 0x18
push str.CitrixBrandingHelper.dll
lea ecx, [ebp - 0x248]
call fcn.00405d10
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
mov dword [edi], eax
test eax, eax
jne 0x435729
push 9
push str.Receiver_
lea ecx, [ebp - 0x248]
call fcn.00403d70
push 0x18
push str.CitrixBrandingHelper.dll
lea ecx, [ebp - 0x248]
call fcn.00405d10
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
mov dword [edi], eax
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x435769
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43575f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4357fa
push ecx
push edx
call fcn.00435eb6
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x4357c8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetBrandName
push eax
call esi
push str.GetImage
mov dword [0x4525ac], eax
push dword [edi]
call esi
push str.GetHelpURL
mov dword [0x4525b0], eax
push dword [edi]
call esi
push str.GetBrandPersonalizationDllStatus
mov dword [0x4525b4], eax
push dword [edi]
call esi
push str.GetRebrandingType
mov dword [0x4525b8], eax
push dword [edi]
call esi
push str.UpdatePinProperty
mov dword [0x4525bc], eax
push dword [edi]
call esi
mov dword [0x4525c0], eax
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x43580a
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x435800
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x435800
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00435eb6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret