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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438aa5
mov eax, dword fs:[0]
push eax
sub esp, 0x84
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 + 0xc]
lea esi, [ebp - 0x12]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x80], 0xffffffff
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x404f71
xor eax, eax
mov dword [ebp - 0x54], edx
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x12]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], 7
cmp esi, eax
je 0x404fb9
sub eax, esi
lea ecx, [ebp - 0x54]
sar eax, 1
push eax
push esi
call fcn.00403d70
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 0
push eax
push 3
push 0
push str.SOFTWARECitrixICA_ClientEngineSeamlessURLRewriteRedirections_byIndex
push ParseURLW
mov dword [ebp - 0x78], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405035
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x40553a
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x40553a
test byte [ecx + 8], 1
je 0x40553a
cmp byte [ecx + 0xf], 9
jb 0x40553a
push 0
push 0x1b
push str.GetOAuthCCMId_RewriteIndex
push 0x13
push 0x43cc74
push 0x2b
push edx
push esi
call fcn.0041bd20
add esp, 0x20
jmp 0x40553a
cmp dword [ebp - 0x40], 8
lea ecx, [ebp - 0x70]
push ecx
push 3
lea eax, [ebp - 0x54]
mov dword [ebp - 0x70], 0
cmovae eax, dword [ebp - 0x54]
push 0
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x405115
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x405520
mov edi, dword [ecx]
mov eax, edi
mov ebx, dword [ecx + 4]
or eax, ebx
je 0x405520
test byte [ecx + 8], 1
je 0x405520
cmp byte [ecx + 0xf], 9
jb 0x405520
cmp dword [ebp - 0x40], 8
lea edx, [ebp - 0x54]
cmovae edx, dword [ebp - 0x54]
test edx, edx
je 0x4050e8
movzx esi, word [edx]
test si, si
je 0x4050d0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x7c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4050b7
sub ecx, dword [ebp - 0x7c]
sar ecx, 1
lea ecx, [ecx*2 + 2]
jmp 0x4050d5
mov ecx, 0xe
test si, si
mov eax, str._NULL_
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmovne eax, edx
jmp 0x4050f2
mov ecx, 0xa
mov eax, str.NULL
push 0
push ecx
push eax
push 0x1b
push str.GetOAuthCCMId_RewriteIndex
push 0x14
push 0x43cc74
push 0x2b
push ebx
push edi
call fcn.0041bd20
add esp, 0x28
jmp 0x405520
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x84], 8
push eax
push 0
push 0
push str.OAuthIDExpiration
push dword [ebp - 0x70]
xorps xmm0, xmm0
movlpd qword [ebp - 0x90], xmm0
call esi
test eax, eax
jne 0x405443
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp edx, dword [ebp - 0x8c]
ja 0x405443
jb 0x405174
cmp eax, dword [ebp - 0x90]
ja 0x405443
lea eax, [ebp - 0x88]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x88], 4
push eax
push 0
push 0
push str.OAuthID
push dword [ebp - 0x70]
call esi
test eax, eax
je 0x405268
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x4054f1
mov edi, dword [ecx]
mov eax, edi
mov ebx, dword [ecx + 4]
or eax, ebx
je 0x4054f1
test byte [ecx + 8], 1
je 0x4054f1
cmp byte [ecx + 0xf], 9
jb 0x4054f1
cmp dword [ebp - 0x40], 8
lea edx, [ebp - 0x54]
cmovae edx, dword [ebp - 0x54]
test edx, edx
je 0x40524c
movzx esi, word [edx]
test si, si
je 0x40522a
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x74], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4051f6
sub ecx, dword [ebp - 0x74]
mov eax, str._NULL_
sar ecx, 1
test si, si
push 0
cmovne eax, edx
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 0x1b
push str.GetOAuthCCMId_RewriteIndex
push 0x16
jmp 0x4054e0
push 0
test si, si
mov ecx, 0xe
push ecx
mov eax, str._NULL_
cmovne eax, edx
push eax
push 0x1b
push str.GetOAuthCCMId_RewriteIndex
push 0x16
jmp 0x4054e0
push 0
mov ecx, 0xa
mov eax, str.NULL
push ecx
push eax
push 0x1b
push str.GetOAuthCCMId_RewriteIndex
push 0x16
jmp 0x4054e0
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 1
push eax
push 0x43cee0
push dword [ebp - 0x70]
call fcn.00405830
test al, al
jne 0x40534b
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x4053fe
mov edi, dword [ecx]
mov eax, edi
mov ebx, dword [ecx + 4]
or eax, ebx
je 0x4053fe
test byte [ecx + 8], 1
je 0x4053fe
cmp byte [ecx + 0xf], 9
jb 0x4053fe
cmp dword [ebp - 0x40], 8
lea edx, [ebp - 0x54]
cmovae edx, dword [ebp - 0x54]
test edx, edx
je 0x405326
movzx esi, word [edx]
test si, si
je 0x405314
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x74], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4052f0
sub ecx, dword [ebp - 0x74]
mov eax, str._NULL_
sar ecx, 1
test si, si
cmovne eax, edx
lea ecx, [ecx*2 + 2]
jmp 0x405330
test si, si
mov eax, str._NULL_
mov ecx, 0xe
cmovne eax, edx
jmp 0x405330
mov ecx, 0xa
mov eax, str.NULL
push 0
push ecx
push eax
push 0x1b
push str.GetOAuthCCMId_RewriteIndex
push 0x17
push 0x43cc74
push 0x2b
push ebx
push edi
jmp 0x4053f6
push 0
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405970
push eax
mov ecx, ebx
call fcn.004041b0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40539e
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405394
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405394
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 [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x4053a9
mov edi, dword [edi]
push eax
push edi
mov ecx, ebx
call fcn.00405d10
mov ebx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], ebx
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x4053fe
mov esi, dword [ecx]
mov eax, esi
mov edx, dword [ecx + 4]
or eax, edx
je 0x4053fe
test byte [ecx + 8], 2
je 0x4053fe
cmp byte [ecx + 0xf], 9
jb 0x4053fe
push 0
push 4
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
push eax
push 0x1b
push str.GetOAuthCCMId_RewriteIndex
push 0x18
push 0x43cc74
push 0x2b
push edx
push esi
call fcn.0041bd20
add esp, 0x28
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x4054f1
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405434
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405434
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
jmp 0x4054f1
mov ecx, dword [0x449ff8]
test ecx, ecx
je 0x4054f1
mov edi, dword [ecx]
mov eax, edi
mov ebx, dword [ecx + 4]
or eax, ebx
je 0x4054f1
test byte [ecx + 8], 1
je 0x4054f1
cmp byte [ecx + 0xf], 9
jb 0x4054f1
cmp dword [ebp - 0x40], 8
lea edx, [ebp - 0x54]
cmovae edx, dword [ebp - 0x54]
test edx, edx
je 0x4054c9
movzx esi, word [edx]
test si, si
je 0x4054b7
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x74], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405493
sub ecx, dword [ebp - 0x74]
mov eax, str._NULL_
sar ecx, 1
test si, si
cmovne eax, edx
lea ecx, [ecx*2 + 2]
jmp 0x4054d3
test si, si
mov eax, str._NULL_
mov ecx, 0xe
cmovne eax, edx
jmp 0x4054d3
mov ecx, 0xa
mov eax, str.NULL
push 0
push ecx
push eax
push 0x1b
push str.GetOAuthCCMId_RewriteIndex
push 0x15
push 0x43cc74
push 0x2b
push ebx
push edi
call fcn.0041bd20
add esp, 0x28
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.OAuthIDExpiration
push dword [ebp - 0x70]
call esi
push str.OAuthID
push dword [ebp - 0x70]
call esi
push str.OAuthURL
push dword [ebp - 0x70]
call esi
push dword [ebp - 0x70]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x78]
call esi
mov edx, dword [ebp - 0x40]
cmp edx, 8
jb 0x405576
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40556c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40556c
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
mov eax, dword [ebp - 0x80]
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 0xc