Function at 0x404bb0
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x449314]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
push 3
push 0
push str.SOFTWARECitrixICA_ClientEngineSeamlessURLRewriteRedirections_byId
push ParseURLW
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404c48
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x404d42
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x404d42
test byte [ecx + 8], 1
je 0x404d42
cmp byte [ecx + 0xf], 9
jb 0x404d42
push 0
push 0x18
push str.GetOAuthCCMId_RewriteID
push 0xf
push 0x43cc74
push 0x2b
push edx
push esi
call fcn.0041bd20
add esp, 0x20
jmp 0x404d42
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x24], 0
jb 0x404c59
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404d58
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x404d25
mov ebx, dword [ecx]
mov eax, ebx
mov edx, dword [ecx + 4]
or eax, edx
mov dword [ebp - 0x2c], edx
je 0x404d25
test byte [ecx + 8], 1
je 0x404d25
cmp byte [ecx + 0xf], 9
jb 0x404d25
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x404cb1
mov edx, dword [esi]
test edx, edx
je 0x404cfb
movzx edi, word [edx]
test di, di
je 0x404ce9
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x20], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404cc5
sub ecx, dword [ebp - 0x20]
mov eax, str._NULL_
sar ecx, 1
test di, di
cmovne eax, edx
lea ecx, [ecx*2 + 2]
jmp 0x404d05
test di, di
mov eax, str._NULL_
mov ecx, 0xe
cmovne eax, edx
jmp 0x404d05
mov ecx, 0xa
mov eax, str.NULL
push 0
push ecx
push eax
push 0x18
push str.GetOAuthCCMId_RewriteID
push 0x10
push 0x43cc74
push 0x2b
push dword [ebp - 0x2c]
push ebx
call fcn.0041bd20
add esp, 0x28
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x14], 8
jb 0x404d33
mov esi, dword [esi]
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x28]
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0043624e
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 8
push eax
lea eax, [ebp - 0x3c]
xorps xmm0, xmm0
push eax
push 0
push 0
push str.OAuthIDExpiration
push dword [ebp - 0x24]
movlpd qword [ebp - 0x3c], xmm0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404e5f
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp edx, dword [ebp - 0x38]
ja 0x404e5f
jb 0x404da3
cmp eax, dword [ebp - 0x3c]
ja 0x404e5f
push 0
push edi
lea eax, [ebp - 0x1c]
push eax
call fcn.00405970
push eax
mov ecx, ebx
call fcn.004041b0
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x404df3
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404de9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404de9
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
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x404dfd
mov eax, dword [esi]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x30], ebx
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x404f11
mov edi, dword [ecx]
mov eax, edi
mov edx, dword [ecx + 4]
or eax, edx
je 0x404f11
test byte [ecx + 8], 2
je 0x404f11
cmp byte [ecx + 0xf], 9
jb 0x404f11
push 0
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push 0x18
push str.GetOAuthCCMId_RewriteID
push 0x12
push 0x43cc74
push 0x2b
push edx
push edi
jmp 0x404f09
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x404f11
mov ebx, dword [ecx]
mov eax, ebx
mov edx, dword [ecx + 4]
or eax, edx
mov dword [ebp - 0x34], edx
je 0x404f11
test byte [ecx + 8], 1
je 0x404f11
cmp byte [ecx + 0xf], 9
jb 0x404f11
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x404e9d
mov edx, dword [esi]
test edx, edx
je 0x404ee7
movzx edi, word [edx]
test di, di
je 0x404ed5
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x20], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404eb1
sub ecx, dword [ebp - 0x20]
mov eax, str._NULL_
sar ecx, 1
test di, di
cmovne eax, edx
lea ecx, [ecx*2 + 2]
jmp 0x404ef1
test di, di
mov eax, str._NULL_
mov ecx, 0xe
cmovne eax, edx
jmp 0x404ef1
mov ecx, 0xa
mov eax, str.NULL
push 0
push ecx
push eax
push 0x18
push str.GetOAuthCCMId_RewriteID
push 0x11
push 0x43cc74
push 0x2b
push dword [ebp - 0x34]
push ebx
call fcn.0041bd20
add esp, 0x28
push str.OAuthIDExpiration
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x404d2b