Function at 0x450840
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b2fc
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x5898bc]
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
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x440], 1
push 0
push eax
mov dword [ebp - 0x43c], 0x104
call fcn.004b2720
mov eax, dword [0x592af8]
add esp, 0xc
test al, 1
jne 0x4508b3
or eax, 1
mov dword [0x592af4], 0
mov dword [0x592af8], eax
mov byte [ebp - 0x425], 0
lea eax, [ebp - 0x434]
mov dword [ebp - 4], 0
push eax
call fcn.00472b55
lea eax, [ebp - 0x434]
mov dword [ebp - 4], 1
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x425]
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x448]
push eax
push 0x44ce20
push 0x592af4
call fcn.00473b2b
add esp, 0x10
test eax, eax
je 0x450c19
lea eax, [ebp - 0x434]
mov dword [ebp - 4], 2
push eax
call fcn.00472b8f
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x440]
push eax
push 0x53ec84
push 0x592b00
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x450b1c
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450965
sub ecx, edx
sar ecx, 1
je 0x450b1c
push str.birdwp.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x20a
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.004b2720
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push 0x20019
push 0
push str.BirdWallpaper
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x450a08
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x42c], 0x104
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push str.URL_Protocol
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x424]
lea eax, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x450a3a
test dx, dx
je 0x450a36
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x450a3a
add eax, 4
add ecx, 4
test dx, dx
jne 0x450a14
xor eax, eax
jmp 0x450a3f
sbb eax, eax
or eax, 1
test eax, eax
je 0x450c0f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x450a50
mov ebx, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push str.URL_Protocol
push str.BirdWallpaper
push SysReAllocString
call ebx
test eax, eax
jne 0x450b1c
call fcn.0040bb50
mov ecx, eax
test ecx, ecx
je 0x450c39
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
push str.BirdWallpaper
lea ecx, [ebp - 0x430]
mov dword [ebp - 4], 5
call fcn.0040afe0
test al, al
jne 0x450ad5
push 0xd
push str.BirdWallpaper
lea ecx, [ebp - 0x430]
call fcn.0040a830
mov esi, dword [ebp - 0x430]
mov dword [ebp - 4], 6
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push 0
push str.BirdWallpaper
push SysReAllocString
call ebx
test eax, eax
je 0x450b4a
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x450b1c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
push esi
push str._CInstaller::RegProtocol___result_d
call fcn.0044a720
add esp, 8
mov eax, esi
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.00498678
mov esp, ebp
pop ebp
ret
call fcn.0040bb50
mov ecx, eax
test ecx, ecx
je 0x450c43
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
push 0x53ec78
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x42c]
push str._s__s
push eax
call fcn.00409150
mov edi, dword [ebp - 0x42c]
add esp, 0x10
mov eax, dword [edi - 0xc]
add eax, eax
push eax
push edi
push 1
push 0
push str.BirdWallpaper_shellopencommand
push SysReAllocString
call ebx
lea edx, [edi - 0x10]
mov byte [ebp - 4], 6
or edi, 0xffffffff
test eax, eax
mov eax, edi
je 0x450be1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x450bca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jmp 0x450b12
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x450bf3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x450c0f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x450b1e
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 3
push eax
call fcn.00472bd1
add esp, 4
mov byte [ebp - 4], 1
test al, al
jne 0x450c4d
call fcn.00473bfc
push 0x80004005
call fcn.00408fc0
push 0x80004005
call fcn.00408fc0
sub esp, 8
lea eax, [ebp - 0x434]
mov ecx, esp
push eax
call fcn.00408860
call fcn.0040ae00
int3