Function at 0x46b8a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a0c
call fcn.0049bd20
mov eax, dword [0x5917ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.004c0d00
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
add esp, 0xc
push str.birdwp.exe
push dword [esi]
push eax
call edi
cmp dword [esi + 8], 0
je 0x46b9e0
push 0x800
lea eax, [ebp - 0x120c]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0x120c]
push 1
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.paperLite
push dword [esi + 0x14]
call fcn.004dc138
add esp, 8
test eax, eax
lea eax, [ebp - 0xa0c]
push 0x800
push 0
push eax
jne 0x46b994
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0x120c]
push 0x556d28
push eax
lea eax, [ebp - 0xa0c]
push eax
call edi
push 0
push 1
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
lea eax, [ebp - 0xa0c]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x556d48
call fcn.0046bc40
test eax, eax
jne 0x46b9e0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b8b8
mov esp, ebp
pop ebp
ret
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0x120c]
push 0x556d60
push eax
lea eax, [ebp - 0xa0c]
push eax
call edi
push 0
push 1
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
lea eax, [ebp - 0xa0c]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x556ca0
call fcn.0046bc40
test eax, eax
je 0x46bb80
cmp dword [esi + 0xc], 0
je 0x46ba9f
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0x414]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x556ca0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46ba45
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x120c]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x556d60
push eax
lea eax, [ebp - 0x120c]
push eax
call edi
push 0
push 1
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
lea eax, [ebp - 0x120c]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x556ca0
call fcn.0046bc40
test eax, eax
je 0x46bb80
cmp dword [esi + 0x10], 0
je 0x46bb92
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0x414]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x556ca0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46bb04
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x800
lea eax, [ebp - 0x1a0c]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x556d78
push eax
lea eax, [ebp - 0x1a0c]
push eax
call edi
push 0x208
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0xc14]
push str.Uninstall.exe
push dword [esi]
push eax
call edi
push 1
push 0
lea eax, [ebp - 0xc14]
mov ecx, esi
push eax
lea eax, [ebp - 0x1a0c]
push eax
push 0
lea eax, [ebp - 0xc14]
push eax
push 0x556d94
call fcn.0046bc40
test eax, eax
jne 0x46bb92
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b8b8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0049b8b8
mov esp, ebp
pop ebp
ret