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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4f70
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x536014]
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.004148c0
push str._shellopencommand
mov edx, edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0045dcd0
add esp, 4
lea ecx, [ebp - 0x2c]
push 0x20019
push dword [eax]
push 0x80000000
call fcn.0041bbb0
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 0x45d48f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45d48a
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45d48c
call esi
mov esi, dword [ebp - 0x14]
sub esp, 0x14
lea ecx, [ebp - 0x2c]
push dword [edi]
push 0x80000000
call fcn.0045e520
test eax, eax
jne 0x45d7d8
mov edx, dword [esi]
test edx, edx
je 0x45d7d8
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d4c0
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 0x45d7db
test esi, esi
je 0x45d4fb
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.0045dcd0
add esp, 4
lea ecx, [ebp - 0x2c]
push dword [eax]
call fcn.0045e2a0
mov ecx, dword [ebp - 0x20]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x45d561
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45d55d
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45d561
mov ecx, edx
call esi
push str._shellopen
mov edx, edi
lea ecx, [ebp - 0x20]
call fcn.0045dcd0
sub esp, 0x10
lea ecx, [ebp - 0x2c]
push dword [eax]
push 0x80000000
call fcn.0045e520
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 0x45d5bd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45d5b9
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45d5bd
mov ecx, edx
call esi
cmp byte [ebp - 0xd], 0
jne 0x45d7d8
push 1
push 0x50ce38
push 0
lea ecx, [ebp - 0x2c]
call fcn.0045e5a0
test eax, eax
jne 0x45d7d8
push str._shellopencommand
mov edx, edi
lea ecx, [ebp - 0x20]
call fcn.0045dcd0
sub esp, 0x10
lea ecx, [ebp - 0x2c]
push dword [eax]
push 0x80000000
call fcn.0045e520
test eax, eax
lea ecx, [ebp - 0x20]
setne bl
call fcn.004147e0
test bl, bl
jne 0x45d7d8
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push esi
mov edx, 0x516c08
call fcn.004145b0
add esp, 4
push str.____1_
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.0045dcd0
add esp, 4
lea ecx, [ebp - 0x2c]
push 1
push dword [eax]
push 0
call fcn.0045e5a0
test eax, eax
lea ecx, [ebp - 0x20]
setne bl
call fcn.004147e0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004147e0
test bl, bl
jne 0x45d7d8
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push str.FileAssociations
call fcn.0045dcd0
sub esp, 0x10
lea ecx, [ebp - 0x2c]
push dword [eax]
push 0x80000002
call fcn.0045e520
test eax, eax
lea ecx, [ebp - 0x20]
setne bl
call fcn.004147e0
test bl, bl
jne 0x45d7d8
push 1
push dword [edi]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x18]
call fcn.0045e5a0
test eax, eax
jne 0x45d7d8
lea ecx, [ebp - 0x14]
call fcn.00414980
push 1
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push dword [esi]
push str.__s___d
push eax
call fcn.00416b10
push str.DefaultIcon
mov edx, edi
lea ecx, [ebp - 0x20]
call fcn.0045dcd0
lea ecx, [ebp - 0x2c]
push dword [eax]
push 0x80000000
call fcn.0045e520
test eax, eax
lea ecx, [ebp - 0x20]
setne bl
call fcn.004147e0
test bl, bl
jne 0x45d7d0
push 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push 0
call fcn.0045e5a0
test eax, eax
jne 0x45d7d0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004147e0
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ecx
push esi
mov ecx, edi
call fcn.0045cea0
add esp, 8
test eax, eax
jne 0x45d757
push 1
push esi
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.0045c8a0
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.004148c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push dword [eax - 0xc]
push eax
call fcn.00416410
push 0x20019
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x38]
push 0x80000001
call fcn.0041bbb0
test eax, eax
jne 0x45d7b6
push str.UserChoice
lea ecx, [ebp - 0x38]
call fcn.0045e220
lea ecx, [ebp - 0x1c]
mov edi, 1
call fcn.004147e0
lea ecx, [ebp - 0x38]
call fcn.0041bc90
mov esi, dword [ebp - 0x2c]
jmp 0x45d7dd
lea ecx, [ebp - 0x14]
call fcn.004147e0
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 0x45d817
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x45d813
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x45d817
mov ecx, edx
call ebx
test esi, esi
je 0x45d822
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