Function at 0x45a1d0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1b90
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x533014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x14], esi
mov edi, ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x18]
call fcn.004145e0
push str._shellopencommand
mov edx, edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0045aad0
add esp, 4
lea ecx, [ebp - 0x2c]
push 0x20019
push dword [eax]
push 0x80000000
call fcn.0041b7b0
mov edx, dword [ebp - 0x20]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45a28f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45a28a
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45a28c
call esi
mov esi, dword [ebp - 0x14]
sub esp, 0x14
lea ecx, [ebp - 0x2c]
push dword [edi]
push 0x80000000
call fcn.0045b320
test eax, eax
jne 0x45a5d8
mov edx, dword [esi]
test edx, edx
je 0x45a5d8
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45a2c0
sub ecx, esi
mov esi, dword [ebp - 0x2c]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x45a5db
test esi, esi
je 0x45a2fb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str._shellenqueue
mov edx, edi
mov dword [ebp - 0x2c], 0x80000000
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.0045aad0
add esp, 4
lea ecx, [ebp - 0x2c]
push dword [eax]
call fcn.0045b0a0
mov ecx, dword [ebp - 0x20]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x45a361
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45a35d
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45a361
mov ecx, edx
call esi
push str._shellopen
mov edx, edi
lea ecx, [ebp - 0x20]
call fcn.0045aad0
sub esp, 0x10
lea ecx, [ebp - 0x2c]
push dword [eax]
push 0x80000000
call fcn.0045b320
mov ecx, dword [ebp - 0x20]
test eax, eax
mov eax, ebx
setne byte [ebp - 0xd]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x45a3bd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45a3b9
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45a3bd
mov ecx, edx
call esi
cmp byte [ebp - 0xd], 0
jne 0x45a5d8
push 1
push 0x509e64
push 0
lea ecx, [ebp - 0x2c]
call fcn.0045b3a0
test eax, eax
jne 0x45a5d8
push str._shellopencommand
mov edx, edi
lea ecx, [ebp - 0x20]
call fcn.0045aad0
sub esp, 0x10
lea ecx, [ebp - 0x2c]
push dword [eax]
push 0x80000000
call fcn.0045b320
test eax, eax
lea ecx, [ebp - 0x20]
setne bl
call fcn.00414500
test bl, bl
jne 0x45a5d8
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push esi
mov edx, 0x513b48
call fcn.004142d0
add esp, 4
push str.____1_
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.0045aad0
add esp, 4
lea ecx, [ebp - 0x2c]
push 1
push dword [eax]
push 0
call fcn.0045b3a0
test eax, eax
lea ecx, [ebp - 0x20]
setne bl
call fcn.00414500
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00414500
test bl, bl
jne 0x45a5d8
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push str.FileAssociations
call fcn.0045aad0
sub esp, 0x10
lea ecx, [ebp - 0x2c]
push dword [eax]
push 0x80000002
call fcn.0045b320
test eax, eax
lea ecx, [ebp - 0x20]
setne bl
call fcn.00414500
test bl, bl
jne 0x45a5d8
push 1
push dword [edi]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x18]
call fcn.0045b3a0
test eax, eax
jne 0x45a5d8
lea ecx, [ebp - 0x14]
call fcn.004146a0
push 1
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push dword [esi]
push str.__s___d
push eax
call fcn.004167e0
push str.DefaultIcon
mov edx, edi
lea ecx, [ebp - 0x20]
call fcn.0045aad0
lea ecx, [ebp - 0x2c]
push dword [eax]
push 0x80000000
call fcn.0045b320
test eax, eax
lea ecx, [ebp - 0x20]
setne bl
call fcn.00414500
test bl, bl
jne 0x45a5d0
push 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push 0
call fcn.0045b3a0
test eax, eax
jne 0x45a5d0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00414500
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ecx
push esi
mov ecx, edi
call fcn.00459ca0
add esp, 8
test eax, eax
jne 0x45a557
push 1
push esi
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.004596a0
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004145e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push dword [eax - 0xc]
push eax
call fcn.004160e0
push 0x20019
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x38]
push 0x80000001
call fcn.0041b7b0
test eax, eax
jne 0x45a5b6
push str.UserChoice
lea ecx, [ebp - 0x38]
call fcn.0045b020
lea ecx, [ebp - 0x1c]
mov edi, 1
call fcn.00414500
lea ecx, [ebp - 0x38]
call fcn.0041b890
mov esi, dword [ebp - 0x2c]
jmp 0x45a5dd
lea ecx, [ebp - 0x14]
call fcn.00414500
mov esi, dword [ebp - 0x2c]
xor edi, edi
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x45a617
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45a613
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45a617
mov ecx, edx
call ebx
test esi, esi
je 0x45a622
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret