Function at 0x404290
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4389dd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
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, dword [ebp + 8]
lea eax, [ebp - 0x5c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociations
push ParseURLW
mov dword [ebp - 0x68], edi
mov byte [ebp - 0x4d], 0
call esi
test eax, eax
jne 0x404493
lea eax, [ebp - 0x54]
push eax
push 0xf003f
push 0
push edi
push dword [ebp - 0x5c]
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x40448b
lea eax, [ebp - 0x58]
push eax
push 0xf003f
push 0
push 0x43cd24
push dword [ebp - 0x54]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x60], eax
test eax, eax
jne 0x40445d
movups xmm0, xmmword [str.CitrixRedirector]
mov ax, word [0x43cd5c]
mov word [ebp - 0x14], ax
xor eax, eax
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x4c], 0
movups xmm0, xmmword [0x43cd4c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4c]
push eax
push str.Progid
push dword [ebp - 0x58]
call fcn.00405830
test al, al
je 0x404418
lea ecx, [ebp - 0x34]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404390
sub ecx, edx
lea edi, [ebp - 0x4c]
mov edx, dword [ebp - 0x3c]
sar ecx, 1
cmp dword [ebp - 0x38], 8
cmovae edi, dword [ebp - 0x4c]
cmp edx, ecx
jne 0x4043ea
lea eax, [ebp - 0x34]
mov dword [ebp - 0x64], eax
test edx, edx
je 0x4043fd
movzx ecx, word [edi]
movzx esi, word [ebp - 0x34]
cmp cx, si
jb 0x4043e4
sub edi, eax
cmp cx, si
ja 0x4043e4
cmp edx, 1
je 0x4043f7
movzx ecx, word [edi + eax + 2]
add eax, 2
dec edx
movzx esi, word [eax]
cmp cx, si
jae 0x4043cc
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x58]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x404421
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x58]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push 0x43cd24
push dword [ebp - 0x54]
call esi
mov byte [ebp - 0x4d], 1
jmp 0x404421
push dword [ebp - 0x58]
call edi
mov byte [ebp - 0x4d], 0
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x40445d
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404453
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404453
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
push 0x43cd24
push str.UserChoiceOrig
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegRenameKey]
push dword [ebp - 0x54]
test eax, eax
jne 0x40447b
call edi
jmp 0x40448b
call edi
cmp byte [ebp - 0x4d], 0
je 0x40448b
push dword [ebp - 0x68]
push dword [ebp - 0x5c]
call esi
push dword [ebp - 0x5c]
call edi
mov eax, dword [ebp - 0x60]
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 4