Function at 0x1004e2f1
Capabilities:
Persist via contextmenuhandlers registry key
Set registry value

Disassembly:
push 0x254
mov eax, 0x10249425
call fcn.10039bd9
xor eax, eax
mov dword [ebp - 4], 1
push 0x208
push eax
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x218]
push eax
call fcn.100aa4a0
add esp, 0xc
call fcn.1004ebd2
push eax
lea ecx, [ebp - 0x260]
call fcn.1004d7d7
mov esi, dword [ebp - 0x260]
mov byte [ebp - 4], 2
jmp 0x1004e539
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1004e34e
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x248]
call fcn.10008a90
push str._shellexContextMenuHandlers_
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.10004090
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x248]
push eax
call fcn.10004020
xor edx, edx
lea ecx, [ebp - 0x24c]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edx
cmovae eax, dword [ebp - 0x248]
push ecx
push edx
push 0xf013f
push edx
push edx
push edx
push eax
push SysReAllocString
mov dword [ebp - 0x24c], edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1004e430
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp + 0x20]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x1004e3d8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x254]
jne 0x1004e3f0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
xor eax, eax
push eax
push 0x102c46e8
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1004e43a
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x230]
call fcn.10008a90
push str._shellexDragDropHandlers_
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.10004090
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x230]
push eax
call fcn.10004020
xor edx, edx
lea ecx, [ebp - 0x250]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edx
cmovae eax, dword [ebp - 0x230]
push ecx
push edx
push 0xf013f
push edx
push edx
push edx
push eax
push SysReAllocString
mov dword [ebp - 0x250], edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1004e51c
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp + 0x20]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x1004e4c4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x254]
jne 0x1004e4dc
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
xor eax, eax
push eax
push 0x102c46e8
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x230]
call fcn.100094a0
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.100094a0
add esi, 0x18
cmp esi, dword [ebp - 0x25c]
jne 0x1004e344
lea ecx, [ebp - 0x260]
call fcn.10040545
lea ecx, [ebp + 8]
call fcn.100094a0
lea ecx, [ebp + 0x20]
call fcn.100094a0
mov al, 1
call fcn.10039b83
ret 0x30