Function at 0x4055a0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 3
push 0
push str.SOFTWARECitrixICA_ClientEngineSeamlessURLRewriteRedirections_byUrl
push ParseURLW
or edi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405625
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x405699
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x405699
test byte [ecx + 8], 1
je 0x405699
cmp byte [ecx + 0xf], 9
jb 0x405699
push 0
push 0x1a
push str.GetOAuthCCMId_RewriteNone
push 0xa
push 0x43cc74
push 0x2b
push edx
push esi
call fcn.0041bd20
add esp, 0x20
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
jb 0x40563a
mov eax, dword [ebx]
lea ecx, [ebp - 4]
push ecx
push 3
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4056a3
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x40568d
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x40568d
test byte [ecx + 8], 1
je 0x40568d
cmp byte [ecx + 0xf], 9
jb 0x40568d
push 0
push 0x1a
push str.GetOAuthCCMId_RewriteNone
push 0xb
push 0x43cc74
push 0x2b
push edx
push esi
call fcn.0041bd20
add esp, 0x20
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], 8
push eax
push 0
push 0
push str.OAuthIDExpiration
push dword [ebp - 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
call esi
test eax, eax
jne 0x4057a1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp edx, dword [ebp - 0x18]
ja 0x4057a1
jb 0x4056f0
cmp eax, dword [ebp - 0x1c]
ja 0x4057a1
lea eax, [ebp - 0x10]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp + 8]
mov dword [ebp - 0x10], 4
push eax
push 0
push 0
push str.OAuthID
push dword [ebp - 4]
call esi
test eax, eax
je 0x405756
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x4057de
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x4057de
test byte [ecx + 8], 1
je 0x4057de
cmp byte [ecx + 0xf], 9
jb 0x4057de
push 0
push 0x1a
push str.GetOAuthCCMId_RewriteNone
push 0xd
jmp 0x4057cd
mov edi, dword [ebp + 8]
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x4057de
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x4057de
test byte [ecx + 8], 2
je 0x4057de
cmp byte [ecx + 0xf], 9
jb 0x4057de
push 0
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 0x1a
push str.GetOAuthCCMId_RewriteNone
push 0xe
push 0x43cc74
push 0x2b
push edx
push esi
call fcn.0041bd20
add esp, 0x28
jmp 0x4057de
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x4057de
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x4057de
test byte [ecx + 8], 1
je 0x4057de
cmp byte [ecx + 0xf], 9
jb 0x4057de
push 0
push 0x1a
push str.GetOAuthCCMId_RewriteNone
push 0xc
push 0x43cc74
push 0x2b
push edx
push esi
call fcn.0041bd20
add esp, 0x20
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.OAuthIDExpiration
push dword [ebp - 4]
call esi
push str.OAuthID
push dword [ebp - 4]
call esi
cmp dword [ebx + 0x14], 8
jb 0x405800
mov ebx, dword [ebx]
push ebx
call fcn.00404290
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4